| author | ymh <ymh.work@gmail.com> |
| Sun, 14 Jul 2024 22:00:08 +0200 | |
| changeset 666 | 9d6550026232 |
| parent 582 | bbe6a9f2bf0e |
| permissions | -rw-r--r-- |
| 311 | 1 |
buildscript { |
2 |
repositories { |
|
3 |
jcenter() |
|
4 |
} |
|
5 |
dependencies { |
|
|
582
bbe6a9f2bf0e
java upgrade gretty plugin to correct problem with spring loaded version and new java 1.8.0_xx version (xx >= 40)
ymh <ymh.work@gmail.com>
parents:
581
diff
changeset
|
6 |
classpath 'org.akhikhl.gretty:gretty:1.2.4' |
| 311 | 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' |
|
|
457
b38cf3d4cf1f
add mongodb migration to java model
ymh <ymh.work@gmail.com>
parents:
317
diff
changeset
|
45 |
mongeez_version = '0.9.4' |
| 311 | 46 |
} |
47 |
||
48 |
||
49 |
dependencies { |
|
50 |
compile project(':renkan-core') |
|
51 |
compile group: 'javax.inject', name: 'javax.inject', version:java_inject_version |
|
52 |
compile group: 'javax.servlet', name: 'javax.servlet-api', version:javax_servlet_version |
|
53 |
compile group: 'javax.ws.rs', name: 'javax.ws.rs-api', version:javax_ws_rs_api_version |
|
54 |
compile group: 'javax.annotation', name: 'javax.annotation-api', version:javax_annotation_api_version |
|
55 |
compile(group: 'org.cometd.java', name: 'bayeux-api', version:cometd_version) { |
|
56 |
exclude group: 'org.eclipse.jetty' |
|
57 |
} |
|
58 |
compile(group: 'org.cometd.java', name: 'cometd-java-common', version:cometd_version) { |
|
59 |
exclude group: 'org.eclipse.jetty' |
|
60 |
} |
|
61 |
compile(group: 'org.cometd.java', name: 'cometd-java-annotations', version:cometd_version) { |
|
62 |
exclude group: 'org.eclipse.jetty' |
|
63 |
} |
|
64 |
compile(group: 'org.cometd.java', name: 'cometd-websocket-jetty', version:cometd_version) { |
|
65 |
exclude group: 'org.eclipse.jetty' |
|
66 |
} |
|
67 |
compile (group: 'org.opencoweb', name: 'coweb-bots', version:coweb_version) { |
|
68 |
exclude group: 'org.eclipse.jetty' |
|
69 |
} |
|
70 |
compile (group: 'org.opencoweb', name: 'coweb-server', version:coweb_version) { |
|
71 |
exclude group: 'org.eclipse.jetty' |
|
72 |
} |
|
73 |
providedCompile (group: 'org.opencoweb', name: 'coweb-javascript', version:coweb_version) { |
|
74 |
exclude group: 'org.eclipse.jetty' |
|
75 |
} |
|
76 |
providedCompile group: 'org.opencoweb.cowebx', name: 'cowebx-widgets-dojo', version:cowebx_version |
|
77 |
compile group: 'org.glassfish.jersey.core', name: 'jersey-server', version:jersey_version |
|
78 |
compile group: 'org.glassfish.jersey.ext', name: 'jersey-spring3', version:jersey_version |
|
79 |
compile group: 'org.mongodb', name: 'mongo-java-driver', version:mongo_java_driver_version |
|
80 |
compile group: 'org.springframework', name: 'spring-core', version:spring_version |
|
81 |
compile group: 'org.springframework', name: 'spring-context', version:spring_version |
|
82 |
compile group: 'org.springframework', name: 'spring-web', version:spring_version |
|
83 |
compile group: 'org.springframework', name: 'spring-webmvc', version:spring_version |
|
84 |
compile group: 'org.springframework.data', name: 'spring-data-commons', version:spring_data_commons_version |
|
85 |
compile group: 'org.springframework.data', name: 'spring-data-jpa', version:spring_data_jpa_version |
|
86 |
compile group: 'org.springframework.data', name: 'spring-data-mongodb', version:spring_data_mongodb_version |
|
87 |
compile group: 'javax.persistence', name: 'persistence-api', version:persistence_api_version |
|
88 |
compile group: 'org.thymeleaf', name: 'thymeleaf', version:thymeleaf_version |
|
89 |
compile group: 'org.thymeleaf', name: 'thymeleaf-spring3', version:thymeleaf_version |
|
90 |
compile group: 'org.thymeleaf.extras', name: 'thymeleaf-extras-springsecurity3', version:thymeleaf_extra_version |
|
91 |
compile group: 'org.thymeleaf.extras', name: 'thymeleaf-joda-dialect', version:thymeleaf_joda_dialect_version |
|
92 |
compile group: 'net.sourceforge.nekohtml', name: 'nekohtml', version:nekohtml_version |
|
93 |
compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version:jackson_version |
|
94 |
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version:jackson_version |
|
95 |
compile group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version:jackson_version |
|
96 |
compile group: 'com.fasterxml.jackson.jaxrs', name: 'jackson-jaxrs-json-provider', version:jackson_version |
|
97 |
compile group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-joda', version:jackson_version |
|
98 |
compile group: 'commons-codec', name: 'commons-codec', version:commons_codec_version |
|
99 |
compile group: 'org.springframework.security', name: 'spring-security-core', version:spring_security_version |
|
100 |
compile group: 'org.springframework.security', name: 'spring-security-web', version:spring_security_version |
|
101 |
compile group: 'org.springframework.security', name: 'spring-security-config', version:spring_security_version |
|
102 |
compile group: 'org.springframework.security', name: 'spring-security-acl', version:spring_security_version |
|
103 |
compile group: 'org.springframework.security', name: 'spring-security-taglibs', version:spring_security_version |
|
104 |
compile group: 'de.undercouch', name: 'bson4jackson', version:jackson_version |
|
105 |
compile group: 'joda-time', name: 'joda-time', version:joda_time_version |
|
106 |
compile group: 'javax.validation', name: 'validation-api', version:validation_api_version |
|
107 |
compile group: 'org.hibernate', name: 'hibernate-validator', version:hibernate_validator_version |
|
108 |
compile group: 'com.google.guava', name: 'guava', version:guava_version |
|
109 |
runtime group: 'javax.servlet', name: 'jstl', version:jstl_version |
|
110 |
runtime group: 'org.eclipse.jetty.aggregate', name: 'jetty-all', version:jetty_version |
|
|
457
b38cf3d4cf1f
add mongodb migration to java model
ymh <ymh.work@gmail.com>
parents:
317
diff
changeset
|
111 |
runtime group: 'org.mongeez', name: 'mongeez', version:mongeez_version |
| 311 | 112 |
testCompile group: 'org.glassfish.jersey.test-framework.providers', name: 'jersey-test-framework-provider-grizzly2', version:jersey_version |
113 |
testCompile group: 'org.springframework', name: 'spring-test', version:spring_version |
|
114 |
testCompile group: 'com.jayway.jsonpath', name: 'json-path-assert', version:json_path_assert_version |
|
115 |
testCompile group: 'commons-io', name: 'commons-io', version:commons_io_version |
|
116 |
} |
|
117 |
||
|
574
de0d488a0a1b
add call to grunt to build client before compilation of java server and correct maven spring version problem
ymh <ymh.work@gmail.com>
parents:
457
diff
changeset
|
118 |
// call grunt |
|
de0d488a0a1b
add call to grunt to build client before compilation of java server and correct maven spring version problem
ymh <ymh.work@gmail.com>
parents:
457
diff
changeset
|
119 |
task buildClient(type:Exec) { |
|
de0d488a0a1b
add call to grunt to build client before compilation of java server and correct maven spring version problem
ymh <ymh.work@gmail.com>
parents:
457
diff
changeset
|
120 |
workingDir "../../../client" |
|
de0d488a0a1b
add call to grunt to build client before compilation of java server and correct maven spring version problem
ymh <ymh.work@gmail.com>
parents:
457
diff
changeset
|
121 |
commandLine "node_modules/.bin/grunt" |
|
de0d488a0a1b
add call to grunt to build client before compilation of java server and correct maven spring version problem
ymh <ymh.work@gmail.com>
parents:
457
diff
changeset
|
122 |
} |
| 311 | 123 |
//apply overlay |
124 |
||
125 |
war { |
|
126 |
manifest { attributes( |
|
127 |
"Implementation-Vendor": organization, |
|
128 |
"Implementation-Title": project.name, |
|
129 |
"Implementation-Version": project.version, |
|
130 |
"Implementation-Vendor-Id": project.group, |
|
131 |
"Built-By": "$System.env.USER", |
|
|
581
bf1211a84c4c
small correction for building with gradle 2.7
ymh <ymh.work@gmail.com>
parents:
574
diff
changeset
|
132 |
"Build-Jdk": System.getProperty('java.version'), |
| 311 | 133 |
"Specification-Vendor": organization, |
134 |
"Specification-Title": project.name, |
|
135 |
"Specification-Version": project.version |
|
136 |
) } |
|
137 |
||
138 |
// coweb-javascript |
|
139 |
from({ zipTree(configurations.providedCompile.filter{ it.name.startsWith('coweb-javascript') && it.name.endsWith(".war")}.singleFile)}) { |
|
140 |
exclude "META-INF/**" |
|
141 |
exclude "WEB-INF/**" |
|
142 |
into "lib" |
|
143 |
} |
|
144 |
||
145 |
from( {zipTree(configurations.providedCompile.filter{ it.name.startsWith('cowebx-widgets-dojo') && it.name.endsWith(".war")}.singleFile)}) { |
|
146 |
exclude "META-INF/**" |
|
147 |
exclude "WEB-INF/**" |
|
148 |
into "lib/cowebx/dojo" |
|
149 |
} |
|
150 |
||
| 317 | 151 |
from("../../../client/dist/js") { |
| 311 | 152 |
include "*.js" |
153 |
into "static/js" |
|
154 |
} |
|
| 317 | 155 |
from("../../../client/dist/lib") { |
| 311 | 156 |
into "static/lib" |
157 |
} |
|
| 317 | 158 |
from("../../../client/dist/css") { |
| 311 | 159 |
include "*.css" |
160 |
into "static/css" |
|
161 |
} |
|
| 317 | 162 |
from("../../../client/dist/img") { |
| 311 | 163 |
into "static/img" |
164 |
} |
|
| 317 | 165 |
from("../../../client/dist/data") { |
| 311 | 166 |
include "properties.json" |
167 |
into "static/data" |
|
168 |
} |
|
169 |
} |
|
|
574
de0d488a0a1b
add call to grunt to build client before compilation of java server and correct maven spring version problem
ymh <ymh.work@gmail.com>
parents:
457
diff
changeset
|
170 |
|
|
de0d488a0a1b
add call to grunt to build client before compilation of java server and correct maven spring version problem
ymh <ymh.work@gmail.com>
parents:
457
diff
changeset
|
171 |
war.dependsOn buildClient |