Skip to content

Commit a3efd9f

Browse files
committed
fix deprecations in gradle build, fixes #1149
1 parent 60ae927 commit a3efd9f

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

build.gradle

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,12 @@ repositories {
4646
}
4747

4848
java {
49+
sourceCompatibility = '21'
4950
toolchain {
5051
languageVersion = JavaLanguageVersion.of(21)
5152
}
5253
}
5354

54-
sourceCompatibility = '21'
55-
5655
publishing {
5756
publications {
5857
maven(MavenPublication) {
@@ -67,7 +66,7 @@ test {
6766
}
6867
}
6968

70-
tasks.withType(JavaCompile) {
69+
tasks.withType(JavaCompile).configureEach {
7170
options.encoding = 'UTF-8'
7271
}
7372

settings.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@
22
* This file was generated by the Gradle 'init' task.
33
*/
44

5-
rootProject.name = 'camel-idea-plugin'
6-
include(':camel-idea-plugin')
5+
rootProject.name = 'camel-idea-plugin'

0 commit comments

Comments
 (0)