diff --git a/build.gradle b/build.gradle index b0ee545..41dcd93 100644 --- a/build.gradle +++ b/build.gradle @@ -1,3 +1,5 @@ +//file:noinspection GroovyAssignabilityCheck +//file:noinspection GrUnresolvedAccess plugins { id "java-library" id "maven-publish" @@ -24,23 +26,21 @@ repositories { dependencies { api("it.unimi.dsi:fastutil:8.5.12") - def junit5_version = "5.9.2" - testImplementation("org.junit.jupiter:junit-jupiter-api:${junit5_version}") - testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:${junit5_version}") + def junit5Version = "5.9.2" + testImplementation("org.junit.jupiter:junit-jupiter-api:$junit5Version") + testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$junit5Version") } test { useJUnitPlatform() } -publishing { - publications { - mavenBinary(MavenPublication) { - groupId = project.group - artifactId = project.name - version = project.version +publishing.publications { + mavenBinary(MavenPublication) { + groupId = project.group + artifactId = project.name + version = project.version - from components.java - } + from components.java } }