forked from square/wire
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
43 lines (37 loc) · 862 Bytes
/
build.gradle.kts
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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
buildscript {
dependencies {
classpath(deps.plugins.kotlin)
classpath(deps.plugins.shadow)
classpath(deps.wire.gradlePlugin)
classpath(deps.plugins.japicmp)
classpath(deps.plugins.mavenPublish)
classpath(deps.animalSniffer.gradle)
classpath(deps.plugins.android)
classpath(deps.protobuf.gradlePlugin)
}
repositories {
mavenCentral()
gradlePluginPortal()
google()
}
}
allprojects {
repositories {
mavenCentral()
google()
jcenter()
}
}
subprojects {
tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "1.8"
}
}
tasks.withType<JavaCompile> {
sourceCompatibility = JavaVersion.VERSION_1_8.toString()
targetCompatibility = JavaVersion.VERSION_1_8.toString()
}
}
apply(from = "gen-tests.gradle.kts")