Skip to content

Commit 7622fb5

Browse files
committed
Replace usage of deprecated API
1 parent 712e8c2 commit 7622fb5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

buildSrc/src/main/kotlin/java-multi-release-sources.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ listOf(9, 17).forEach { javaVersion ->
2727
options.release.set(javaVersion)
2828
}
2929

30-
named<Checkstyle>("checkstyle${sourceSet.name.capitalize()}").configure {
30+
named<Checkstyle>("checkstyle${sourceSet.name.replaceFirstChar(Char::titlecase)}").configure {
3131
configFile = rootProject.file("src/checkstyle/checkstyleMain.xml")
3232
}
3333

buildSrc/src/main/kotlin/temp-maven-repo.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ subprojects {
2222
}
2323
}
2424
tasks.withType<PublishToMavenRepository>().configureEach {
25-
if (name.endsWith("To${tempRepoName.capitalize()}Repository")) {
25+
if (name.endsWith("To${tempRepoName.replaceFirstChar(Char::titlecase)}Repository")) {
2626
dependsOn(clearTempRepoDir)
2727
}
2828
}

platform-tooling-support-tests/projects/gradle-starter/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ tasks.test {
2525
}
2626

2727
reports {
28-
html.isEnabled = true
28+
html.required.set(true)
2929
}
3030

3131
val outputDir = reports.junitXml.outputLocation

0 commit comments

Comments
 (0)