-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
55 lines (40 loc) · 1.31 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
group 'info.nukoneko'
version '1.0.3'
apply plugin: 'war'
def javaVersion = 1.8
def defaultEncoding = 'UTF-8'
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
def JerseyVersion = '2.26-b02'
def JettyVersion = '9.4.1.v20170120'
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.11'
compile 'javax:javaee-api:7.0'
compile "org.glassfish.jersey.core:jersey-server:$JerseyVersion"
compile "org.glassfish.jersey.containers:jersey-container-servlet-core:$JerseyVersion"
// compile "org.glassfish.jersey.media:jersey-media-multipart:$JerseyVersion"
compile "org.eclipse.jetty:jetty-server:$JettyVersion"
compile "org.eclipse.jetty:jetty-webapp:$JettyVersion"
compile "org.eclipse.jetty:jetty-jsp-2.1:+"
compile 'com.github.KidsPOSProject:KidsPOS4j:1.0.3'
}
compileJava {
options.encoding = defaultEncoding
}
war {
// 1
from {
configurations.compile.collect {
it.isDirectory() ? it : project.zipTree(it)
}
}
exclude 'META-INF/*.RSA', 'META-INF/*.SF', 'META-INF/*.DSA'
// 2
from fileTree(dir: 'build/classes/main', include: '**/Launcher.class')
// 3
manifest.attributes('Main-Class': 'info.nukoneko.kidspos.Launcher')
}