-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
66 lines (55 loc) · 1.5 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
apply plugin: 'java'
group = pluginGroup
version = pluginVersion
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
repositories {
mavenCentral()
maven {
name = 'spigotmc-repo'
url = 'https://hub.spigotmc.org/nexus/content/groups/public/'
}
maven {
name = 'papermc-repo'
url = 'https://papermc.io/repo/repository/maven-public/'
}
maven {
name = 'sonatype'
url = 'https://oss.sonatype.org/content/groups/public/'
}
maven {
name = 'codemc-repo'
url = 'https://repo.codemc.org/repository/maven-public/'
}
}
configurations {
shade.extendsFrom(compile)
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
compileOnly 'org.spigotmc:spigot-api:1.14.4-R0.1-SNAPSHOT'
shade "it.unimi.dsi:fastutil:8.3.0"
shade project("EpiCore-Items")
shade project("EpiCore-Utilities")
shade project("EpiCore-Persistance")
compile project("EpiCore-Items")
compile project("EpiCore-Utilities")
compile project("EpiCore-Persistance")
/*subprojects.each {
compile it
shade it
shade files(new File(it.buildDir, "libs"))
}*/
}
tasks.withType(Jar) {
destinationDir = file("run/plugins")
}
jar {
from configurations.shade.collect { it.isDirectory() ? it : zipTree(it) }
}
import org.apache.tools.ant.filters.ReplaceTokens
processResources {
from(sourceSets.main.resources.srcDirs) {
filter ReplaceTokens, tokens: [version: version]
}
}