Skip to content
This repository has been archived by the owner on Aug 10, 2021. It is now read-only.

Commit

Permalink
[samples] Explicitly specify gradle plugin version
Browse files Browse the repository at this point in the history
  • Loading branch information
ilmat192 committed Mar 23, 2018
1 parent 21be7bb commit 1e6be90
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
10 changes: 9 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,15 @@ task bundle(type: (isWindows()) ? Zip : Tar) {
include 'gradle.properties'
include 'androidNativeActivity/gradle.properties'
into "$baseName/samples"
filter { it.startsWith("konan.home=") ? "konan.home=../.." : it }
filter {
if (it.startsWith("konan.home=")) {
return "konan.home=../.."
}
if (it.startsWith("konan.plugin.version=")) {
return "konan.plugin.version=$konanVersion"
}
return it
}
}

destinationDir = file('.')
Expand Down
2 changes: 1 addition & 1 deletion samples/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ subprojects {
}

dependencies {
classpath "org.jetbrains.kotlin:kotlin-native-gradle-plugin:+"
classpath "org.jetbrains.kotlin:kotlin-native-gradle-plugin:${project.property('konan.plugin.version')}"
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion samples/gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
konan.home=../../dist
konan.home=../../dist
konan.plugin.version=+

0 comments on commit 1e6be90

Please sign in to comment.