Skip to content

Commit

Permalink
Fix deprecation warning in build script.
Browse files Browse the repository at this point in the history
  • Loading branch information
jenetics committed Nov 12, 2021
1 parent 0034a4d commit 1166714
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
12 changes: 6 additions & 6 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ gradle.projectsEvaluated {
}

plugins.withType<JavaPlugin> {
configure<JavaPluginConvention> {
configure<JavaPluginExtension> {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.current()
targetCompatibility = JavaVersion.VERSION_11
}

configure<JavaPluginExtension> {
Expand Down Expand Up @@ -138,9 +138,9 @@ fun setupTestReporting(project: Project) {
dependsOn("test")

reports {
html.isEnabled = true
xml.isEnabled = true
csv.isEnabled = true
html.required.set(true)
xml.required.set(true)
csv.required.set(true)
}
}

Expand Down Expand Up @@ -200,7 +200,7 @@ fun setupJavadoc(project: Project) {
project.tasks.register("java2html") {
doLast {
project.javaexec {
main = "de.java2html.Java2Html"
mainClass.set("de.java2html.Java2Html")
args = listOf(
"-srcdir", "src/main/java",
"-targetdir", "${javadoc.destinationDir}/src-html/${project.extra["moduleName"]}"
Expand Down
1 change: 0 additions & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
pluginManagement {
repositories {
mavenLocal()
jcenter()
gradlePluginPortal()
}
}
Expand Down

0 comments on commit 1166714

Please sign in to comment.