-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
39 lines (32 loc) · 1.08 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
apply from: "GradleCommon/common.gradle"
import org.apache.tools.ant.filters.ReplaceTokens
repositories {
maven {
name "mikroskeem"
url "https://repo.wut.ee/repository/mikroskeem-repo"
}
}
dependencies {
// Dependencies
api "org.slf4j:slf4j-api:${slf4j_version}"
shadowRelocate("eu.mikroskeem:picomaven:${picoMaven_version}") {
exclude group: "org.slf4j"
}
// Test files
testRuntimeOnly "org.slf4j:slf4j-nop:${slf4j_version}"
testCompileOnly "org.spongepowered:configurate-hocon:3.7.3"
}
processSources {
// this will ensure that this task is redone when the versions change.
inputs.property "slf4jVersion", slf4j_version
filter (ReplaceTokens, tokens: [
"slf4jVersion": slf4j_version,
])
}
shadowJar {
relocate("licenses", "${rootProject.group}.shadow.licenses")
relocate("META-INF/maven", "META-INF/shadow/maven")
relocate("META-INF/DEPENDENCIES", "META-INF/shadow/DEPENDENCIES")
relocate("META-INF/LICENSE", "META-INF/shadow/LICENSE")
relocate("META-INF/NOTICE", "META-INF/shadow/NOTICE")
}