-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
56 lines (44 loc) · 1.72 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
/*
* This build file was auto generated by running the Gradle 'init' task
* by 'guipsp' at '18/05/14 09:54' with Gradle 1.12
*
* This generated file contains a sample Java project to get you started.
* For more details take a look at the Java Quickstart chapter in the Gradle
* user guide available at http://gradle.org/docs/1.12/userguide/tutorial_java_projects.html
*/
// Apply the java plugin to add support for Java
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'application'
// In this section you declare where to find the dependencies of your project
repositories {
// Use 'maven central' for resolving your dependencies.
// You can declare any Maven/Ivy/file repository here.
mavenCentral()
}
mainClassName = 'com.github.ubiquitousspice.bloodstains.server.Main'
configurations {
capsule
}
// In this section you declare the dependencies for your production and test code
dependencies {
compile group: 'com.google.guava', name: 'guava', version: '17.0'
compile 'org.eclipse.jetty:jetty-server:9.2.0.M1'
compile 'org.eclipse.jetty:jetty-servlet:9.2.0.M1'
compile 'com.sun.jersey:jersey-servlet:1.13'
compile 'org.projectlombok:lombok:1.12.6'
compile 'com.google.code.gson:gson:2.2.4'
capsule "co.paralleluniverse:capsule:0.3.1"
}
task capsule(type: Jar, dependsOn: jar) {
archiveName = "bloodstains-server.jar"
from jar // embed our application jar
from { configurations.runtime } // embed dependencies
from(configurations.capsule.collect { zipTree(it) }) { include 'Capsule.class' } // we just need the single Capsule class
manifest {
attributes(
'Main-Class': 'Capsule',
'Application-Class': mainClassName,
)
}
}