Files
kotlin-fork/samples/build.gradle
T
Ilya Matveev d28f8ce7f2 samples: Add scripts for samples building
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.
2017-05-15 18:31:30 +07:00

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
}