-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
54 lines (43 loc) · 1.1 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
plugins {
id 'org.spongepowered.plugin' version '0.9.0'
id 'ninja.miserable.blossom' version '1.0.1'
id 'com.github.johnrengelman.shadow' version '2.0.4'
}
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
defaultTasks 'clean', 'build'
def offline = false;
blossom {
replaceToken('@spongeVersion@', spongeVersion)
replaceToken('@OFFLINE@', offline)
}
configurations {
shade
compile.extendsFrom(shade)
}
repositories {
mavenCentral()
maven {
name = 'sponge'
url = 'https://repo.spongepowered.org/maven'
}
maven { url = 'https://jitpack.io' }
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
dependencies {
compileOnly "org.spongepowered:spongeapi:${spongeapi}"
annotationProcessor "org.spongepowered:spongeapi:${spongeapi}"
shade 'org.bstats.bStats-Metrics:bstats-sponge:1.4'
}
version = "${spongeVersion}-${offline ? "Offline" : "Online"}"
shadowJar() {
configurations = [project.configurations.compile]
from sourceSets.main.output
classifier = ""
}
artifacts {
archives shadowJar
}
jar.setEnabled(true)