-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
64 lines (50 loc) · 1.6 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
plugins {
id 'java-library'
id 'com.diffplug.spotless' version '5.14.0'
id "io.github.gradle-nexus.publish-plugin" version "1.1.0"
id "org.shipkit.shipkit-auto-version" version "1.1.19"
//id 'org.inferred.processors' version '2.3.0'
}
apply from: "gradle/release.gradle"
repositories {
// Use Maven Central for resolving dependencies.
mavenCentral()
}
compileJava {
targetCompatibility = "1.8"
sourceCompatibility = "1.8"
}
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
options.addStringOption('encoding', 'UTF-8')
options.addStringOption('charSet', 'UTF-8')
options.addStringOption('source', '1.8')
options.addBooleanOption('html5', true)
}
spotless {
freshmark {
target('README.md')
propertiesFile('gradle.properties')
propertiesFile('version.properties')
}
java {
googleJavaFormat()
}
}
dependencies {
// java.security.debug
// https://mvnrepository.com/artifact/org.slieb/throwable-interfaces
implementation(group: 'org.slieb', name: 'throwable-interfaces', version: '1.13') {
transitive = false
}
// Use JUnit Jupiter API for testing.
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.1'
// Use JUnit Jupiter Engine for testing.
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
// https://mvnrepository.com/artifact/org.assertj/assertj-core
testImplementation group: 'org.assertj', name: 'assertj-core', version: '3.19.0'
}
tasks.named('test') {
// Use junit platform for unit tests.
useJUnitPlatform()
}