forked from Holo795/ServerBridge
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
87 lines (74 loc) · 2.06 KB
/
build.gradle
File metadata and controls
87 lines (74 loc) · 2.06 KB
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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:5.2.0'
}
}
apply plugin: 'java'
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'eclipse'
apply plugin: 'maven'
group = 'fr.vmarchaud'
version = '4.0.0'
description = "mineweb_bridge"
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenLocal()
maven { url "https://hub.spigotmc.org/nexus/content/groups/public/" }
maven { url "http://repo.dmulloy2.net/content/groups/public/" }
maven { url 'https://repo.spongepowered.org/maven' }
mavenCentral()
maven {
name 'm2-dv8tion'
url 'https://m2.dv8tion.net/releases'
}
jcenter()
flatDir {
dirs 'dependencies'
}
}
dependencies {
compileOnly "com.google.guava:guava:17.0"
//compile files('/Users/valentin/Sites/mineweb_bridge/guava-17.0.jar')
//compile group: 'com.google.guava', name: 'guava', version: '17.0'
compileOnly "com.google.code.gson:gson:2.5"
compileOnly ("com.comphenix.protocol:ProtocolLib:4.5.1") {
exclude group: "com.comphenix.executors"
// For
exclude group: "cglib"
}
compile 'javax.xml.bind:jaxb-api:2.3.0'
compileOnly 'org.spongepowered:spongeapi:7.1.0'
compileOnly "org.spigotmc:spigot-api:1.15.2-R0.1-SNAPSHOT"
compileOnly 'org.projectlombok:lombok:1.18.10'
annotationProcessor 'org.projectlombok:lombok:1.18.10'
compileOnly group: 'io.netty', name: 'netty-all', version: '4.1.43.Final'
compileOnly fileTree(include: ['*.jar'], dir: 'dependencies')
compile ("net.dv8tion:JDA:4.3.0_277"){
exclude module: 'opus-java'
}
compile 'org.slf4j:slf4j-nop:1.7.25'
}
jar {
from {
configurations.compile.collect {
it.isDirectory() ? it : zipTree(it)
}
}
manifest {
attributes 'Created-By': 'Mineweb'
attributes 'Author': 'ThisIsMac, Shyrogan, Holo795, Sytorex'
attributes 'Built-By': 'Holo795'
}
}
task moveIntoBukkit(type: Copy) {
from "build/libs/mineweb_bridge-${version}.jar"
into '../_SERVER/plugins/'
}
task moveIntoBungee(type: Copy) {
from "build/libs/mineweb_bridge-${version}.jar"
into '../_BUNGEE/plugins/'
}