Fix most gradle deprecation warnings (#2093)

This commit is contained in:
Jade
2025-10-16 10:22:55 +08:00
committed by GitHub
parent 115bc09f2e
commit 373ed2ff05
9 changed files with 27 additions and 30 deletions

View File

@@ -39,13 +39,10 @@ doxygen {
}
}
doxygen {
option 'generate_html', true
option 'html_extra_stylesheet', 'theme.css'
doxygen.sourceSets.main {
cppProjectZips.each {
dependsOn it
source it.source
doxygenDox.dependsOn it
sources it.source
it.ext.includeDirs.each {
cppIncludeRoots.add(it.absolutePath)
}
@@ -100,7 +97,7 @@ tasks.register("zipCppDocs", Zip) {
// Java
configurations {
javaSource {
transitive false
transitive = false
}
}
@@ -158,22 +155,22 @@ publishing {
artifact zipJavaDocs
artifactId = "${baseArtifactIdJava}"
groupId artifactGroupIdJava
version pubVersion
groupId = artifactGroupIdJava
version = pubVersion
}
cpp(MavenPublication) {
artifact zipCppDocs
artifactId = "${baseArtifactIdCpp}"
groupId artifactGroupIdCpp
version pubVersion
groupId = artifactGroupIdCpp
version = pubVersion
}
}
repositories {
maven {
// Just throw everything into build/maven
url(localMavenURL)
url = localMavenURL
}
}
}