-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
68 lines (52 loc) · 1.81 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
64
65
66
67
68
import org.apache.tools.ant.filters.ReplaceTokens
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '7.1.2'
}
group 'xyz.theprogramsrc'
version '3.18.2'
description 'Secure your users and server.'
repositories{
mavenCentral()
mavenLocal()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
maven { url 'https://oss.sonatype.org/content/repositories/releases/' }
maven { url 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
maven { url 'https://repo.codemc.org/repository/maven-public' }
maven { url 'https://repo.extendedclip.com/content/repositories/placeholderapi/' }
maven { url 'https://jitpack.io/' }
}
dependencies {
implementation 'com.github.theprogramsrc:SuperCoreAPI:5.3.4-SNAPSHOT'
compileOnly 'org.apache.logging.log4j:log4j-core:2.17.1'
compileOnly 'org.spigotmc:spigot-api:1.17.1-R0.1-SNAPSHOT'
compileOnly 'net.md-5:bungeecord-api:1.17-R0.1-SNAPSHOT'
compileOnly 'me.clip:placeholderapi:2.10.9'
}
processResources {
filter ReplaceTokens, tokens: [name: rootProject.name, version: project.version.toString(), description: project.description]
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
tasks.withType(Copy) {
duplicatesStrategy = 'include'
}
tasks.withType(Jar) {
duplicatesStrategy = 'include'
}
shadowJar {
relocate 'xyz.theprogramsrc.supercoreapi', 'xyz.theprogramsrc.superauth.supercoreapi'
// relocate 'org.apache.logging.log4j', 'xyz.theprogramsrc.superauth.logging'
archiveBaseName.set('SuperAuth')
archiveClassifier.set('')
archiveVersion.set('')
minimize()
}
sourceSets.main.java.srcDir 'src/main/java'
sourceSets.main.resources.srcDir 'src/main/resources'
test {
useJUnitPlatform()
}