chore: finalizing javadoc footer and other params Signed-off-by: Leo Galambos <lg@hq.egothor.org>
This commit is contained in:
33
build.gradle
33
build.gradle
@@ -6,6 +6,10 @@ plugins {
|
|||||||
id 'pmd'
|
id 'pmd'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
import java.time.LocalDate
|
||||||
|
|
||||||
|
def currentYear=LocalDate.now().getYear()
|
||||||
|
|
||||||
group 'org.egothor'
|
group 'org.egothor'
|
||||||
version gitVersion(prefix:'release@')
|
version gitVersion(prefix:'release@')
|
||||||
|
|
||||||
@@ -40,17 +44,36 @@ java {
|
|||||||
|
|
||||||
javadoc {
|
javadoc {
|
||||||
failOnError = false
|
failOnError = false
|
||||||
}
|
|
||||||
|
options.addBooleanOption('html5', true)
|
||||||
|
options.tags('apiNote:a:API Note:')
|
||||||
|
options.tags('implSpec:a:Implementation Requirements:')
|
||||||
|
options.tags('implNote:a:Implementation Note:')
|
||||||
|
options.tags('param')
|
||||||
|
options.tags('return')
|
||||||
|
options.tags('throws')
|
||||||
|
options.tags('since')
|
||||||
|
options.tags('version')
|
||||||
|
options.tags('serialData')
|
||||||
|
options.tags('factory')
|
||||||
|
options.tags('see')
|
||||||
|
|
||||||
|
options.use = true
|
||||||
|
options.author = true
|
||||||
|
options.version = true
|
||||||
|
options.windowTitle = 'Conflux'
|
||||||
|
|
||||||
|
options.bottom = '<div style="text-align: right; padding: 5px;">Copyright © ' + currentYear +
|
||||||
|
' Egothor - Version ' + version +
|
||||||
|
' - <a href="https://gitea.egothor.org/Egothor/conflux/raw/branch/main/LICENSE">License</a>' +
|
||||||
|
'</div>'
|
||||||
|
source = sourceSets.main.allJava}
|
||||||
|
|
||||||
tasks.named('test') {
|
tasks.named('test') {
|
||||||
// Use JUnit Platform for unit tests.
|
// Use JUnit Platform for unit tests.
|
||||||
useJUnitPlatform()
|
useJUnitPlatform()
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType(Javadoc).configureEach {
|
|
||||||
options.bottom = "Copyright © 2025 Egothor"
|
|
||||||
}
|
|
||||||
|
|
||||||
task uploadJavadoc(type: Exec) {
|
task uploadJavadoc(type: Exec) {
|
||||||
dependsOn javadoc
|
dependsOn javadoc
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user