1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-12-26 21:07:58 +01:00

Fix gradle build file

This commit is contained in:
Paul Schaub 2020-12-06 16:52:08 +01:00
parent 9d3ad01dfc
commit 379ad285f3

View file

@ -1,9 +1,7 @@
plugins {
id 'com.github.johnrengelman.shadow' version '1.2.2'
id 'application'
}
apply plugin: 'com.github.johnrengelman.shadow'
dependencies {
implementation(project(":pgpainless-core"))
@ -17,7 +15,7 @@ dependencies {
/*/
implementation "org.bouncycastle:bcprov-jdk15on:$bouncyCastleVersion"
//*/
api "org.bouncycastle:bcpg-jdk15on:$bouncyCastleVersion"
implementation "org.bouncycastle:bcpg-jdk15on:$bouncyCastleVersion"
// https://mvnrepository.com/artifact/com.google.code.findbugs/jsr305
implementation group: 'com.google.code.findbugs', name: 'jsr305', version: '3.0.2'
@ -25,6 +23,17 @@ dependencies {
mainClassName = 'org.pgpainless.sop.PGPainlessCLI'
shadowJar {
baseName = 'pgpcli'
jar {
manifest {
attributes 'Main-Class': "$mainClassName"
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
} {
exclude "META-INF/*.SF"
exclude "META-INF/*.DSA"
exclude "META-INF/*.RSA"
}
}