2023-01-05 03:06:22 +01:00
|
|
|
// SPDX-FileCopyrightText: 2021 Paul Schaub <vanitasvitae@fsfe.org>
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
id 'java-library'
|
|
|
|
}
|
|
|
|
|
|
|
|
group 'org.pgpainless'
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
testImplementation "org.junit.jupiter:junit-jupiter-api:$junitVersion"
|
2023-01-22 16:47:44 +01:00
|
|
|
testImplementation "org.junit.jupiter:junit-jupiter-params:$junitVersion"
|
2023-01-05 03:06:22 +01:00
|
|
|
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junitVersion"
|
|
|
|
|
|
|
|
api project(":sop-java")
|
2023-01-07 15:23:57 +01:00
|
|
|
api "org.slf4j:slf4j-api:$slf4jVersion"
|
|
|
|
testImplementation "ch.qos.logback:logback-classic:$logbackVersion"
|
2023-01-09 19:48:25 +01:00
|
|
|
|
2023-01-12 13:53:49 +01:00
|
|
|
// @Nonnull, @Nullable...
|
|
|
|
implementation "com.google.code.findbugs:jsr305:$jsrVersion"
|
2023-01-31 18:20:27 +01:00
|
|
|
|
|
|
|
// The ExternalTestSubjectFactory reads json config file to find configured SOP binaries...
|
2023-01-31 18:36:05 +01:00
|
|
|
testImplementation "com.google.code.gson:gson:$gsonVersion"
|
2023-01-31 18:20:27 +01:00
|
|
|
// ...and extends TestSubjectFactory
|
|
|
|
testImplementation(testFixtures(project(":sop-java")))
|
2023-01-05 03:06:22 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
test {
|
2023-01-31 18:20:27 +01:00
|
|
|
// Inject configured external SOP instances using our custom TestSubjectFactory
|
|
|
|
environment("test.implementation", "sop.testsuite.external.ExternalSOPInstanceFactory")
|
|
|
|
|
2023-01-05 03:06:22 +01:00
|
|
|
useJUnitPlatform()
|
2023-01-31 18:20:27 +01:00
|
|
|
|
2023-01-31 18:40:38 +01:00
|
|
|
// since we test external backends which we might not control,
|
|
|
|
// we ignore test failures in this module
|
2023-01-22 16:47:44 +01:00
|
|
|
ignoreFailures = true
|
2023-01-31 18:20:27 +01:00
|
|
|
}
|
|
|
|
|