-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
63 lines (49 loc) · 1.35 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
60
61
62
63
plugins {
id 'java'
id "application"
}
group 'su.knrg.crypto'
version '0.4.0'
mainClassName = 'su.knst.crypto.Main'
sourceSets {
main {
java {
srcDirs = ['src/main/java']
}
}
}
configurations {
include
}
repositories {
mavenCentral()
}
dependencies {
testImplementation(platform('org.junit:junit-bom:5.9.2'))
testImplementation('org.junit.jupiter:junit-jupiter')
include group: 'org.bouncycastle', name: 'bcprov-jdk15on', version: '1.70'
include group: 'com.google.zxing', name: 'core', version: '3.3.0'
include group: 'com.google.zxing', name: 'javase', version: '3.3.0'
include group: 'com.codahale', name: 'shamir', version: '0.7.0'
include group: 'org.jline', name: 'jline', version: '3.22.0'
include group: 'org.jline', name: 'jline-terminal-jansi', version: '3.22.0'
include group: 'org.jline', name: 'jline-reader', version: '3.22.0'
configurations.implementation.extendsFrom(configurations.include)
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
test {
useJUnitPlatform()
}
jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from(configurations.include.collect { it.isDirectory() ? it : zipTree(it) }) {
exclude 'META-INF/BC**'
}
manifest {
attributes 'Main-Class': mainClassName
}
}