forked from NLPchina/Jcoder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
100 lines (71 loc) · 2.67 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
group 'nlpcn.org'
version '2.1.6'
apply plugin: 'java'
apply plugin: 'war'
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
maven {
url "http://maven.aliyun.com/nexus/content/groups/public/"
}
mavenCentral()
}
dependencies {
compile 'org.nutz:nutz:1.r.58'
compile 'org.nlpcn:nlp-lang:1.7.1'
compile 'com.alibaba:fastjson:1.2.20'
compile 'com.h2database:h2:1.3.176'
compile 'com.alibaba:druid:1.0.15'
compile 'org.quartz-scheduler:quartz:2.2.1'
compile 'javax.mail:mail:1.4.1'
compile 'com.google.guava:guava:18.0'
compile 'com.github.javaparser:javaparser-core:2.4.0'
compile 'com.github.axet:kaptcha:0.0.9'
compile 'org.jasypt:jasypt:1.9.2'
//new version use log
compile 'org.slf4j:slf4j-api:1.7.21'
compile 'org.apache.logging.log4j:log4j-slf4j-impl:2.6.2'
compile 'org.apache.logging.log4j:log4j-jcl:2.6.2'
compile 'org.apache.logging.log4j:log4j-api:2.6.2'
compile 'org.apache.logging.log4j:log4j-core:2.6.2'
compile 'org.apache.logging.log4j:log4j-web:2.6.2'
//java serizable
compile 'io.protostuff:protostuff-core:1.4.4'
compile 'io.protostuff:protostuff-runtime:1.4.4'
compile 'org.objenesis:objenesis:2.4'
//javaee support
compile 'javax.servlet:javax.servlet-api:3.1.0'
compile 'javax.servlet:jstl:1.2'
compile 'javax.inject:javax.inject:1'
compile 'javax:javaee-api:7.0'
compile 'io.netty:netty-all:4.1.2.Final'
compile 'org.eclipse.jetty:jetty-servlet:9.2.2.v20140723'
// web server
providedCompile 'org.eclipse.jetty:jetty-webapp:9.2.2.v20140723'
providedCompile 'org.eclipse.jetty:jetty-jsp:9.2.2.v20140723'
providedCompile 'org.eclipse.jetty:jetty-continuation:9.2.2.v20140723'
providedCompile 'org.eclipse.jetty.websocket:websocket-server:9.2.2.v20140723'
providedCompile 'org.eclipse.jetty.websocket:javax-websocket-server-impl:9.2.2.v20140723'
testCompile 'junit:junit:4.12'
war{
def configFile = file('src/main/resources/jcoder.properties') ;
configFile.write("version="+version+"_"+new Date().format('yyyyMMddHHmm'));
def schemaJarFile = project.configurations.providedCompile
schemaJarFile.each{source ->
from zipTree(source)
exclude("**/*.SF")
}
from('build/classes/main/Bootstrap.class')
manifest {
attributes 'Implementation-Title': 'Jcoder Webserver', 'Implementation-Version': version, 'Main-Class':'Bootstrap'
}
classpath = classpath - sourceSets.main.output
from (jar) {
into 'WEB-INF/lib'
}
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
}