-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
45 lines (38 loc) · 1.33 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
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '7.1.2'
}
group = 'eu.avalanche7'
version = '1.0.6'
sourceCompatibility = 1.8
repositories {
mavenCentral()
maven { url = 'https://files.minecraftforge.net/maven' }
maven { url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
maven { url = 'https://repo.extendedclip.com/content/repositories/placeholderapi/' }
maven { url = 'https://dl.bintray.com/mbax/craftbukkit-repo' }
}
dependencies {
compileOnly files('libs/spigot-1.7.10-SNAPSHOT-b1657.jar')
compileOnly files('libs/BCLForgeLib-1.0.jar')
compileOnly files('libs/VaultAPI-1.5.jar')
compileOnly files('libs/forge-1.7.10-10.13.4.1614-1.7.10-universal.jar')
compileOnly files('libs/PlaceholderAPI-2.11.6.jar')
implementation 'mysql:mysql-connector-java:8.0.28'
implementation 'org.mariadb.jdbc:mariadb-java-client:3.3.3'
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
shadowJar {
dependencies {
include dependency("org.mariadb.jdbc:mariadb-java-client:3.3.3")
//include dependency("mysql:mysql-connector-java:8.0.28")
}
relocate("org.mariadb.jdbc", "eu.avalanche7.lib.mariadb")
relocate("com.mysql.cj", "eu.avalanche7.lib.mysql")
archiveClassifier.set('Shadow')
}
tasks.build {
dependsOn shadowJar
}