-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
51 lines (44 loc) · 1.57 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
plugins {
id "com.diffplug.gradle.spotless" version "3.23.1"
id "com.github.johnrengelman.shadow" version "4.0.4"
}
subprojects {
apply plugin: 'java'
sourceCompatibility = 1.9
targetCompatibility = 1.9
apply plugin: 'maven'
apply plugin: 'com.diffplug.gradle.spotless'
repositories {
mavenLocal()
maven { url "https://repo.maven.apache.org/maven2" }
}
dependencies {
implementation "org.springframework.boot:spring-boot-starter-web:2.1.9.RELEASE"
implementation 'com.google.guava:guava:28.1-jre'
testImplementation 'junit:junit:4.12'
}
spotless {
java {
removeUnusedImports()
googleJavaFormat('1.7')
trimTrailingWhitespace()
endWithNewline()
}
}
test {
environment "GROOVY_TURN_OFF_JAVA_WARNINGS", "true"
// To use less memory during the tests, for the execution on circle ci...
jvmArgs "-XX:+UseSerialGC", "-Xss512k", "-Dspring.test.context.cache.maxSize=1"
// We need to limit the memory to be on par with CircleCI
// It seems that 2g is the maximum we can get on CircleCI
maxHeapSize = "2400m"
afterSuite { desc, result ->
if (!desc.parent)
println("${result.resultType} " +
"(${result.testCount} tests, " +
"${result.successfulTestCount} successes, " +
"${result.failedTestCount} failures, " +
"${result.skippedTestCount} skipped)")
}
}
}