-
Notifications
You must be signed in to change notification settings - Fork 16
/
build.gradle
40 lines (32 loc) · 838 Bytes
/
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
import org.apache.tools.ant.filters.ReplaceTokens
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:6.0.0'
}
}
plugins {
id 'com.github.johnrengelman.shadow' version '6.0.0'
id 'java'
}
allprojects {
group = 'com.ishland.bukkit'
version = '0.1-SNAPSHOT'
}
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
dependencies {
implementation project(":CarpetPlugin-Core")
}
processResources {
from(sourceSets.main.resources.srcDirs) {
filter ReplaceTokens, tokens: [version: version]
}
}
shadowJar {
relocate "org.bukkit.craftbukkit", "org.bukkit.craftbukkit.${project.nms_version}"
relocate "net.minecraft.server", "net.minecraft.server.${project.nms_version}"
}
assemble.dependsOn(shadowJar)