Sergey Vasilinets | 0265f0f | 2016-10-28 09:40:11 -0700 | [diff] [blame] | 1 | buildscript { |
| 2 | ext.kotlin_version = '1.0.4' |
| 3 | |
| 4 | repositories { |
| 5 | // TODO: update kotlin in prebuits to 1.0.4 and remove this. |
| 6 | mavenCentral() |
| 7 | } |
| 8 | dependencies { |
| 9 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" |
| 10 | } |
| 11 | } |
| 12 | |
| 13 | repositories { |
| 14 | // TODO: update kotlin in prebuits to 1.0.4 and remove this. |
| 15 | mavenCentral() |
| 16 | } |
| 17 | |
| 18 | apply plugin: 'kotlin' |
| 19 | apply plugin: 'maven' |
| 20 | |
| 21 | sourceSets { |
| 22 | test.java.srcDirs += 'src/tests/kotlin' |
| 23 | } |
| 24 | |
| 25 | dependencies { |
| 26 | compile project(":common") |
| 27 | compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" |
| 28 | compile "com.google.auto:auto-common:0.6" |
| 29 | compile "com.squareup:javapoet:1.7.0" |
| 30 | testCompile "com.google.testing.compile:compile-testing:0.9" |
Sergey Vasilinets | bb63c4e | 2016-10-28 17:00:57 -0700 | [diff] [blame^] | 31 | testCompile files(org.gradle.internal.jvm.Jvm.current().getToolsJar()) |
Sergey Vasilinets | 0265f0f | 2016-10-28 09:40:11 -0700 | [diff] [blame] | 32 | } |
| 33 | |
| 34 | uploadArchives { |
| 35 | repositories { |
| 36 | mavenDeployer { |
| 37 | repository(url: rootProject.ext.localMavenRepo) |
| 38 | pom.artifactId = 'lifecycle-compiler' |
| 39 | } |
| 40 | } |
| 41 | } |