blob: 3fd822721e44980dd1df7631977ccc447994f9b5 [file] [log] [blame]
Leonid Startsev08d3ca02017-07-26 15:16:23 +03001buildscript {
Leonid Startsev08d3ca02017-07-26 15:16:23 +03002 ext.snapshot_version = '1.1-SNAPSHOT'
3
4 repositories {
Leonid Startseved87fbd2017-08-04 17:33:09 +03005 mavenLocal()
Leonid Startsev08d3ca02017-07-26 15:16:23 +03006 mavenCentral()
7 }
8
9 dependencies {
10 classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$snapshot_version"
11 classpath "org.jetbrains.kotlinx:kotlinx-serialization:$snapshot_version"
Leonid Startseved87fbd2017-08-04 17:33:09 +030012 classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.2'
Leonid Startsev08d3ca02017-07-26 15:16:23 +030013 }
14}
15
16group 'org.jetbrains.kotlinx'
17version "$snapshot_version"
18
Leonid Startsev08d3ca02017-07-26 15:16:23 +030019apply plugin: 'kotlin'
20apply plugin: 'kotlin-serialization'
Leonid Startsev08d3ca02017-07-26 15:16:23 +030021
22repositories {
Leonid Startseved87fbd2017-08-04 17:33:09 +030023 mavenLocal()
24 mavenCentral()
Leonid Startsev08d3ca02017-07-26 15:16:23 +030025}
26
Leonid Startseved87fbd2017-08-04 17:33:09 +030027apply plugin: 'maven-publish'
28
Leonid Startsev08d3ca02017-07-26 15:16:23 +030029publishing {
30 publications {
31 mavenJava(MavenPublication) {
32 from components.java
33 }
34 }
35}
36
Leonid Startseved87fbd2017-08-04 17:33:09 +030037apply plugin: 'com.google.protobuf'
38
39protobuf {
40 protoc {
41 // Download from repositories
42 artifact = 'com.google.protobuf:protoc:3.0.0'
43 }
44}
45
46test {
47 dependsOn 'generateTestProto'
48}
49
50clean {
51 delete protobuf.generatedFilesBaseDir
52}
53
54sourceSets {
55 test {
56 java {
57 srcDirs += file("${protobuf.generatedFilesBaseDir}/test/java")
58 }
59 }
60}
61
62
Leonid Startsev08d3ca02017-07-26 15:16:23 +030063dependencies {
64 compile "org.jetbrains.kotlin:kotlin-stdlib:${snapshot_version}"
65 compile "org.jetbrains.kotlin:kotlin-reflect:${snapshot_version}"
66
Leonid Startseved87fbd2017-08-04 17:33:09 +030067 testCompile 'com.google.protobuf:protobuf-java:3.0.0'
Leonid Startsev08d3ca02017-07-26 15:16:23 +030068 testCompile group: 'junit', name: 'junit', version: '4.4'
Leonid Startsev6d6aaf42017-07-31 16:56:31 +030069 testCompile 'io.kotlintest:kotlintest:2.0.4'
Leonid Startsev08d3ca02017-07-26 15:16:23 +030070}