11plugins
22{
3- id ' org.springframework.boot' version ' 2.7.0 '
3+ id ' org.springframework.boot' version ' 3.5.13 '
44 id ' io.spring.dependency-management' version ' 1.0.11.RELEASE'
55 id ' java'
66 id ' eclipse'
77 id ' idea'
88 id ' war'
9- id ' maven-publish'
109}
1110
1211group = ' com.ibm.cicsdev.springboot'
1312archivesBaseName= ' cics-java-liberty-springboot-link'
1413version = ' 0.1.0'
1514
15+ // ============================================================================
16+ // Java Configuration
17+ // ============================================================================
18+ java {
19+ sourceCompatibility = JavaVersion . toVersion(java_version)
20+ targetCompatibility = JavaVersion . toVersion(java_version)
21+ }
22+
1623// If in Eclipse, add Javadoc to the local project classpath
17- eclipse
24+ eclipse
1825{
19- classpath
26+ classpath
2027 {
2128 downloadJavadoc = true
2229 }
@@ -27,22 +34,22 @@ repositories
2734 mavenCentral()
2835}
2936
30- dependencies
37+ dependencies
3138{
3239 // Spring Boot web starter dependency
3340 implementation(" org.springframework.boot:spring-boot-starter-web" )
3441
35- // Validation anotation support, for validating Web input forms
36- implementation(" javax .validation:validation-api" );
42+ // Validation anotation support, for validating Web input forms
43+ implementation(" jakarta .validation:jakarta. validation-api" );
3744
3845 // Spring Boot thymeleaf view dependency
3946 implementation(" org.springframework.boot:spring-boot-starter-thymeleaf" )
4047
4148 // Don't include TomCat in the runtime build, but put it in lib-provided so it can run standalone as well as embedded
4249 providedRuntime(" org.springframework.boot:spring-boot-starter-tomcat" )
4350
44- // CICS TS V5.5 Maven BOM
45- def bom = " com.ibm.cics:com.ibm.cics.ts.bom:5.5-20250812140737-PH63855 "
51+ // CICS TS V6.1 Maven BOM (as of Sept 2024)
52+ def bom = " com.ibm.cics:com.ibm.cics.ts.bom:6.1-20250812133513-PH63856 "
4653
4754 compileOnly enforcedPlatform(bom)
4855 annotationProcessor enforcedPlatform(bom)
@@ -56,31 +63,3 @@ dependencies
5663 // Add tiles-el dependency if using JSF, see READ for more details
5764 implementation (" org.apache.tiles:tiles-el:3.0.8" )
5865}
59-
60-
61- publishing {
62- publications {
63- // Publication for JCICS
64- maven(MavenPublication ) {
65- groupId " ${ group} "
66- version " ${ version} "
67- artifactId " ${ archivesBaseName} "
68- artifact bootWar
69- }
70- }
71-
72- // Configure the Maven repository to publish to somewhere which is configurable
73- // with environment variables from outside gradle.
74- //
75- // For example:
76- // gradle build publish \
77- // -Ppublish_repo_releases_url="file://my-folder" \
78- // -Ppublish_repo_releases_name="my-maven-repo"
79- //
80- repositories {
81- maven {
82- url = " ${ publish_repo_releases_url} /${ publish_repo_releases_name} "
83- }
84- }
85-
86- }
0 commit comments