Skip to content

Commit

Permalink
Kotlin/Native version 0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
elizarov committed Sep 4, 2018
1 parent 6400941 commit d3bf2e4
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ dependencies {
sourceSets {
main {
component {
target "ios_arm64", "ios_arm32", "ios_x64", "macos_x64", "linux_x64", "mingw_x64"
targets = ["ios_arm64", "ios_arm32", "ios_x64", "macos_x64", "linux_x64", "mingw_x64"]
outputKinds = [EXECUTABLE]
}
}
Expand Down
11 changes: 8 additions & 3 deletions atomicfu-js/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,17 @@ apply from: file("$rootProject.projectDir/gradle/node-js.gradle")
apply from: file("$rootProject.projectDir/gradle/test-mocha-js.gradle")
apply from: file("$rootProject.projectDir/gradle/publish-npm-js.gradle")

configurations {
transformer
}

dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-js:$kotlin_version"
expectedBy project(":atomicfu-common")

testCompile "org.jetbrains.kotlin:kotlin-test-js:$kotlin_version"
testCompile project(":atomicfu-transformer")

transformer project(":atomicfu-transformer")
}

tasks.withType(compileKotlin2Js.getClass()) {
Expand Down Expand Up @@ -40,10 +45,10 @@ repositories.whenObjectAdded {
def orifinalFile = "$buildDir/classes/kotlin/test/atomicfu-js_test.js"
def transformedFile = "$buildDir/classes/kotlin/test/atomicfu-js_testTransformed.js"

task transformJS (type: JavaExec, dependsOn: compileKotlin2Js) {
task transformJS (type: JavaExec, dependsOn: [compileKotlin2Js, tasks.findByPath(":atomicfu-transformer:assemble")]) {
main = "kotlinx.atomicfu.transformer.AtomicFUTransformerJSKt"
args = [orifinalFile, transformedFile, true]
classpath = sourceSets.test.runtimeClasspath
classpath = project.files(configurations.transformer.asCollection())
inputs.file(orifinalFile)
outputs.file(transformedFile)
}
Expand Down
7 changes: 4 additions & 3 deletions atomicfu-native/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ apply from: project.rootProject.file('gradle/maven-central.gradle')
sourceSets {
main {
component {
target "ios_arm64", "ios_arm32", "ios_x64", "macos_x64", "linux_x64", "mingw_x64"
targets = ["ios_arm64", "ios_arm32", "ios_x64", "macos_x64", "linux_x64", "mingw_x64"]
outputKinds = [KLIBRARY]
pom {
withXml(configureMavenCentralMetadata)
Expand All @@ -18,10 +18,11 @@ dependencies {
expectedBy project(':atomicfu-common')
}


if (project.hasProperty("teamcity")) {
afterEvaluate {
runTestDebug {
tasks.withType(Class.forName("org.gradle.nativeplatform.test.tasks.RunTestExecutable_Decorated")) {
args '--ktest_logger=TEAMCITY'
}
}
}
}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version = 0.11.5-SNAPSHOT
group = org.jetbrains.kotlinx

kotlin_version = 1.2.61
kotlin_native_version = 0.8.2
kotlin_native_version = 0.9
asm_version = 5.2
slf4j_version = 1.8.0-alpha2
junit_version = 4.12
Expand Down

0 comments on commit d3bf2e4

Please sign in to comment.