1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-11-14 00:12:06 +01:00

Gradle 7.2 compatibility

This commit is contained in:
Paul Schaub 2021-11-11 13:40:27 +01:00
parent 2ac10e7bc7
commit 480df8dac7
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
3 changed files with 21 additions and 3 deletions

View file

@ -37,9 +37,13 @@ dependencies {
// implementation "ch.qos.logback:logback-core:1.2.6"
// We want logback logging in tests and in the app
testImplementation "ch.qos.logback:logback-classic:$logbackVersion"
implementation "ch.qos.logback:logback-classic:$logbackVersion"
implementation(project(":pgpainless-sop"))
runtimeOnly(project(":pgpainless-sop")) {
capabilities {
requireCapability("org.pgpainless:pgpainless-sop-logback-support")
}
}
implementation(project(":sop-java"))
implementation(project(":sop-java-picocli"))
@ -56,6 +60,8 @@ jar {
attributes 'Main-Class': "$mainClassName"
}
duplicatesStrategy = DuplicatesStrategy.INCLUDE
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
} {

View file

@ -6,6 +6,12 @@ plugins {
id 'java-library'
}
java {
registerFeature('logbackSupport') {
usingSourceSet(sourceSets.main)
}
}
dependencies {
testImplementation "org.junit.jupiter:junit-jupiter-api:$junitVersion"
testImplementation "org.junit.jupiter:junit-jupiter-params:$junitVersion"
@ -14,7 +20,7 @@ dependencies {
// Logging
api "org.slf4j:slf4j-api:$slf4jVersion"
testImplementation "ch.qos.logback:logback-classic:$logbackVersion"
runtime "ch.qos.logback:logback-classic:$logbackVersion"
logbackSupportApi("ch.qos.logback:logback-classic:$logbackVersion")
api "org.bouncycastle:bcprov-jdk15on:$bouncyCastleVersion"
api "org.bouncycastle:bcpg-jdk15on:$bouncyCastleVersion"

View file

@ -12,13 +12,19 @@ repositories {
mavenCentral()
}
java {
registerFeature('logbackSupport') {
usingSourceSet(sourceSets.main)
}
}
dependencies {
testImplementation "org.junit.jupiter:junit-jupiter-api:$junitVersion"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junitVersion"
// Logging
testImplementation "ch.qos.logback:logback-classic:$logbackVersion"
runtime "ch.qos.logback:logback-classic:$logbackVersion"
logbackSupportApi("ch.qos.logback:logback-classic:$logbackVersion")
implementation(project(":pgpainless-core"))
implementation(project(":sop-java"))