mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-29 15:52:08 +01:00
43 lines
1.2 KiB
Groovy
43 lines
1.2 KiB
Groovy
// SPDX-FileCopyrightText: 2021 Paul Schaub <vanitasvitae@fsfe.org>
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
plugins {
|
|
id 'java-library'
|
|
}
|
|
|
|
group 'org.pgpainless'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
mavenLocal()
|
|
}
|
|
|
|
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"
|
|
|
|
// Logging
|
|
testImplementation "ch.qos.logback:logback-classic:$logbackVersion"
|
|
|
|
// Depend on "shared" sop-java test suite (fixtures are turned into tests by inheritance inside test sources)
|
|
testImplementation(testFixtures("org.pgpainless:sop-java:$sopJavaVersion"))
|
|
|
|
implementation(project(":pgpainless-core"))
|
|
api "org.pgpainless:sop-java:$sopJavaVersion"
|
|
|
|
implementation "com.google.code.findbugs:jsr305:3.0.2"
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
environment("test.implementation", "sop.testsuite.pgpainless.PGPainlessSopInstanceFactory")
|
|
}
|
|
|
|
// https://docs.gradle.org/current/userguide/java_library_plugin.html#sec:java_library_modular_auto
|
|
tasks.named('jar') {
|
|
manifest {
|
|
attributes('Automatic-Module-Name': 'org.pgpainless.sop')
|
|
}
|
|
}
|