-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
56 lines (44 loc) · 1.12 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
import org.apache.tools.ant.filters.ReplaceTokens
plugins {
id 'java'
id "io.freefair.lombok" version "8.6"
id "com.github.johnrengelman.shadow" version "8.1.1"
}
group 'net.simplyvanilla'
version '0.2.4'
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
}
compileJava.options.encoding = 'UTF-8'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
repositories {
mavenCentral()
maven {
url 'https://repo.papermc.io/repository/maven-public/'
}
}
dependencies {
compileOnly 'io.papermc.paper:paper-api:1.20.4-R0.1-SNAPSHOT'
}
processResources {
duplicatesStrategy = 'include'
from(sourceSets.main.resources.srcDirs) {
filter ReplaceTokens, tokens: [version: version]
}
}
shadowJar {
archiveClassifier.set('')
relocate 'com.bencodez.advancedcore', 'net.simplyvanilla.dependency.advancedcore'
minimize {
dependencies {
exclude('com.google')
exclude('org.apache')
exclude('org.json')
exclude('redis.clients')
exclude('LICENSE.txt')
}
}
}
build.dependsOn shadowJar