-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
60 lines (51 loc) · 1.58 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
import org.apache.tools.ant.filters.ReplaceTokens
plugins {
id 'java'
}
group 'de.mint.consoleline'
version '1.0.6'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
repositories {
mavenCentral()
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.0'
compileOnly 'org.jetbrains:annotations:23.0.0'
// https://mvnrepository.com/artifact/org.jline/jline
implementation group: 'org.jline', name: 'jline', version: '3.21.0'
implementation group: 'com.github.vlsi.compactmap', name: 'compactmap', version: '2.0'
implementation 'org.reflections:reflections:0.10.2'
}
test {
useJUnitPlatform()
}
processResources {
from(sourceSets.main.resources.srcDirs) {
filter ReplaceTokens, tokens: [version: version]
}
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}
jar {
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
exclude("META-INF/*.SF", "META-INF/*.DSA", "META-INF/*.RSA")
}
/*jar {
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
manifest {
attributes 'Main-Class': 'de.mint.consoleline.test.Test'
attributes["Implementation-Version"] = project.version
attributes["Implementation-Vendor"] = project.name
}
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
exclude("META-INF/*.SF", "META-INF/*.DSA", "META-INF/*.RSA")
}*/