-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathbuild.gradle
More file actions
65 lines (55 loc) · 1.61 KB
/
build.gradle
File metadata and controls
65 lines (55 loc) · 1.61 KB
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
plugins {
id 'application'
id "com.diffplug.spotless" version "6.21.0"
id "java"
}
repositories {
if (project.hasProperty("enableMavenLocal")) {
project.logger.info("enabled mavenLocal")
mavenLocal()
}
mavenCentral()
maven {
url 'https://s01.oss.sonatype.org/content/repositories/snapshots/'
}
}
configurations.all {
resolutionStrategy.cacheDynamicVersionsFor 0, 'minutes'
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
testImplementation 'org.junit.jupiter:junit-jupiter-params'
testImplementation "org.testcontainers:testcontainers:1.19.0"
testImplementation "org.testcontainers:junit-jupiter:1.19.0"
testImplementation "org.testcontainers:toxiproxy:1.19.0"
testImplementation 'io.hstream:hstreamdb-java:0.17.1-SNAPSHOT'
testImplementation 'com.github.docker-java:docker-java:3.3.3'
compileOnly 'org.slf4j:slf4j-api:1.7.30'
testImplementation 'org.apache.logging.log4j:log4j-slf4j-impl:2.17.0'
testImplementation "org.assertj:assertj-core:3.24.2"
}
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
}
tasks.named('test') {
if (System.getProperty("tag")) {
useJUnitPlatform {
includeTags System.getProperty("tag")
}
} else {
useJUnitPlatform()
}
}
spotless {
java {
googleJavaFormat()
}
groovyGradle {
target '*.gradle'
greclipse()
indentWithSpaces()
}
}