mirror of
https://codeberg.org/PGPainless/sop-java.git
synced 2024-12-21 12:47:56 +01:00
Move testfixtures to own artifact
This commit is contained in:
parent
e86dc365bb
commit
cfdbb4c6d8
30 changed files with 29 additions and 8 deletions
|
@ -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 {
|
||||
|
|
|
@ -6,5 +6,6 @@ rootProject.name = 'SOP-Java'
|
|||
|
||||
include 'sop-java',
|
||||
'sop-java-picocli',
|
||||
'sop-java-testfixtures',
|
||||
'external-sop'
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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")
|
||||
|
|
24
sop-java-testfixtures/build.gradle
Normal file
24
sop-java-testfixtures/build.gradle
Normal 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"
|
||||
|
||||
}
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue