[build] Move shared and gradle-plugin into separate gradle builds

Platform libs build will be changed by a separate commit
This commit is contained in:
Ilya Matveev
2017-12-28 14:46:24 +07:00
committed by ilmat192
parent 0f85696ffb
commit a2b6c71f73
12 changed files with 84 additions and 36 deletions
+8 -6
View File
@@ -1,22 +1,19 @@
buildscript {
def rootProperties = new Properties()
rootProperties.load(new FileReader(project.file('../gradle.properties')))
rootProperties.each {k, v -> ext.set(k, v)}
repositories {
maven {
//TODO: this path should be removed!!
//TODO: this path should be removed!! But how? O_oc
url "https://oss.sonatype.org/content/repositories/snapshots"
}
maven {
url rootProperties.kotlinCompilerRepo
url kotlinCompilerRepo
}
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinGradlePluginVersion"
classpath files(project.file('../tools/kotlin-native-gradle-plugin/build/libs').listFiles().findAll{it.name.endsWith('.jar')}.collect().first().absolutePath)
classpath "org.jetbrains.kotlin:kotlin-native-gradle-plugin:$konanVersion"
}
}
@@ -39,6 +36,9 @@ apply plugin: 'kotlin'
apply plugin: 'application'
apply plugin: 'konan'
project.setProperty("konan.home", distDir)
checkKonanCompiler.dependsOn ':dist'
konanArtifacts {
program('Ring') {
enableOptimizations true
@@ -57,6 +57,7 @@ dependencies {
}
task jvmRun(type: JavaExec) {
dependsOn 'build'
def output = new ByteArrayOutputStream()
classpath sourceSets.main.runtimeClasspath
main = "MainKt"
@@ -74,6 +75,7 @@ private void dumpReport(String name, ByteArrayOutputStream output) {
}
task konanRun(type: Exec) {
dependsOn 'build'
def output = new ByteArrayOutputStream()
commandLine konanArtifacts.Ring.getByTarget('host').artifact.absolutePath, "$ringWarmup", "$iterations"
standardOutput = output
-1
View File
@@ -1 +0,0 @@
konan.home=../dist