-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle
82 lines (69 loc) · 1.92 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
plugins
{
id 'org.springframework.boot' version '2.7.0'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
id 'eclipse'
id 'idea'
id 'war'
id 'maven-publish'
}
group = 'com.ibm.cicsdev.springboot'
archivesBaseName='cics-java-liberty-springboot-jcics'
version = '0.1.0'
// If in Eclipse, add Javadoc to the local project classpath
eclipse
{
classpath
{
downloadJavadoc = true
}
}
repositories
{
mavenCentral()
}
java
{
toolchain
{
languageVersion = JavaLanguageVersion.of(java_version)
vendor = JvmVendorSpec.IBM
implementation = JvmImplementation.J9
}
}
dependencies
{
// Spring Boot web starter
implementation("org.springframework.boot:spring-boot-starter-web")
// Don't include Tomcat in the runtime build, but do put it in WEB-INF so it can be run standalone as well as embedded
providedRuntime("org.springframework.boot:spring-boot-starter-tomcat")
// 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")
// Don't include JCICS in the final build (no need for version because we have BOM)
compileOnly("com.ibm.cics:com.ibm.cics.server")
}
publishing {
publications {
// Publication for JCICS
maven(MavenPublication) {
groupId "${group}"
version "${version}"
artifactId "${archivesBaseName}"
artifact bootWar
}
}
// Configure the Maven repository to publish to somewhere which is configurable
// with environment variables from outside gradle.
//
// For example:
// gradle build publish \
// -Ppublish_repo_releases_url="file://my-folder" \
// -Ppublish_repo_releases_name="my-maven-repo"
//
repositories {
maven {
url = "${publish_repo_releases_url}/${publish_repo_releases_name}"
}
}
}