forked from square/wire
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
63 lines (54 loc) · 1.65 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
buildscript {
apply from: new File("wire-library/dependencies.gradle")
ext.deps.wire = [
'compiler': "com.squareup.wire:wire-compiler",
'gradlePlugin': "com.squareup.wire:wire-gradle-plugin",
'grpcClient': "com.squareup.wire:wire-grpc-client",
'grpcServer': "com.squareup.wire:wire-grpc-server",
'grpcMockWebServer': "com.squareup.wire:wire-grpc-mockwebserver",
'gsonSupport': "com.squareup.wire:wire-gson-support",
'javaGenerator': "com.squareup.wire:wire-java-generator",
'kotlinGenerator': "com.squareup.wire:wire-kotlin-generator",
'moshiAdapter': "com.squareup.wire:wire-moshi-adapter",
'runtime': "com.squareup.wire:wire-runtime",
'schema': "com.squareup.wire:wire-schema",
'testUtils': "com.squareup.wire:wire-test-utils",
]
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 { project ->
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
kotlinOptions {
jvmTarget = "1.8"
}
}
tasks.withType(JavaCompile).configureEach {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
}
apply from: 'gen-tests.gradle'
tasks.wrapper {
distributionType = Wrapper.DistributionType.ALL
}