-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle
59 lines (49 loc) · 1.28 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
plugins {
id 'java'
id 'checkstyle'
}
repositories {
mavenCentral()
}
dependencies {
implementation 'com.itextpdf:itextpdf:5.5.13.1'
implementation 'org.bouncycastle:bcpkix-jdk15on:1.63'
implementation 'org.jetbrains:annotations:16.0.2'
implementation 'javax.xml.bind:jaxb-api:2.2.4'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.3.1'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.3.1'
testImplementation 'org.mockito:mockito-core:3.0.0'
testImplementation 'org.mockito:mockito-junit-jupiter:2.23.0'
}
test {
useJUnitPlatform()
maxHeapSize = '1G'
testLogging {
outputs.upToDateWhen {false}
showStandardStreams = true
}
}
jar {
manifest {
attributes(
'Main-Class': 'com.advanon.pdfsignatures.Application'
)
}
from (configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }) {
exclude 'META-INF/MANIFEST.MF'
exclude 'META-INF/*.SF'
exclude 'META-INF/*.DSA'
exclude 'META-INF/*.RSA'
}
}
checkstyle {
toolVersion "8.6"
sourceSets = [project.sourceSets.main]
}
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
version = '0.1.0'
task copyJarToLibs(type: Copy) {
from 'build/libs/pdf-signatures-' + version + '.jar'
into "libs"
}