-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
64 lines (52 loc) · 1.68 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
apply plugin: 'java'
group = pluginGroup
version = pluginVersion
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
maven {
name = 'spigotmc-repo'
url = 'https://hub.spigotmc.org/nexus/content/groups/public/'
}
maven {
name = 'sonatype'
url = 'https://oss.sonatype.org/content/groups/public/'
}
maven {
name = 'vault-repo'
url = 'http://nexus.hc.to/content/repositories/pub_releases'
}
maven { url 'https://jitpack.io' }
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
//testCompile 'com.github.seeseemelk:MockBukkit:master-SNAPSHOT'
compile 'net.milkbowl.vault:VaultAPI:1.6'
compile 'org.dizitart:nitrite:3.0.0'
compile 'org.spigotmc:spigot-api:1.12.2-R0.1-SNAPSHOT'
compile 'org.mongodb:mongodb-driver-sync:3.7.1'
compile 'io.scalecube:socketio:2.3.4'
compile 'io.netty:netty-buffer:4.1.6.Final'
compile 'org.slf4j:slf4j-simple:1.7.25'
compile group: 'com.google.inject', name: 'guice', version: '4.2.0'
}
import org.apache.tools.ant.filters.ReplaceTokens
processResources {
from(sourceSets.main.resources.srcDirs) {
filter ReplaceTokens, tokens: [version: version]
}
}
jar {
manifest {
attributes(
"Main-Class": "ru.zendal.TradingPlatform"
)
}
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
}
task finalize << {
ant.move(file: "/Users/bigtows/Projects/TradingPlatform/build/libs/TradingPlatform-"+version+".jar", tofile: "/Volumes/LaCie/Spigot/server/plugins/TradingPlatform.jar")
print "End move"
}
build.finalizedBy(finalize)