Merge pull request #11 from ionspin/release-0.0.3
Release 0.0.3/0.0.4-SNAPSHOT
This commit is contained in:
commit
9e11a2439c
@ -39,7 +39,7 @@ matrix:
|
|||||||
- source ~/.install-jdk-travis.sh
|
- source ~/.install-jdk-travis.sh
|
||||||
script:
|
script:
|
||||||
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then ./gradlew build ; fi'
|
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then ./gradlew build ; fi'
|
||||||
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then ./gradlew build publishMingwx86PublicationToSnapshotRepository publishMingwx64PublicationToSnapshotRepository; fi'
|
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then ./gradlew build publishMingwx64PublicationToSnapshotRepository; fi'
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- $HOME/.m2/
|
- $HOME/.m2/
|
||||||
|
1
macPublishToMaven.sh
Executable file
1
macPublishToMaven.sh
Executable file
@ -0,0 +1 @@
|
|||||||
|
./gradlew publishAllPublicationsToMavenRepository -x publishMetadataPublicationToMavenRepository -x publishKotlinMultiplatformPublicationToMavenRepository
|
@ -47,7 +47,7 @@ repositories {
|
|||||||
|
|
||||||
}
|
}
|
||||||
group = "com.ionspin.kotlin"
|
group = "com.ionspin.kotlin"
|
||||||
version = "0.0.3-SNAPSHOT"
|
version = "0.0.4-SNAPSHOT"
|
||||||
|
|
||||||
val ideaActive = System.getProperty("idea.active") == "true"
|
val ideaActive = System.getProperty("idea.active") == "true"
|
||||||
|
|
||||||
@ -68,22 +68,23 @@ kotlin {
|
|||||||
"windows" -> mingwX64("native")
|
"windows" -> mingwX64("native")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
jvm()
|
if (hostOsName == "linux") {
|
||||||
js {
|
jvm()
|
||||||
compilations {
|
js {
|
||||||
this.forEach {
|
compilations {
|
||||||
it.compileKotlinTask.kotlinOptions.sourceMap = true
|
this.forEach {
|
||||||
it.compileKotlinTask.kotlinOptions.moduleKind = "commonjs"
|
it.compileKotlinTask.kotlinOptions.sourceMap = true
|
||||||
it.compileKotlinTask.kotlinOptions.metaInfo = true
|
it.compileKotlinTask.kotlinOptions.moduleKind = "commonjs"
|
||||||
|
it.compileKotlinTask.kotlinOptions.metaInfo = true
|
||||||
|
|
||||||
if (it.name == "main") {
|
if (it.name == "main") {
|
||||||
it.compileKotlinTask.kotlinOptions.main = "call"
|
it.compileKotlinTask.kotlinOptions.main = "call"
|
||||||
|
}
|
||||||
|
println("Compilation name ${it.name} set")
|
||||||
|
println("Destination dir ${it.compileKotlinTask.destinationDir}")
|
||||||
}
|
}
|
||||||
println("Compilation name ${it.name} set")
|
|
||||||
println("Destination dir ${it.compileKotlinTask.destinationDir}")
|
|
||||||
}
|
}
|
||||||
}
|
//Until I figure out how to run headless chrome on travis
|
||||||
//Until I figure out how to run headless chrome on travis
|
|
||||||
// browser {
|
// browser {
|
||||||
//
|
//
|
||||||
// testTask {
|
// testTask {
|
||||||
@ -92,56 +93,76 @@ kotlin {
|
|||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
nodejs {
|
nodejs {
|
||||||
testTask {
|
testTask {
|
||||||
useMocha() {
|
useMocha() {
|
||||||
timeout = "10s"
|
timeout = "10s"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
linuxX64("linux") {
|
||||||
|
binaries {
|
||||||
|
staticLib {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
linuxArm32Hfp() {
|
||||||
|
binaries {
|
||||||
|
staticLib {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
linuxArm64() {
|
||||||
|
binaries {
|
||||||
|
staticLib {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
linuxX64("linux") {
|
|
||||||
binaries {
|
|
||||||
staticLib {
|
|
||||||
|
|
||||||
|
if (hostOsName == "macos") {
|
||||||
|
iosX64("ios") {
|
||||||
|
binaries {
|
||||||
|
framework {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
iosArm64("ios64Arm") {
|
||||||
|
binaries {
|
||||||
|
framework {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
iosArm32("ios32Arm") {
|
||||||
|
binaries {
|
||||||
|
framework {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
macosX64() {
|
||||||
|
binaries {
|
||||||
|
framework {
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
iosX64("ios") {
|
if (hostOsName == "windows") {
|
||||||
binaries {
|
|
||||||
framework {
|
|
||||||
|
|
||||||
}
|
mingwX64() {
|
||||||
}
|
binaries {
|
||||||
}
|
staticLib {
|
||||||
iosArm64("ios64Arm") {
|
|
||||||
binaries {
|
|
||||||
framework {
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
iosArm32("ios32Arm") {
|
|
||||||
binaries {
|
|
||||||
framework {
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
macosX64() {
|
|
||||||
binaries {
|
|
||||||
framework {
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
mingwX64() {
|
|
||||||
binaries {
|
|
||||||
staticLib {
|
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -154,19 +175,6 @@ kotlin {
|
|||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
|
|
||||||
linuxArm32Hfp() {
|
|
||||||
binaries {
|
|
||||||
staticLib {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
linuxArm64() {
|
|
||||||
binaries {
|
|
||||||
staticLib {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
println(targets.names)
|
println(targets.names)
|
||||||
|
|
||||||
@ -185,34 +193,7 @@ kotlin {
|
|||||||
implementation(kotlin(Deps.Common.testAnnotation))
|
implementation(kotlin(Deps.Common.testAnnotation))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
val jvmMain by getting {
|
|
||||||
dependencies {
|
|
||||||
implementation(kotlin(Deps.Jvm.stdLib))
|
|
||||||
implementation(kotlin(Deps.Jvm.test))
|
|
||||||
implementation(kotlin(Deps.Jvm.testJUnit))
|
|
||||||
implementation(Deps.Jvm.coroutinesCore)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
val jvmTest by getting {
|
|
||||||
dependencies {
|
|
||||||
implementation(kotlin(Deps.Jvm.test))
|
|
||||||
implementation(kotlin(Deps.Jvm.testJUnit))
|
|
||||||
implementation(Deps.Jvm.coroutinesTest)
|
|
||||||
implementation(kotlin(Deps.Jvm.reflection))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
val jsMain by getting {
|
|
||||||
dependencies {
|
|
||||||
implementation(kotlin(Deps.Js.stdLib))
|
|
||||||
implementation(kotlin(Deps.Js.test))
|
|
||||||
implementation(Deps.Js.coroutines)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
val jsTest by getting {
|
|
||||||
dependencies {
|
|
||||||
implementation(kotlin("test-js"))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
val nativeMain = if (ideaActive) {
|
val nativeMain = if (ideaActive) {
|
||||||
val nativeMain by getting {
|
val nativeMain by getting {
|
||||||
dependsOn(commonMain)
|
dependsOn(commonMain)
|
||||||
@ -242,40 +223,91 @@ kotlin {
|
|||||||
nativeTest
|
nativeTest
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (hostOsName == "linux") {
|
||||||
val iosMain by getting {
|
val jvmMain by getting {
|
||||||
dependsOn(nativeMain)
|
dependencies {
|
||||||
}
|
implementation(kotlin(Deps.Jvm.stdLib))
|
||||||
val iosTest by getting {
|
implementation(kotlin(Deps.Jvm.test))
|
||||||
dependsOn(nativeTest)
|
implementation(kotlin(Deps.Jvm.testJUnit))
|
||||||
|
implementation(Deps.Jvm.coroutinesCore)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
val jvmTest by getting {
|
||||||
|
dependencies {
|
||||||
|
implementation(kotlin(Deps.Jvm.test))
|
||||||
|
implementation(kotlin(Deps.Jvm.testJUnit))
|
||||||
|
implementation(Deps.Jvm.coroutinesTest)
|
||||||
|
implementation(kotlin(Deps.Jvm.reflection))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
val jsMain by getting {
|
||||||
|
dependencies {
|
||||||
|
implementation(kotlin(Deps.Js.stdLib))
|
||||||
|
implementation(kotlin(Deps.Js.test))
|
||||||
|
implementation(Deps.Js.coroutines)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
val jsTest by getting {
|
||||||
|
dependencies {
|
||||||
|
implementation(kotlin("test-js"))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
val linuxMain by getting {
|
||||||
|
dependsOn(nativeMain)
|
||||||
|
}
|
||||||
|
val linuxTest by getting {
|
||||||
|
dependsOn(nativeTest)
|
||||||
|
}
|
||||||
|
|
||||||
|
val linuxArm32HfpMain by getting {
|
||||||
|
dependsOn(nativeMain)
|
||||||
|
}
|
||||||
|
|
||||||
|
val linuxArm32HfpTest by getting {
|
||||||
|
dependsOn(nativeTest)
|
||||||
|
}
|
||||||
|
|
||||||
|
val linuxArm64Main by getting {
|
||||||
|
dependsOn(nativeMain)
|
||||||
|
}
|
||||||
|
|
||||||
|
val linuxArm64Test by getting {
|
||||||
|
dependsOn(nativeTest)
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
val ios64ArmMain by getting {
|
if (hostOsName == "macos") {
|
||||||
dependsOn(nativeMain)
|
|
||||||
}
|
val iosMain by getting {
|
||||||
val ios64ArmTest by getting {
|
dependsOn(nativeMain)
|
||||||
dependsOn(nativeTest)
|
}
|
||||||
|
val iosTest by getting {
|
||||||
|
dependsOn(nativeTest)
|
||||||
|
}
|
||||||
|
|
||||||
|
val ios64ArmMain by getting {
|
||||||
|
dependsOn(nativeMain)
|
||||||
|
}
|
||||||
|
val ios64ArmTest by getting {
|
||||||
|
dependsOn(nativeTest)
|
||||||
|
}
|
||||||
|
|
||||||
|
val ios32ArmMain by getting {
|
||||||
|
dependsOn(nativeMain)
|
||||||
|
}
|
||||||
|
val ios32ArmTest by getting {
|
||||||
|
dependsOn(nativeTest)
|
||||||
|
}
|
||||||
|
|
||||||
|
val macosX64Main by getting {
|
||||||
|
dependsOn(nativeMain)
|
||||||
|
}
|
||||||
|
val macosX64Test by getting {
|
||||||
|
dependsOn(nativeTest)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
val ios32ArmMain by getting {
|
|
||||||
dependsOn(nativeMain)
|
|
||||||
}
|
|
||||||
val ios32ArmTest by getting {
|
|
||||||
dependsOn(nativeTest)
|
|
||||||
}
|
|
||||||
|
|
||||||
val macosX64Main by getting {
|
|
||||||
dependsOn(nativeMain)
|
|
||||||
}
|
|
||||||
val macosX64Test by getting {
|
|
||||||
dependsOn(nativeTest)
|
|
||||||
}
|
|
||||||
val linuxMain by getting {
|
|
||||||
dependsOn(nativeMain)
|
|
||||||
}
|
|
||||||
val linuxTest by getting {
|
|
||||||
dependsOn(nativeTest)
|
|
||||||
}
|
|
||||||
// Coroutines don't support mingwx86 yet
|
// Coroutines don't support mingwx86 yet
|
||||||
// val mingwX86Main by getting {
|
// val mingwX86Main by getting {
|
||||||
// dependsOn(commonMain)
|
// dependsOn(commonMain)
|
||||||
@ -288,32 +320,20 @@ kotlin {
|
|||||||
// dependsOn(commonTest)
|
// dependsOn(commonTest)
|
||||||
// }
|
// }
|
||||||
//
|
//
|
||||||
val mingwX64Main by getting {
|
if (hostOsName == "windows") {
|
||||||
dependsOn(commonMain)
|
val mingwX64Main by getting {
|
||||||
dependencies {
|
dependsOn(commonMain)
|
||||||
implementation(Deps.Native.coroutines)
|
dependencies {
|
||||||
|
implementation(Deps.Native.coroutines)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
val mingwX64Test by getting {
|
||||||
|
dependsOn(commonTest)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
val mingwX64Test by getting {
|
|
||||||
dependsOn(commonTest)
|
|
||||||
}
|
|
||||||
|
|
||||||
val linuxArm32HfpMain by getting {
|
|
||||||
dependsOn(nativeMain)
|
|
||||||
}
|
|
||||||
|
|
||||||
val linuxArm32HfpTest by getting {
|
|
||||||
dependsOn(nativeTest)
|
|
||||||
}
|
|
||||||
|
|
||||||
val linuxArm64Main by getting {
|
|
||||||
dependsOn(nativeMain)
|
|
||||||
}
|
|
||||||
|
|
||||||
val linuxArm64Test by getting {
|
|
||||||
dependsOn(nativeTest)
|
|
||||||
}
|
|
||||||
all {
|
all {
|
||||||
languageSettings.enableLanguageFeature("InlineClasses")
|
languageSettings.enableLanguageFeature("InlineClasses")
|
||||||
}
|
}
|
||||||
@ -333,9 +353,7 @@ task<Copy>("copyPackageJson") {
|
|||||||
}
|
}
|
||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
val npmInstall by getting
|
|
||||||
val compileKotlinJs by getting(AbstractCompile::class)
|
|
||||||
val compileTestKotlinJs by getting(Kotlin2JsCompile::class)
|
|
||||||
|
|
||||||
create<Jar>("javadocJar") {
|
create<Jar>("javadocJar") {
|
||||||
dependsOn(dokka)
|
dependsOn(dokka)
|
||||||
@ -355,44 +373,52 @@ tasks {
|
|||||||
platforms = listOf("Common")
|
platforms = listOf("Common")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (getHostOsName() == "linux") {
|
||||||
|
|
||||||
val jvmTest by getting(Test::class) {
|
val npmInstall by getting
|
||||||
testLogging {
|
val compileKotlinJs by getting(AbstractCompile::class)
|
||||||
events("PASSED", "FAILED", "SKIPPED")
|
val compileTestKotlinJs by getting(Kotlin2JsCompile::class)
|
||||||
|
|
||||||
|
val jvmTest by getting(Test::class) {
|
||||||
|
testLogging {
|
||||||
|
events("PASSED", "FAILED", "SKIPPED")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
val linuxTest by getting(KotlinNativeTest::class) {
|
val linuxTest by getting(KotlinNativeTest::class) {
|
||||||
|
|
||||||
testLogging {
|
testLogging {
|
||||||
events("PASSED", "FAILED", "SKIPPED")
|
events("PASSED", "FAILED", "SKIPPED")
|
||||||
// showStandardStreams = true
|
// showStandardStreams = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
val mingwX64Test by getting(KotlinNativeTest::class) {
|
val jsNodeTest by getting(KotlinJsTest::class) {
|
||||||
|
|
||||||
testLogging {
|
testLogging {
|
||||||
events("PASSED", "FAILED", "SKIPPED")
|
events("PASSED", "FAILED", "SKIPPED")
|
||||||
showStandardStreams = true
|
showStandardStreams = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
val jsNodeTest by getting(KotlinJsTest::class) {
|
// val jsBrowserTest by getting(KotlinJsTest::class) {
|
||||||
|
|
||||||
testLogging {
|
|
||||||
events("PASSED", "FAILED", "SKIPPED")
|
|
||||||
showStandardStreams = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// val jsBrowserTest by getting(KotlinJsTest::class) {
|
|
||||||
//
|
//
|
||||||
// testLogging {
|
// testLogging {
|
||||||
// events("PASSED", "FAILED", "SKIPPED")
|
// events("PASSED", "FAILED", "SKIPPED")
|
||||||
// showStandardStreams = true
|
// showStandardStreams = true
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
|
}
|
||||||
|
|
||||||
|
if (getHostOsName() == "windows") {
|
||||||
|
val mingwX64Test by getting(KotlinNativeTest::class) {
|
||||||
|
|
||||||
|
testLogging {
|
||||||
|
events("PASSED", "FAILED", "SKIPPED")
|
||||||
|
showStandardStreams = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user