-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
build.gradle
122 lines (107 loc) · 2.41 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
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 '2.0.0-SNAPSHOT'
description 'Noise generation library for Java, based on the libnoise C++ library.'
configurations {
tagletPath
}
dependencies {
testImplementation libs.junit.api
testRuntimeOnly libs.junit.engine
errorprone libs.errorprone
errorprone libs.errorprone.annotations
tagletPath project(':noise-doclet-extras')
}
sourceSets {
main {
multirelease {
alternateVersions 9
moduleName "org.spongepowered.noise"
requireAllPackagesExported()
applyToJavadoc(true)
}
}
}
check {
dependsOn 'validateModule'
}
tasks.withType(JavaCompile).configureEach {
options.errorprone.disable("InvalidBlockTag")
}
def taglets = configurations.named('tagletPath').map { it.incoming.files }
javadoc {
inputs.files(taglets).withPropertyName("tagletPath")
options.taglets("noise.build.SourceModulesTaglet")
doFirst {
options.tagletPath(taglets.get().files.toList())
}
}
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("noise") {
ci(true)
publishing(true)
}
mitLicense()
}
spotless {
java {
endWithNewline()
indentWithSpaces(4)
trimTrailingWhitespace()
removeUnusedImports()
formatAnnotations()
}
}
indra {
javaVersions().minimumToolchain 17
configurePublications {
pom {
developers {
developer {
id = 'DDoS'
name = 'Aleksi Sapon'
email = '[email protected]'
}
developer {
id = 'kitskub'
name = 'Jack Huey'
email = '[email protected]'
}
developer {
id = 'Wolf480pl'
name = 'Wolf480pl'
email = '[email protected]'
}
developer {
id = 'lukespragg'
name = 'Luke Spragg'
email = '[email protected]'
}
}
}
}
}