-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
94 lines (80 loc) · 2.08 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
buildscript {
repositories {
google()
jcenter()
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle:4.0.1")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.72")
classpath("org.jetbrains.dokka:dokka-gradle-plugin:$dokkaVersion")
classpath("org.jetbrains.dokka:dokka-maven-plugin:$dokkaVersion")
}
}
plugins {
id 'org.jetbrains.kotlin.multiplatform' version '1.3.72'
id 'org.jetbrains.dokka' version '1.4.0-rc'
}
allprojects {
repositories {
mavenLocal()
mavenCentral()
jcenter()
google()
}
}
repositories {
mavenLocal()
mavenCentral()
jcenter()
google()
}
subprojects {
version = "$itlySdkVersion"
group = "ly.iterative.itly"
}
def kotlinProjects = [
'sdk-core',
'plugin-iteratively',
'plugin-schema-validator',
'app-kotlin'
]
configure(subprojects.findAll { kotlinProjects.contains(it.name) }) {
apply plugin: KotlinProjectPlugin
}
def testProjects = [
'app-java'
]
configure(subprojects.findAll { true }) {
apply plugin: 'org.jetbrains.dokka'
}
configure(subprojects.findAll { testProjects.contains(it.name) }) {
apply plugin: JavaProjectPlugin
}
/**
* Begin the graveyard of failed gradle configurations...
* Saving these until we implement better dependency management
* across projects or we switch to multiplatform
*/
// DOESNT WORK
// config JVM target to 1.8 for kotlin compilation tasks
//tasks.withType<KotlinCompile>().configureEach {
// kotlinOptions.jvmTarget = "1.8"
//}
// WORKS
//tasks.withType<JavaCompile> {
// options.compilerArgs = listOf("-Xdoclint:none", "-Xlint:none", "-nowarn")
//}
//tasks {
// withType<KotlinCompile> {
// val javaVersion = JavaVersion.VERSION_1_8.toString()
// sourceCompatibility = javaVersion
// targetCompatibility = javaVersion
// kotlinOptions {
// apiVersion = "1.3"
// javaParameters = true
// jvmTarget = javaVersion
// languageVersion = "1.3"
// }
// }
//}