-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
38 lines (32 loc) · 1.01 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
buildscript {
ext.kotlin_version = '1.2.21'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
group 'com.avoloshko'
version '1.0-SNAPSHOT'
def common = false
//def common = project.hasProperty("common") && project.findProperty("common").toString().toLowerCase().equals("true")
if (common) {
apply plugin: 'kotlin-platform-common'
} else {
apply plugin: 'kotlin'
}
repositories {
mavenCentral()
}
dependencies {
if (common) {
compile "org.jetbrains.kotlin:kotlin-stdlib-common:$kotlin_version"
testCompile "org.jetbrains.kotlin:kotlin-test-annotations-common:$kotlin_version"
testCompile "org.jetbrains.kotlin:kotlin-test-common:$kotlin_version"
} else {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
testCompile "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
testCompile "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
}
}