2021-10-07 15:48:52 +02:00
|
|
|
// SPDX-FileCopyrightText: 2021 Paul Schaub <vanitasvitae@fsfe.org>
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2020-04-11 12:48:07 +02:00
|
|
|
plugins {
|
|
|
|
id 'java-library'
|
|
|
|
}
|
|
|
|
|
2018-07-18 18:23:06 +02:00
|
|
|
dependencies {
|
2022-04-07 19:40:56 +02:00
|
|
|
// JUnit
|
2020-11-13 16:31:59 +01:00
|
|
|
testImplementation "org.junit.jupiter:junit-jupiter-api:$junitVersion"
|
2021-02-25 23:27:08 +01:00
|
|
|
testImplementation "org.junit.jupiter:junit-jupiter-params:$junitVersion"
|
2020-11-13 16:31:59 +01:00
|
|
|
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junitVersion"
|
|
|
|
|
2022-06-20 18:35:31 +02:00
|
|
|
// Mocking Components
|
|
|
|
testImplementation "org.mockito:mockito-core:$mockitoVersion"
|
|
|
|
|
2021-10-29 20:28:14 +02:00
|
|
|
// Logging
|
2021-09-17 18:05:54 +02:00
|
|
|
api "org.slf4j:slf4j-api:$slf4jVersion"
|
2021-10-29 20:28:14 +02:00
|
|
|
testImplementation "ch.qos.logback:logback-classic:$logbackVersion"
|
2021-08-23 15:47:21 +02:00
|
|
|
|
2022-04-07 19:40:39 +02:00
|
|
|
// Bouncy Castle
|
2024-06-21 13:21:08 +02:00
|
|
|
/*
|
2023-08-29 16:57:05 +02:00
|
|
|
api "org.bouncycastle:bcprov-jdk18on:$bouncyCastleVersion"
|
|
|
|
api "org.bouncycastle:bcpg-jdk18on:$bouncyPgVersion"
|
2024-06-21 13:21:08 +02:00
|
|
|
/*/
|
|
|
|
api(files("../../../bc-java/pg/build/libs/bcpg-jdk18on-${bouncyCastleVersion}.jar"))
|
|
|
|
api(files("../../../bc-java/prov/build/libs/bcprov-jdk18on-${bouncyCastleVersion}.jar"))
|
|
|
|
api(files("../../../bc-java/util/build/libs/bcutil-jdk18on-${bouncyCastleVersion}.jar"))
|
|
|
|
//*/
|
2021-08-23 13:29:57 +02:00
|
|
|
|
2022-04-07 19:40:56 +02:00
|
|
|
// @Nullable, @Nonnull annotations
|
|
|
|
implementation "com.google.code.findbugs:jsr305:3.0.2"
|
2018-07-18 18:23:06 +02:00
|
|
|
}
|
2024-03-19 15:51:09 +01:00
|
|
|
|
|
|
|
// 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.core')
|
|
|
|
}
|
|
|
|
}
|