-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
67 lines (57 loc) · 1.52 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
plugins {
alias libs.plugins.spongeConvention
alias libs.plugins.spotless
alias libs.plugins.errorprone
alias libs.plugins.indra.sonatype
alias libs.plugins.indra
alias libs.plugins.indra.crossdoc
id 'jacoco'
}
group 'org.spongepowered'
version '1.1.0-SNAPSHOT'
description 'A helper library to allow running JUnit tests in a ModLauncher context.'
dependencies {
api "org.junit.jupiter:junit-jupiter-api:$junitVersion"
implementation "cpw.mods:modlauncher:$modlauncherVersion"
testImplementation platform(libs.junit.bom)
testImplementation libs.junit.api
testRuntimeOnly libs.junit.engine
testRuntimeOnly libs.junit.launcher
errorprone libs.errorprone
errorprone libs.errorprone.annotations
}
indraCrossdoc {
baseUrl providers.gradleProperty('javadocPublishRoot')
}
test {
finalizedBy jacocoTestReport // report is always generated after tests run
}
jacocoTestReport {
dependsOn test // tests are required to run before generating the report
}
processResources {
from(rootProject.rootDir) {
include 'LICENSE.txt'
def projectName = project.name
rename { "LICENSE_${projectName}.txt" }
}
}
spongeConvention {
repository("modlauncher-injector-junit") {
ci(true)
publishing(true)
}
mitLicense()
}
spotless {
java {
endWithNewline()
indentWithSpaces(4)
trimTrailingWhitespace()
removeUnusedImports()
formatAnnotations()
}
}
indra {
javaVersions().minimumToolchain 17
}