-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
58 lines (52 loc) · 1.88 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
buildscript {
ext {
nettyVersion = '4.1.45.Final'
logbackVersion = '1.2.3'
guavaVersion = '29.0-jre'
junitVersion = '4.12'
lombokVersion = '1.18.16'
}
repositories {
maven { url 'https://maven.aliyun.com/repository/central' }
maven { url 'https://maven.aliyun.com/repository/jcenter' }
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:6.1.0'
}
}
allprojects {
apply plugin: 'java'
apply plugin: 'idea'
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
repositories {
mavenLocal()
// mavenCentral()
maven { url 'https://maven.aliyun.com/repository/central' }
maven { url 'https://maven.aliyun.com/repository/jcenter' }
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
}
}
subprojects {
group = 'org.cyka'
version = '1.0.0'
dependencies {
implementation(
"ch.qos.logback:logback-classic:${logbackVersion}",
"com.google.guava:guava:${guavaVersion}"
)
testImplementation "junit:junit:4.12"
compileOnly "org.projectlombok:lombok:${lombokVersion}"
annotationProcessor "org.projectlombok:lombok:${lombokVersion}"
testCompileOnly "org.projectlombok:lombok:${lombokVersion}"
testAnnotationProcessor "org.projectlombok:lombok:${lombokVersion}"
testImplementation group: 'org.powermock', name: 'powermock-api-mockito2', version: '2.0.9'
testImplementation group: 'org.powermock', name: 'powermock-module-junit4', version: '2.0.9'
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
}