Skip to content

Commit

Permalink
Updated gradle build file.
Browse files Browse the repository at this point in the history
Replaced deprecated syntax.
Added junit builder as test runtime dependency.
Updated junit to latest version.

Signed-off-by: Johannes Tegnér <[email protected]>
  • Loading branch information
Johannestegner committed Feb 24, 2025
1 parent 308b6db commit 29456ae
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,18 @@ plugins {
id 'signing'
}

sourceCompatibility = 1.8
targetCompatibility = 1.8

repositories {
mavenCentral()
}

dependencies {
testImplementation('org.junit.jupiter:junit-jupiter:5.12.0', 'org.json:json:20250107')
testImplementation 'org.junit.jupiter:junit-jupiter:5.12.0'
testImplementation 'org.json:json:20250107'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

version = System.getenv("RELEASE_VERSION") ?: 'NONE'
group 'dev.personnummer'
group = 'dev.personnummer'

jar {
manifest {
Expand All @@ -29,6 +28,9 @@ jar {
java {
withJavadocJar()
withSourcesJar()

sourceCompatibility = 1.8
targetCompatibility = 1.8
}

artifacts {
Expand All @@ -45,7 +47,7 @@ test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
exceptionFormat "full"
exceptionFormat = "full"
}
}

Expand All @@ -62,9 +64,9 @@ publishing {
maven {
name = "OSSRH"
if (project.version.endsWith('-SNAPSHOT')) {
url "https://oss.sonatype.org/content/repositories/snapshots"
url = "https://oss.sonatype.org/content/repositories/snapshots"
} else {
url "https://oss.sonatype.org/service/local/staging/deploy/maven2"
url = "https://oss.sonatype.org/service/local/staging/deploy/maven2"
}
credentials {
username = System.getenv("MAVEN_USERNAME")
Expand Down

0 comments on commit 29456ae

Please sign in to comment.