From 8753480e822a1d0480e09a79da2b027e1b02409d Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Tue, 26 Apr 2022 00:32:03 +0200 Subject: [PATCH] Move junit5-system-exit version to version.gradle --- sop-java-picocli/build.gradle | 3 ++- version.gradle | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/sop-java-picocli/build.gradle b/sop-java-picocli/build.gradle index 5bb1a4a..2b2d0a2 100644 --- a/sop-java-picocli/build.gradle +++ b/sop-java-picocli/build.gradle @@ -10,8 +10,9 @@ dependencies { testImplementation "org.junit.jupiter:junit-jupiter-api:$junitVersion" testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junitVersion" + // Testing Exit Codes in JUnit // https://todd.ginsberg.com/post/testing-system-exit/ - testImplementation 'com.ginsberg:junit5-system-exit:1.1.2' + testImplementation "com.ginsberg:junit5-system-exit:$junitSysExitVersion" testImplementation 'org.mockito:mockito-core:4.3.1' implementation(project(":sop-java")) diff --git a/version.gradle b/version.gradle index 8b6a670..92db619 100644 --- a/version.gradle +++ b/version.gradle @@ -9,5 +9,6 @@ allprojects { minAndroidSdk = 10 javaSourceCompatibility = 1.8 junitVersion = '5.8.2' + junitSysExitVersion = '1.1.2' } }