This repository was archived by the owner on Mar 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.gradle
47 lines (42 loc) · 1.98 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
apply plugin: 'war'
apply plugin: 'eclipse-wtp'
sourceCompatibility = 1.8
dependencies {
providedCompile group:'javax.websocket', name:'javax.websocket-api', version:'1.1'
providedCompile group:'javax.ws.rs', name:'javax.ws.rs-api', version:'2.0'
providedCompile group:'javax.json', name:'javax.json-api', version:'1.0'
providedCompile group:'javax.servlet', name:'javax.servlet-api', version:'3.1.0'
providedCompile 'javax.annotation:javax.annotation-api:1.2'
providedCompile 'javax.inject:javax.inject:1'
providedCompile 'javax.enterprise:cdi-api:1.2'
providedCompile 'javax.enterprise.concurrent:javax.enterprise.concurrent-api:1.0'
compile 'org.mongodb:mongo-java-driver:2.12.3'
compile group: 'org.eclipse.microprofile', name: 'microprofile', version: '1.3'
compile 'com.github.gameontext:signed:v1.0.3'
// kafka client =)
compile 'org.apache.kafka:kafka-clients:0.9.0.1'
runtime 'org.slf4j:slf4j-jdk14:1.7.13'
}
// Set the Eclipse facets to use 3.1 of the Dynamic Web Module which requires Java 1.7 by default.
// Also include the JAX-RS and javascript
eclipse.wtp.facet {
// Clear default facets to work around bug where you get duplicates including wst 2.4
facets = []
facet name: 'jst.java', type: 'fixed'
facet name: 'jst.web', type: 'fixed'
facet name: 'jst.web', version: '3.1'
facet name: 'jst.java', version: '1.8'
facet name: 'jst.jaxrs', version: '2.0'
facet name: 'wst.jsdt.web', type: 'fixed'
facet name: 'wst.jsdt.web', version: '1.0'
}
// Add additional code conventions
eclipse.jdt.file {
withProperties {
it['org.eclipse.jdt.core.formatter.indentation.size'] = '4'
it['org.eclipse.jdt.core.formatter.tabulation.size'] = '4'
it['org.eclipse.jdt.core.formatter.tabulation.char'] = 'space'
it['org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases'] = 'true'
it['org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch'] = 'true'
}
}