style: gradle
This commit is contained in:
22
build.gradle
22
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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user