-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathbuild.gradle
78 lines (59 loc) · 1.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
plugins {
id 'com.github.johnrengelman.shadow' version '1.2.4'
}
subprojects {
apply plugin: 'java'
apply plugin: 'com.github.johnrengelman.shadow'
sourceCompatibility = '1.8'
group 'fr.minuskube'
version '1.0.2'
configurations { provided }
sourceSets {
main.compileClasspath += configurations.provided
test.compileClasspath += configurations.provided
test.runtimeClasspath += configurations.provided
}
repositories {
mavenCentral()
}
dependencies {
compile 'org.slf4j:slf4j-api:1.7.25'
compile 'org.slf4j:slf4j-simple:1.7.25'
testCompile 'junit:junit:4.12'
}
task copyJar(type: Copy, dependsOn: shadowJar) {
from shadowJar
into '../build'
}
compileJava.finalizedBy copyJar
}
project(':core') {
shadowJar {
archiveName = 'Netherboard-API-' + project.version + '.jar'
}
}
project(':bukkit') {
shadowJar {
archiveName = 'Netherboard-Bukkit-' + project.version + '.jar'
}
repositories {
maven { url 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
}
dependencies {
provided 'org.spigotmc:spigot-api:1.11.2-R0.1-SNAPSHOT'
compile project(':core')
}
}
project(':sponge') {
shadowJar {
archiveName = 'Netherboard-Sponge-' + project.version + '.jar'
}
repositories {
maven { url 'https://repo.spongepowered.org/maven' }
}
dependencies {
provided 'org.spongepowered:spongeapi:5.1.0'
compile project(':core')
}
}