style: gradle

This commit is contained in:
2024-02-28 17:34:26 +03:00
parent ff7f2b6df3
commit 791861b21a

View File

@@ -1,3 +1,5 @@
//file:noinspection GroovyAssignabilityCheck
//file:noinspection GrUnresolvedAccess
plugins { plugins {
id "java-library" id "java-library"
id "maven-publish" id "maven-publish"
@@ -24,17 +26,16 @@ repositories {
dependencies { dependencies {
api("it.unimi.dsi:fastutil:8.5.12") api("it.unimi.dsi:fastutil:8.5.12")
def junit5_version = "5.9.2" def junit5Version = "5.9.2"
testImplementation("org.junit.jupiter:junit-jupiter-api:${junit5_version}") testImplementation("org.junit.jupiter:junit-jupiter-api:$junit5Version")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:${junit5_version}") testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$junit5Version")
} }
test { test {
useJUnitPlatform() useJUnitPlatform()
} }
publishing { publishing.publications {
publications {
mavenBinary(MavenPublication) { mavenBinary(MavenPublication) {
groupId = project.group groupId = project.group
artifactId = project.name artifactId = project.name
@@ -43,4 +44,3 @@ publishing {
from components.java from components.java
} }
} }
}