forked from GeeItsZee/DbShare
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
52 lines (43 loc) · 1.85 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
import org.apache.tools.ant.filters.ReplaceTokens
plugins {
id 'java'
id 'net.kyori.blossom' version '1.3.1'
id 'com.github.johnrengelman.shadow' version '8.1.1'
}
group 'com.gmail.tracebachi'
version '2.1.1'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
maven { url = 'https://oss.sonatype.org/content/repositories/snapshots' }
maven { url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
maven { url = 'https://repo.papermc.io/repository/maven-public/' }
}
dependencies {
implementation 'org.mariadb.jdbc:mariadb-java-client:3.1.3'
implementation 'com.zaxxer:HikariCP:2.6.3'
compileOnly 'net.md-5:bungeecord-api:1.19-R0.1-SNAPSHOT'
compileOnly 'org.spigotmc:spigot-api:1.13.2-R0.1-SNAPSHOT'
compileOnly 'com.velocitypowered:velocity-api:3.1.1'
annotationProcessor 'com.velocitypowered:velocity-api:3.1.1'
}
processResources {
filter ReplaceTokens, tokens: ["project.version": version]
}
blossom {
replaceTokenIn('src/main/java/com/gmail/tracebachi/DbShare/DbShareVelocityPlugin.java')
replaceToken '@project.version@', version
}
shadowJar {
// relocate 'com.zaxxer', 'com.gmail.tracebachi.DbShare.lib.com.zaxxer'
// relocate 'org.slf4j', 'com.gmail.tracebachi.DbShare.lib.org.slf4j'
// MariaDB Connector/J
relocate 'com.github', 'com.gmail.tracebachi.DbShare.lib.com.github'
relocate 'com.google.errorprone', 'com.gmail.tracebachi.DbShare.lib.com.google.errorprone'
relocate 'com.sun', 'com.gmail.tracebachi.DbShare.lib.com.sun'
relocate 'org.apache', 'com.gmail.tracebachi.DbShare.lib.org.apache'
relocate 'org.checkerframework', 'com.gmail.tracebachi.DbShare.lib.org.checkerframework'
relocate 'org.mariadb', 'com.gmail.tracebachi.DbShare.lib.org.mariadb'
relocate 'waffle', 'com.gmail.tracebachi.DbShare.lib.waffle'
}