Skip to content

Commit 1166714

Browse files
committed
Fix deprecation warning in build script.
1 parent 0034a4d commit 1166714

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

build.gradle.kts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ gradle.projectsEvaluated {
6868
}
6969

7070
plugins.withType<JavaPlugin> {
71-
configure<JavaPluginConvention> {
71+
configure<JavaPluginExtension> {
7272
sourceCompatibility = JavaVersion.VERSION_11
73-
targetCompatibility = JavaVersion.current()
73+
targetCompatibility = JavaVersion.VERSION_11
7474
}
7575

7676
configure<JavaPluginExtension> {
@@ -138,9 +138,9 @@ fun setupTestReporting(project: Project) {
138138
dependsOn("test")
139139

140140
reports {
141-
html.isEnabled = true
142-
xml.isEnabled = true
143-
csv.isEnabled = true
141+
html.required.set(true)
142+
xml.required.set(true)
143+
csv.required.set(true)
144144
}
145145
}
146146

@@ -200,7 +200,7 @@ fun setupJavadoc(project: Project) {
200200
project.tasks.register("java2html") {
201201
doLast {
202202
project.javaexec {
203-
main = "de.java2html.Java2Html"
203+
mainClass.set("de.java2html.Java2Html")
204204
args = listOf(
205205
"-srcdir", "src/main/java",
206206
"-targetdir", "${javadoc.destinationDir}/src-html/${project.extra["moduleName"]}"

settings.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
pluginManagement {
2727
repositories {
2828
mavenLocal()
29-
jcenter()
3029
gradlePluginPortal()
3130
}
3231
}

0 commit comments

Comments
 (0)