-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
68 lines (56 loc) · 1.66 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
66
67
68
plugins
{
id 'java'
id 'eclipse'
id 'idea'
id 'war'
id 'com.ibm.cics.bundle' version '1.0.6'
}
group = 'com.ibm.cicsdev.restappext'
archivesBaseName='cics-java-liberty-restappext'
version = '0.1.0'
java
{
toolchain
{
languageVersion = JavaLanguageVersion.of(8)
}
}
// If in Eclipse, add Javadoc to the local project classpath
eclipse
{
classpath
{
downloadJavadoc = true
}
}
repositories
{
mavenCentral()
}
dependencies
{
// CICS TS V5.5 Maven BOM (as of 19th May 2020)
compileOnly enforcedPlatform("com.ibm.cics:com.ibm.cics.ts.bom:5.5-20200519131930-PH25409")
// Compile against but don't include JCICS in the final build (no need for version because we have BOM)
compileOnly("com.ibm.cics:com.ibm.cics.server")
compileOnly("com.ibm.cics:com.ibm.cics.server.invocation.annotations")
annotationProcessor("com.ibm.cics:com.ibm.cics.server.invocation:6.1")
// Compile against, but don't include Java EE components in the final build
compileOnly ("javax.ws.rs:javax.ws.rs-api:2.0")
compileOnly ("javax.servlet:javax.servlet-api:3.1.0")
//JAXB required if compiling with Java 11 or later
compileOnly ("javax.xml.bind:jaxb-api:2.3.1")
// Add generated IRG JAR as dependency to be packaged with app
implementation files('lib/cics-java-liberty-restappext-generated.jar')
// Add the files from the war task as CICS bundle parts
cicsBundlePart files(war)
}
// CICS bundle build, specify defaultJVMServer value to match CICS JVMSERVER name
cicsBundle
{
build
{
defaultJVMServer = project.findProperty("jvmserver") ?: "DFHWLP"
}
}