-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
67 lines (58 loc) · 1.71 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
67
plugins {
id "java"
id "idea"
id "signing"
id "ninja.miserable.blossom" version "1.0.1"
id "org.spongepowered.plugin" version "0.6"
id 'com.qixalite.spongestart2' version '3.0.1'
}
group 'rocks.gameonthe.sponge'
version "${major}.${minor}.${patch}-${api}"
description = 'Game on the Rocks Sponge Utility Plugin.'
compileJava {
sourceCompatibility = targetCompatibility = "1.8"
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
repositories {
jcenter()
maven {
name = "Sponge"
url = "http://repo.spongepowered.org/maven"
}
maven {
name = "Forge"
url = "http://files.minecraftforge.net/maven"
}
maven {
name = "Nucleus"
url = "http://repo.drnaylor.co.uk/artifactory/list/minecraft"
}
maven {
name "LuckPerms"
url "https://repo.lucko.me/"
}
}
dependencies {
compile("org.spongepowered:spongeapi:${spongeapi}")
compile("me.ryanhamshire:griefprevention:${griefprevention}:api")
compile("io.github.nucleuspowered:nucleus-api:${nucleus}")
compile("me.lucko.luckperms:luckperms-api:${luckperms}")
}
blossom {
def pluginInfo = "src/main/java/rocks/gameonthe/sponge/PluginInfo.java"
replaceToken "@NAME@", project.name, pluginInfo
replaceToken "@VERSION@", project.version, pluginInfo
replaceToken "@DESCRIPTION@", project.description, pluginInfo
replaceToken "@GRIEFPREVENTION@", {griefprevention}, pluginInfo
replaceToken "@NUCLEUS@", {nucleus}, pluginInfo
replaceToken "@LUCKPERMS@", {luckperms}, pluginInfo
}
spongestart {
online 'false'
minecraft "1.12.2"
type "stable"
spongeForge properties.spongeforge
forgeServerFolder "run/API7/"
}