Skip to content

Commit

Permalink
Address gradle deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderZobkov committed Jan 19, 2025
1 parent b79b285 commit 782ef2e
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ plugins {
id "maven-publish"
}

group 'com.github.alexander-zobkov'
version '1.0-SNAPSHOT'
group = 'com.github.alexander-zobkov'
version = '1.0-SNAPSHOT'

sourceSets {
integrationTest {
Expand All @@ -19,7 +19,7 @@ sourceSets {

// /~https://github.com/gradle/gradle/issues/17236
tasks.withType(Copy).all {
duplicatesStrategy 'exclude'
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}

bootBuildImage {
Expand Down Expand Up @@ -78,8 +78,9 @@ configurations {
}

java {
sourceCompatibility = "11"
targetCompatibility = "11"
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}

task sourceJar(type: Jar) {
Expand Down Expand Up @@ -116,10 +117,10 @@ bootRun {
publishing {
publications {
maven(MavenPublication) {
artifact bootJar
groupId rootProject.group
artifactId rootProject.name
version rootProject.version
artifact(bootJar)
groupId = rootProject.group
artifactId = rootProject.name
version = rootProject.version
pom.packaging = 'jar'
}
}
Expand All @@ -135,8 +136,8 @@ configurations {
}

task integrationTest(type: Test) {
group 'verification'
description "Runs integration tests"
group = 'verification'
description = "Runs integration tests"
testClassesDirs = sourceSets.integrationTest.output.classesDirs
classpath = sourceSets.integrationTest.runtimeClasspath
useJUnitPlatform()
Expand Down

0 comments on commit 782ef2e

Please sign in to comment.