-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
65 lines (55 loc) · 2.09 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
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'net.wasdev.wlp.gradle.plugins:liberty-gradle-plugin:2.5'
}
}
apply plugin: 'liberty'
apply plugin: 'war'
repositories {
mavenCentral()
}
dependencies {
compile 'org.apache.httpcomponents:httpclient:4.5.6'
compile group: 'org.eclipse.microprofile', name: 'microprofile', version: '1.3'
compile group: 'javax.json', name: 'javax.json-api', version:'1.0'
compile group: 'org.apache.httpcomponents', name: 'httpclient', version:'4.5.6'
compile group: 'org.glassfish', name: 'javax.json', version:'1.0.4'
compile group: 'com.ibm.websphere.appserver.api', name: 'com.ibm.websphere.appserver.api.json', version: '1.0'
providedCompile group: 'javax.servlet', name: 'javax.servlet-api', version:'3.1.0'
providedCompile group: 'org.osgi', name: 'org.osgi.compendium', version:'5.0.0'
providedCompile group: 'org.osgi', name: 'org.osgi.core', version:'6.0.0'
testCompile group: 'junit', name: 'junit', version:'4.12'
testCompile group: 'org.jmock', name: 'jmock-junit4', version:'2.8.4'
testCompile group: 'org.jmock', name: 'jmock-legacy', version:'2.8.4'
libertyRuntime group: 'io.openliberty', name: 'openliberty-runtime', version: '[18.0.0.1,)'
}
war {
archiveName = baseName + '.' + extension
}
ext {
// Liberty server properties
wlpServerName = 'LibertyProjectServer'
testServerHttpPort = 9080
testServerHttpsPort = 9443
// This is set in the ibm-web-ext.xml file
warContext = 'speechScrubber'
}
liberty {
server {
name = "server"
bootstrapProperties = ['default.http.port': testServerHttpPort,
'default.https.port': testServerHttpsPort,
'appLocation': war.archiveName,
'appContext': warContext]
apps = [war]
}
}
task copyKeystore(type: Copy) {
from 'src/main/liberty/config/resources/security/'
into 'build/wlp/usr/servers/server/resources/security'
}
libertyStart.dependsOn(copyKeystore)
clean.dependsOn(libertyStop)