d28f8ce7f2
This pach adds a root gradle project in the samples directory which allows one to build all gradle samples using `./gradlew build` command. It also adds a shell script in the samples directory which can build all samples (excluding tensorflow one) using their build.sh scripts.
25 lines
687 B
Groovy
25 lines
687 B
Groovy
subprojects {
|
|
buildscript {
|
|
repositories {
|
|
mavenCentral()
|
|
maven {
|
|
url "https://dl.bintray.com/jetbrains/kotlin-native-dependencies"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
if (project.hasProperty("konan.plugin.path")) {
|
|
classpath files(project.property("konan.plugin.path"))
|
|
classpath "org.jetbrains.kotlin:kotlin-stdlib:+"
|
|
} else {
|
|
classpath "org.jetbrains.kotlin:kotlin-native-gradle-plugin:+"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
task buildBash(type: Exec) {
|
|
commandLine "${projectDir.canonicalPath}/build.sh"
|
|
workingDir projectDir.canonicalPath
|
|
}
|