mirror of
https://github.com/GTNewHorizons/StructureLib.git
synced 2026-10-25 20:32:24 +00:00
Cleans up the code a tiny bit, moving comments around, removing some `@SuppressWarnings` and some unused code, and using modern Java features. These changes should require no modifications to any outside mods. --------- Co-authored-by: Glease <4586901+Glease@users.noreply.github.com>
42 lines
1.1 KiB
Groovy
42 lines
1.1 KiB
Groovy
javadoc {
|
|
javadocTool = javaToolchains.javadocToolFor {
|
|
// Last version with frames, but it also has search
|
|
languageVersion = JavaLanguageVersion.of(25)
|
|
vendor = JvmVendorSpec.ADOPTIUM
|
|
}
|
|
|
|
inputs.file "src/main/javadoc/overview.html"
|
|
|
|
include "com/gtnewhorizon/structurelib/alignment/**"
|
|
include "com/gtnewhorizon/structurelib/constructable/**"
|
|
include "com/gtnewhorizon/structurelib/structure/**"
|
|
include "com/gtnewhorizon/structurelib/util/**"
|
|
include "com/gtnewhorizon/structurelib/StructureLibAPI.java"
|
|
include "com/gtnewhorizon/structurelib/StructureEvent.java"
|
|
|
|
classpath += sourceSets.patchedMc.output
|
|
|
|
options {
|
|
overview "src/main/javadoc/overview.html"
|
|
links 'https://docs.oracle.com/en/java/javase/25/docs/api/'
|
|
links 'https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.7.10-10.13.4.1614/'
|
|
}
|
|
}
|
|
|
|
tasks.register('javadocJar', Jar) {
|
|
dependsOn javadoc
|
|
archiveClassifier = 'javadoc'
|
|
from javadoc.destinationDir
|
|
}
|
|
|
|
artifacts {
|
|
archives javadocJar
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
testLogging {
|
|
events "passed", "skipped", "failed"
|
|
}
|
|
}
|