-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
71 lines (58 loc) · 1.57 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
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-jdbc-multi'
version = '0.1.0'
sourceCompatibility = '1.8'
// If in Eclipse, add Javadoc to the local project classpath
eclipse
{
classpath
{
downloadJavadoc = true
}
}
repositories
{
mavenCentral()
}
dependencies
{
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 a well as embedded
providedRuntime("org.springframework.boot:spring-boot-starter-tomcat")
// Spring JDBC Support
implementation("org.springframework.boot:spring-boot-starter-data-jdbc")
}
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}"
}
}
}