Move testfixtures to own artifact

This commit is contained in:
Paul Schaub 2024-12-13 16:41:01 +01:00
parent e86dc365bb
commit cfdbb4c6d8
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
30 changed files with 29 additions and 8 deletions

View file

@ -27,7 +27,7 @@ dependencies {
// The ExternalTestSubjectFactory reads json config file to find configured SOP binaries...
testImplementation "com.google.code.gson:gson:$gsonVersion"
// ...and extends TestSubjectFactory
testImplementation(testFixtures(project(":sop-java")))
testImplementation(project(":sop-java-testfixtures"))
}
test {

View file

@ -6,5 +6,6 @@ rootProject.name = 'SOP-Java'
include 'sop-java',
'sop-java-picocli',
'sop-java-testfixtures',
'external-sop'

View file

@ -17,7 +17,7 @@ dependencies {
// SOP
implementation(project(":sop-java"))
testImplementation(testFixtures(project(":sop-java")))
testImplementation(project(":sop-java-testfixtures"))
// CLI
implementation "info.picocli:picocli:$picocliVersion"

View file

@ -74,9 +74,7 @@ class SopCLI {
@JvmStatic
fun execute(vararg args: String): Int {
// Set locale
CommandLine(InitLocale())
.setUnmatchedArgumentsAllowed(true)
.parseArgs(*args)
CommandLine(InitLocale()).setUnmatchedArgumentsAllowed(true).parseArgs(*args)
// Re-set bundle with updated locale
cliMsg = ResourceBundle.getBundle("msg_sop")

View file

@ -0,0 +1,24 @@
// SPDX-FileCopyrightText: 2024 Paul Schaub <vanitasvitae@fsfe.org>
//
// SPDX-License-Identifier: Apache-2.0
plugins {
id 'java-library'
}
group 'org.pgpainless'
repositories {
mavenCentral()
}
dependencies {
implementation(project(":sop-java"))
implementation "org.junit.jupiter:junit-jupiter-api:$junitVersion"
implementation "org.junit.jupiter:junit-jupiter-params:$junitVersion"
runtimeOnly "org.junit.jupiter:junit-jupiter-engine:$junitVersion"
// @Nullable, @Nonnull annotations
implementation "com.google.code.findbugs:jsr305:3.0.2"
}

View file

@ -4,7 +4,6 @@
plugins {
id 'java-library'
id 'java-test-fixtures'
}
group 'org.pgpainless'
@ -17,8 +16,7 @@ dependencies {
testImplementation "org.junit.jupiter:junit-jupiter-api:$junitVersion"
testImplementation "org.junit.jupiter:junit-jupiter-params:$junitVersion"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junitVersion"
testFixturesImplementation "org.junit.jupiter:junit-jupiter-api:$junitVersion"
testFixturesImplementation "org.junit.jupiter:junit-jupiter-params:$junitVersion"
testImplementation(project(":sop-java-testfixtures"))
// @Nullable, @Nonnull annotations
implementation "com.google.code.findbugs:jsr305:3.0.2"