|
311
|
1 |
buildscript { |
|
|
2 |
repositories { |
|
|
3 |
jcenter() |
|
|
4 |
} |
|
|
5 |
dependencies { |
|
|
6 |
classpath 'org.akhikhl.gretty:gretty:1.0.0' |
|
|
7 |
} |
|
|
8 |
} |
|
|
9 |
|
|
|
10 |
repositories { |
|
|
11 |
maven { url "lib" } |
|
|
12 |
jcenter() |
|
|
13 |
} |
|
|
14 |
|
|
|
15 |
apply plugin: 'war' |
|
|
16 |
apply plugin: 'org.akhikhl.gretty' |
|
|
17 |
|
|
|
18 |
description = '' |
|
|
19 |
|
|
|
20 |
gretty { |
|
|
21 |
servletContainer = 'jetty8' |
|
|
22 |
host = '0.0.0.0' |
|
|
23 |
port = 8080 |
|
|
24 |
contextPath = '/renkan' |
|
|
25 |
} |
|
|
26 |
|
|
|
27 |
|
|
|
28 |
ext { |
|
|
29 |
javax_ws_rs_api_version = '2.0' |
|
|
30 |
javax_annotation_api_version = '1.2' |
|
|
31 |
cometd_version = '2.7.0' |
|
|
32 |
coweb_version = '1.0.1-SNAPSHOT' |
|
|
33 |
cowebx_version = '1.0' |
|
|
34 |
jersey_version = '2.5.1' |
|
|
35 |
thymeleaf_version = '2.1.3.RELEASE' |
|
|
36 |
thymeleaf_extra_version = '2.1.1.RELEASE' |
|
|
37 |
thymeleaf_joda_dialect_version = '0.0.3' |
|
|
38 |
commons_io_version = '2.4' |
|
|
39 |
guava_version = '17.0' |
|
|
40 |
nekohtml_version = '1.9.19' |
|
|
41 |
validation_api_version = '1.1.0.Final' |
|
|
42 |
hibernate_validator_version = '5.0.1.Final' |
|
|
43 |
jstl_version = '1.2' |
|
|
44 |
json_path_assert_version = '0.9.1' |
|
|
45 |
} |
|
|
46 |
|
|
|
47 |
|
|
|
48 |
dependencies { |
|
|
49 |
compile project(':renkan-core') |
|
|
50 |
compile group: 'javax.inject', name: 'javax.inject', version:java_inject_version |
|
|
51 |
compile group: 'javax.servlet', name: 'javax.servlet-api', version:javax_servlet_version |
|
|
52 |
compile group: 'javax.ws.rs', name: 'javax.ws.rs-api', version:javax_ws_rs_api_version |
|
|
53 |
compile group: 'javax.annotation', name: 'javax.annotation-api', version:javax_annotation_api_version |
|
|
54 |
compile(group: 'org.cometd.java', name: 'bayeux-api', version:cometd_version) { |
|
|
55 |
exclude group: 'org.eclipse.jetty' |
|
|
56 |
} |
|
|
57 |
compile(group: 'org.cometd.java', name: 'cometd-java-common', version:cometd_version) { |
|
|
58 |
exclude group: 'org.eclipse.jetty' |
|
|
59 |
} |
|
|
60 |
compile(group: 'org.cometd.java', name: 'cometd-java-annotations', version:cometd_version) { |
|
|
61 |
exclude group: 'org.eclipse.jetty' |
|
|
62 |
} |
|
|
63 |
compile(group: 'org.cometd.java', name: 'cometd-websocket-jetty', version:cometd_version) { |
|
|
64 |
exclude group: 'org.eclipse.jetty' |
|
|
65 |
} |
|
|
66 |
compile (group: 'org.opencoweb', name: 'coweb-bots', version:coweb_version) { |
|
|
67 |
exclude group: 'org.eclipse.jetty' |
|
|
68 |
} |
|
|
69 |
compile (group: 'org.opencoweb', name: 'coweb-server', version:coweb_version) { |
|
|
70 |
exclude group: 'org.eclipse.jetty' |
|
|
71 |
} |
|
|
72 |
providedCompile (group: 'org.opencoweb', name: 'coweb-javascript', version:coweb_version) { |
|
|
73 |
exclude group: 'org.eclipse.jetty' |
|
|
74 |
} |
|
|
75 |
providedCompile group: 'org.opencoweb.cowebx', name: 'cowebx-widgets-dojo', version:cowebx_version |
|
|
76 |
compile group: 'org.glassfish.jersey.core', name: 'jersey-server', version:jersey_version |
|
|
77 |
compile group: 'org.glassfish.jersey.ext', name: 'jersey-spring3', version:jersey_version |
|
|
78 |
compile group: 'org.mongodb', name: 'mongo-java-driver', version:mongo_java_driver_version |
|
|
79 |
compile group: 'org.springframework', name: 'spring-core', version:spring_version |
|
|
80 |
compile group: 'org.springframework', name: 'spring-context', version:spring_version |
|
|
81 |
compile group: 'org.springframework', name: 'spring-web', version:spring_version |
|
|
82 |
compile group: 'org.springframework', name: 'spring-webmvc', version:spring_version |
|
|
83 |
compile group: 'org.springframework.data', name: 'spring-data-commons', version:spring_data_commons_version |
|
|
84 |
compile group: 'org.springframework.data', name: 'spring-data-jpa', version:spring_data_jpa_version |
|
|
85 |
compile group: 'org.springframework.data', name: 'spring-data-mongodb', version:spring_data_mongodb_version |
|
|
86 |
compile group: 'javax.persistence', name: 'persistence-api', version:persistence_api_version |
|
|
87 |
compile group: 'org.thymeleaf', name: 'thymeleaf', version:thymeleaf_version |
|
|
88 |
compile group: 'org.thymeleaf', name: 'thymeleaf-spring3', version:thymeleaf_version |
|
|
89 |
compile group: 'org.thymeleaf.extras', name: 'thymeleaf-extras-springsecurity3', version:thymeleaf_extra_version |
|
|
90 |
compile group: 'org.thymeleaf.extras', name: 'thymeleaf-joda-dialect', version:thymeleaf_joda_dialect_version |
|
|
91 |
compile group: 'net.sourceforge.nekohtml', name: 'nekohtml', version:nekohtml_version |
|
|
92 |
compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version:jackson_version |
|
|
93 |
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version:jackson_version |
|
|
94 |
compile group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version:jackson_version |
|
|
95 |
compile group: 'com.fasterxml.jackson.jaxrs', name: 'jackson-jaxrs-json-provider', version:jackson_version |
|
|
96 |
compile group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-joda', version:jackson_version |
|
|
97 |
compile group: 'commons-codec', name: 'commons-codec', version:commons_codec_version |
|
|
98 |
compile group: 'org.springframework.security', name: 'spring-security-core', version:spring_security_version |
|
|
99 |
compile group: 'org.springframework.security', name: 'spring-security-web', version:spring_security_version |
|
|
100 |
compile group: 'org.springframework.security', name: 'spring-security-config', version:spring_security_version |
|
|
101 |
compile group: 'org.springframework.security', name: 'spring-security-acl', version:spring_security_version |
|
|
102 |
compile group: 'org.springframework.security', name: 'spring-security-taglibs', version:spring_security_version |
|
|
103 |
compile group: 'de.undercouch', name: 'bson4jackson', version:jackson_version |
|
|
104 |
compile group: 'joda-time', name: 'joda-time', version:joda_time_version |
|
|
105 |
compile group: 'javax.validation', name: 'validation-api', version:validation_api_version |
|
|
106 |
compile group: 'org.hibernate', name: 'hibernate-validator', version:hibernate_validator_version |
|
|
107 |
compile group: 'com.google.guava', name: 'guava', version:guava_version |
|
|
108 |
runtime group: 'javax.servlet', name: 'jstl', version:jstl_version |
|
|
109 |
runtime group: 'org.eclipse.jetty.aggregate', name: 'jetty-all', version:jetty_version |
|
|
110 |
testCompile group: 'org.glassfish.jersey.test-framework.providers', name: 'jersey-test-framework-provider-grizzly2', version:jersey_version |
|
|
111 |
testCompile group: 'org.springframework', name: 'spring-test', version:spring_version |
|
|
112 |
testCompile group: 'com.jayway.jsonpath', name: 'json-path-assert', version:json_path_assert_version |
|
|
113 |
testCompile group: 'commons-io', name: 'commons-io', version:commons_io_version |
|
|
114 |
} |
|
|
115 |
|
|
|
116 |
//apply overlay |
|
|
117 |
|
|
|
118 |
war { |
|
|
119 |
manifest { attributes( |
|
|
120 |
"Implementation-Vendor": organization, |
|
|
121 |
"Implementation-Title": project.name, |
|
|
122 |
"Implementation-Version": project.version, |
|
|
123 |
"Implementation-Vendor-Id": project.group, |
|
|
124 |
"Built-By": "$System.env.USER", |
|
|
125 |
"Build-Jdk": org.gradle.internal.SystemProperties.javaVersion, |
|
|
126 |
"Specification-Vendor": organization, |
|
|
127 |
"Specification-Title": project.name, |
|
|
128 |
"Specification-Version": project.version |
|
|
129 |
) } |
|
|
130 |
|
|
|
131 |
// coweb-javascript |
|
|
132 |
from({ zipTree(configurations.providedCompile.filter{ it.name.startsWith('coweb-javascript') && it.name.endsWith(".war")}.singleFile)}) { |
|
|
133 |
exclude "META-INF/**" |
|
|
134 |
exclude "WEB-INF/**" |
|
|
135 |
into "lib" |
|
|
136 |
} |
|
|
137 |
|
|
|
138 |
from( {zipTree(configurations.providedCompile.filter{ it.name.startsWith('cowebx-widgets-dojo') && it.name.endsWith(".war")}.singleFile)}) { |
|
|
139 |
exclude "META-INF/**" |
|
|
140 |
exclude "WEB-INF/**" |
|
|
141 |
into "lib/cowebx/dojo" |
|
|
142 |
} |
|
|
143 |
|
|
|
144 |
from("../../client/dist/js") { |
|
|
145 |
include "*.js" |
|
|
146 |
into "static/js" |
|
|
147 |
} |
|
|
148 |
from("../../client/dist/lib") { |
|
|
149 |
into "static/lib" |
|
|
150 |
} |
|
|
151 |
from("../../client/dist/css") { |
|
|
152 |
include "*.css" |
|
|
153 |
into "static/css" |
|
|
154 |
} |
|
|
155 |
from("../../client/dist/img") { |
|
|
156 |
into "static/img" |
|
|
157 |
} |
|
|
158 |
from("../../client/dist/data") { |
|
|
159 |
include "properties.json" |
|
|
160 |
into "static/data" |
|
|
161 |
} |
|
|
162 |
} |
|
|
163 |
|