-
Notifications
You must be signed in to change notification settings - Fork 324
/
build.gradle
61 lines (47 loc) · 1.75 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
buildscript {
repositories {
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath "gradle.plugin.com.avast.gradle:gradle-docker-compose-plugin:1"
classpath "org.owasp:dependency-check-gradle:5.2.1"
classpath "gradle.plugin.com.github.spotbugs:spotbugs-gradle-plugin:2.0.0"
}
}
allprojects {
apply plugin: 'idea'
}
subprojects {
repositories {
maven { url "https://maven.aliyun.com/repository/central" }
maven { url "https://mymavenrepo.com/repo/2w5k9sU2AsKfaYehyqno/" }
}
apply plugin: 'java'
sourceCompatibility = 1.8
targetCompatibility = 1.8
dependencies {
compileOnly 'org.projectlombok:lombok:1.18.8'
annotationProcessor 'org.projectlombok:lombok:1.18.8'
//test dependencies
testImplementation platform('org.junit:junit-bom:5.5.1')
testImplementation("org.junit.jupiter:junit-jupiter-api")
testImplementation('org.junit.jupiter:junit-jupiter-engine')
testImplementation('org.mockito:mockito-junit-jupiter:2.26.0')
}
configurations.all {
exclude group: "junit", module: "junit"
exclude group: "org.assertj", module: "assertj-core"
// Check for updates every build
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
tasks.withType(Test) {
useJUnitPlatform()
}
wrapper {
gradleVersion = '5.6'
}
apply from: "${rootProject.projectDir}/gradle/dependency-check/dependency-check.gradle"
apply from: "${rootProject.projectDir}/gradle/spotbugs/spotbugs.gradle"
apply from: "${rootProject.projectDir}/gradle/checkstyle/checkstyle.gradle"
apply from: "${rootProject.projectDir}/gradle/git-hooks/git-hooks.gradle"
}