plugins id us kirchmeier capsule version apply plugin java apply plugi

 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
plugins {
id "us.kirchmeier.capsule" version "0.9.0"
}
apply plugin: 'java'
apply plugin: 'application'
mainClassName = 'com.square.WeakLinkServerSide.Server'
sourceSets {
main {
java {
srcDir 'src/'
}
}
}
repositories {
mavenCentral()
flatDir {
dirs 'libs'
}
}
dependencies {
compile name: 'flexjson-2.1'
compile name: 'jetty-http-8.1.15.v20140411'
compile name: 'jetty-io-8.1.15.v20140411'
compile name: 'jetty-server-8.1.15.v20140411'
compile name: 'jetty-util-8.1.15.v20140411'
compile name: 'jetty-websocket-8.1.15.v20140411'
compile name: 'mysql-connector-java-5.1.33-bin'
compile name: 'servlet-api-3.0'
}
task wrapper(type: Wrapper) {
gradleVersion = '2.1'
}
task fatCapsule(type: FatCapsule) {
archiveName = "game_server.jar"
applicationClass 'com.square.WeakLinkServerSide.Server'
}