Leonid Startsev | 08d3ca0 | 2017-07-26 15:16:23 +0300 | [diff] [blame^] | 1 | buildscript { |
| 2 | ext.kotlin_version = '1.1.3' |
| 3 | ext.snapshot_version = '1.1-SNAPSHOT' |
| 4 | |
| 5 | repositories { |
| 6 | mavenLocal() |
| 7 | mavenCentral() |
| 8 | } |
| 9 | |
| 10 | dependencies { |
| 11 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$snapshot_version" |
| 12 | classpath "org.jetbrains.kotlinx:kotlinx-serialization:$snapshot_version" |
| 13 | } |
| 14 | } |
| 15 | |
| 16 | group 'org.jetbrains.kotlinx' |
| 17 | version "$snapshot_version" |
| 18 | |
| 19 | |
| 20 | apply plugin: 'kotlin' |
| 21 | apply plugin: 'kotlin-serialization' |
| 22 | apply plugin: 'maven-publish' |
| 23 | |
| 24 | repositories { |
| 25 | mavenLocal() |
| 26 | mavenCentral() |
| 27 | } |
| 28 | |
| 29 | publishing { |
| 30 | publications { |
| 31 | mavenJava(MavenPublication) { |
| 32 | from components.java |
| 33 | } |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | dependencies { |
| 38 | compile "org.jetbrains.kotlin:kotlin-stdlib:${snapshot_version}" |
| 39 | compile "org.jetbrains.kotlin:kotlin-reflect:${snapshot_version}" |
| 40 | |
| 41 | testCompile group: 'junit', name: 'junit', version: '4.4' |
| 42 | |
| 43 | } |