-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle
136 lines (114 loc) · 3.64 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
// To build the Sponge plugin, run 'gradle sponge'
// To build the Bukkit plugin with support for all versions of CraftBukkit since 1.4.7, run 'gradle bukkit'
// To build the Bukkit plugin with support for only the latest version of CraftBukkit, run 'gradle bukkitLatest'
plugins {
id 'com.github.johnrengelman.shadow' version '1.2.3'
}
group = 'com.github.hoqhuuep'
version = '1.0.8'
allprojects {
repositories {
jcenter()
maven {
name = 'sponge-repo'
url = 'http://repo.spongepowered.org/maven'
}
maven {
name = 'bukkit-repo'
//url 'http://repo.bukkit.org/content/groups/public/'
url 'http://maven.elmakers.com/repository/'
}
maven {
name = 'spigot-repo'
url 'https://hub.spigotmc.org/nexus/content/groups/public/'
}
maven {
name = 'mcstats-repo'
//url 'http://repo.mcstats.org/content/repositories/public'
url 'https://repo.minebench.de/'
}
mavenLocal()
}
apply plugin: 'eclipse'
}
subprojects {
apply plugin: 'java'
apply plugin: 'maven'
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
}
project(':IslandCraft-API') {
}
project(':IslandCraft-Common') {
dependencies {
compile project(':IslandCraft-API')
}
}
project(':IslandCraft-Bukkit') {
dependencies {
compile project(':IslandCraft-NMS')
compile project(':IslandCraft-Common')
compile group: 'org.bukkit', name: 'bukkit', version: '1.13-R0.1-SNAPSHOT'
compile group: 'org.mcstats.bukkit', name: 'metrics', version: 'R7'
compile group: 'org.avaje', name: 'ebean', version: '2.8.1'
compile group: 'javax.xml.bind', name: 'jaxb-api', version: '2.2.11'
compile group: 'com.sun.xml.bind', name: 'jaxb-core', version: '2.2.11'
compile group: 'com.sun.xml.bind', name: 'jaxb-impl', version: '2.2.11'
compile group: 'javax.activation', name: 'activation', version: '1.1.1'
}
}
project(':IslandCraft-NMS') {
dependencies {
compile project(':IslandCraft-API')
compile group: 'org.bukkit', name: 'bukkit', version: '1.12-R0.1-SNAPSHOT'
}
}
project(':IslandCraft-NMS-v1_13_R1') {
dependencies {
compile project(':IslandCraft-NMS')
compile group: 'org.bukkit', name: 'craftbukkit', version: '1.13-R0.1-SNAPSHOT'
}
}
configurations {
bukkitPlugin
bukkitLatest
}
dependencies {
bukkitPlugin(project(':IslandCraft-Bukkit')) {
exclude group: 'org.bukkit'
}
}
task bukkit(type: ShadowJar) {
description = 'Create the IslandCraft Bukkit plugin JAR'
group = project.group
baseName = project.name
appendix = 'Bukkit'
version = project.version
configurations = [ project.configurations.bukkitPlugin ]
from {
project.configurations.bukkitPlugin
}
relocate 'org.mcstats', 'com.github.hoqhuuep.islandcraft.mcstats'
}
dependencies {
bukkitLatest (project(':IslandCraft-Bukkit')) {
exclude group: 'org.bukkit'
}
//aggiunto da me
bukkitLatest(project(':IslandCraft-NMS-v1_13_R1')) {
exclude group: 'org.bukkit'
}
}
task bukkitLatest(type: ShadowJar) {
description = 'Create the IslandCraft Bukkit plugin JAR'
group = project.group
baseName = project.name
appendix = 'BukkitLatest'
version = project.version
configurations = [ project.configurations.bukkitLatest ]
from {
project.configurations.bukkitLatest
}
relocate 'org.mcstats', 'com.github.hoqhuuep.islandcraft.mcstats'
}