-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle
More file actions
68 lines (56 loc) · 1.92 KB
/
Copy pathbuild.gradle
File metadata and controls
68 lines (56 loc) · 1.92 KB
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 'org.springframework.boot' version '3.5.13'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
id 'eclipse'
id 'war'
id 'idea'
}
group = 'com.ibm.cicsdev.springboot'
version = '0.1.0'
// ============================================================================
// Java Configuration
// ============================================================================
java {
toolchain {
languageVersion = JavaLanguageVersion.of(java_version)
}
}
// ============================================================================
// WAR Configuration
// ============================================================================
war {
archiveFileName = "cics-java-liberty-springboot-transactions-app-${version}.war"
}
// Two versions of the WAR would be built, one for embedding into servers like Liberty (plain)
// and a bootWAR which can run standalone and contains all the Tomcat and Spring Boot stuff
// we don't need bootWAR, so disable it.
bootWar { enabled = false }
// If in Eclipse, add Javadoc to the local project classpath
eclipse
{
classpath
{
downloadJavadoc = true
}
}
repositories
{
mavenCentral()
}
dependencies
{
// CICS BOM (as of Sept 2024)
compileOnly enforcedPlatform('com.ibm.cics:com.ibm.cics.ts.bom:6.1-20250812133513-PH63856')
// Don't include JCICS in the final build (no need for version because we have BOM)
compileOnly("com.ibm.cics:com.ibm.cics.server")
// Spring Boot web support
implementation ("org.springframework.boot:spring-boot-starter-web")
// Don't include TomCat in the runtime build
providedRuntime("org.springframework.boot:spring-boot-starter-tomcat")
// Java Transaction API - don't include in the final build
compileOnly 'jakarta.transaction:jakarta.transaction-api'
// Spring's Transactional API
implementation ("org.springframework:spring-tx")
}