-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.gradle
92 lines (77 loc) · 1.89 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
wrapper {
gradleVersion = '7.3.3'
}
buildscript {
repositories {
mavenCentral()
maven { url "https://jitpack.io" }
maven { url 'https://plugins.gradle.org/m2/' }
mavenLocal()
}
dependencies {
classpath 'org.unbroken-dome.gradle-plugins:gradle-testsets-plugin:4.0.0'
classpath "com.avast.gradle:gradle-docker-compose-plugin:0.15.0"
classpath "io.spring.gradle:dependency-management-plugin:1.0.10.RELEASE"
classpath "org.springframework.boot:spring-boot-gradle-plugin:2.2.4.RELEASE"
}
}
allprojects {
version = project.version
apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'groovy'
apply plugin: 'maven-publish'
apply plugin: 'org.unbroken-dome.test-sets'
apply from: "${rootDir}/libraries.gradle"
apply from: "${rootDir}/publish.gradle"
sourceCompatibility = '1.9'
targetCompatibility = '1.9'
repositories {
mavenCentral()
mavenLocal()
}
testSets {
integrationTest {
dirName = 'test-integration'
}
}
dependencies {
annotationProcessor libraries.lombok
compileOnly libraries.lombok
compileOnly libraries.groovy
implementation libraries.slf4j
testImplementation libraries.groovy
testImplementation libraries.junit
testImplementation libraries.spock
}
test {
reports.junitXml.destination = file('build/test-results')
testLogging {
events "passed", "skipped", "failed", "standardError"
showStackTraces = true
exceptionFormat = 'full'
}
}
integrationTest {
reports.junitXml.destination = file('build/test-integration-results')
testLogging {
events "passed", "skipped", "failed", "standardError"
showStackTraces = true
exceptionFormat = 'full'
}
}
check.dependsOn integrationTest
ext.isRunningOnCI = {
System.getenv("CI") == "true"
}
}
configurations {
provided
tests
runtime {
exclude module: 'lombok'
}
compile {
exclude module: 'groovy-all'
}
}