-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-local.gradle
100 lines (87 loc) · 2.76 KB
/
build-local.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
/**
* Copyright 2016 IBM
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
//
// Licensed Materials - Property of IBM
// © Copyright IBM Corp. 2016
//
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'eclipse'
apply plugin: 'war'
group = 'net.wasdev.wlp.sample'
version = '1.0-SNAPSHOT'
description = """Kappa Bluemix API"""
war.archiveName "kappa-bluemix.war"
sourceCompatibility = 1.7
targetCompatibility = 1.7
configurations.all {
}
repositories {
mavenCentral()
// Read from lib/ directory
flatDir {
dirs 'lib'
}
}
dependencies {
compile 'org.apache.geronimo.specs:geronimo-servlet_3.0_spec:1.0'
compile 'org.apache.kafka:kafka-clients:0.10.0.1'
compile 'log4j:log4j:1.2.17'
compile 'org.slf4j:slf4j-log4j12:1.7.19'
compile 'org.slf4j:slf4j-api:1.7.19'
compile 'com.fasterxml.jackson.core:jackson-databind:2.7.2'
compile 'com.fasterxml.jackson.core:jackson-annotations:2.7.2'
compile 'com.fasterxml.jackson.core:jackson-core:2.7.2'
compile 'org.glassfish.jersey.core:jersey-server:2.23.2'
compile 'org.glassfish.jersey.containers:jersey-container-servlet:2.23.2'
compile 'org.json:json:20151123'
compile group: 'javax.websocket', name: 'javax.websocket-api', version: '1.1'
compile group: 'com.joestelmach', name: 'natty', version: '0.12'
}
// move generated war file into the DefaultServer/apps diretory
tasks.withType(Jar) {
destinationDir = file("$projectDir/target/local/defaultServer/apps")
}
war {
from('resources/local'){
into "resources"
}
from('src/main/resources'){
include '*'
into "WEB-INF/lib"
}
from('log4j'){
include '*'
into "WEB-INF/classes"
}
webXml = file("$projectDir/src/main/wlp/web.xml") // copies a file to WEB-INF/web.xml
}
task copyServerXml {
copy {
from "$projectDir/src/main/wlp/local/server.xml"
into "$projectDir/target/local/defaultServer"
}
copy {
from "$projectDir/src/main/wlp/local/server.xml"
into "$projectDir/wlp/servers/defaultServer"
}
}
task copyLocalServerXml {
copy {
from "$projectDir/src/main/wlp/local/server.xml"
into "$projectDir/wlp/usr/servers/defaultServer"
}
}