mirror of
https://codeberg.org/PGPainless/sop-java.git
synced 2024-12-22 04:57: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...
|
// The ExternalTestSubjectFactory reads json config file to find configured SOP binaries...
|
||||||
testImplementation "com.google.code.gson:gson:$gsonVersion"
|
testImplementation "com.google.code.gson:gson:$gsonVersion"
|
||||||
// ...and extends TestSubjectFactory
|
// ...and extends TestSubjectFactory
|
||||||
testImplementation(testFixtures(project(":sop-java")))
|
testImplementation(project(":sop-java-testfixtures"))
|
||||||
}
|
}
|
||||||
|
|
||||||
test {
|
test {
|
||||||
|
|
|
@ -6,5 +6,6 @@ rootProject.name = 'SOP-Java'
|
||||||
|
|
||||||
include 'sop-java',
|
include 'sop-java',
|
||||||
'sop-java-picocli',
|
'sop-java-picocli',
|
||||||
|
'sop-java-testfixtures',
|
||||||
'external-sop'
|
'external-sop'
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ dependencies {
|
||||||
|
|
||||||
// SOP
|
// SOP
|
||||||
implementation(project(":sop-java"))
|
implementation(project(":sop-java"))
|
||||||
testImplementation(testFixtures(project(":sop-java")))
|
testImplementation(project(":sop-java-testfixtures"))
|
||||||
|
|
||||||
// CLI
|
// CLI
|
||||||
implementation "info.picocli:picocli:$picocliVersion"
|
implementation "info.picocli:picocli:$picocliVersion"
|
||||||
|
|
|
@ -74,9 +74,7 @@ class SopCLI {
|
||||||
@JvmStatic
|
@JvmStatic
|
||||||
fun execute(vararg args: String): Int {
|
fun execute(vararg args: String): Int {
|
||||||
// Set locale
|
// Set locale
|
||||||
CommandLine(InitLocale())
|
CommandLine(InitLocale()).setUnmatchedArgumentsAllowed(true).parseArgs(*args)
|
||||||
.setUnmatchedArgumentsAllowed(true)
|
|
||||||
.parseArgs(*args)
|
|
||||||
|
|
||||||
// Re-set bundle with updated locale
|
// Re-set bundle with updated locale
|
||||||
cliMsg = ResourceBundle.getBundle("msg_sop")
|
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 {
|
plugins {
|
||||||
id 'java-library'
|
id 'java-library'
|
||||||
id 'java-test-fixtures'
|
|
||||||
}
|
}
|
||||||
|
|
||||||
group 'org.pgpainless'
|
group 'org.pgpainless'
|
||||||
|
@ -17,8 +16,7 @@ dependencies {
|
||||||
testImplementation "org.junit.jupiter:junit-jupiter-api:$junitVersion"
|
testImplementation "org.junit.jupiter:junit-jupiter-api:$junitVersion"
|
||||||
testImplementation "org.junit.jupiter:junit-jupiter-params:$junitVersion"
|
testImplementation "org.junit.jupiter:junit-jupiter-params:$junitVersion"
|
||||||
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junitVersion"
|
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junitVersion"
|
||||||
testFixturesImplementation "org.junit.jupiter:junit-jupiter-api:$junitVersion"
|
testImplementation(project(":sop-java-testfixtures"))
|
||||||
testFixturesImplementation "org.junit.jupiter:junit-jupiter-params:$junitVersion"
|
|
||||||
|
|
||||||
// @Nullable, @Nonnull annotations
|
// @Nullable, @Nonnull annotations
|
||||||
implementation "com.google.code.findbugs:jsr305:3.0.2"
|
implementation "com.google.code.findbugs:jsr305:3.0.2"
|
||||||
|
|
Loading…
Reference in a new issue