-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
55 lines (41 loc) · 1.42 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
plugins {
id 'war'
id 'io.openliberty.tools.gradle.Liberty' version '3.8'
}
version '1.0-SNAPSHOT'
group 'com.ibm.ce'
sourceCompatibility = 8
targetCompatibility = 8
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
task copyMQToLibertyLib() {
doLast {
copy {
from configurations.runtimeClasspath
into "$buildDir/wlp/usr/shared/resources"
include "wmq*"
}
}
}
repositories {
mavenCentral()
}
dependencies {
// https://github.com/OpenLiberty/ci.gradle/blob/main/docs/installLiberty.md#using-maven-artifact
libertyRuntime group: 'com.ibm.websphere.appserver.runtime', name: 'wlp-webProfile8', version: '24.0.0.3'
// provided dependencies
providedCompile 'jakarta.platform:jakarta.jakartaee-api:8.0.0'
providedCompile 'org.eclipse.microprofile:microprofile:4.1'
providedCompile 'org.eclipse.microprofile.reactive.messaging:microprofile-reactive-messaging-api:1.0'
providedCompile 'javax.jws:javax.jws-api:1.1'
providedCompile 'javax.xml.bind:jaxb-api:2.2.4'
providedCompile 'com.ibm.mq:wmq.jmsra:9.3.5.0'
implementation 'org.apache.kafka:kafka-clients:3.7.0'
implementation 'org.slf4j:slf4j-simple:1.7.36'
testImplementation 'com.ibm.mq:com.ibm.mq.allclient:9.3.5.0'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.2'
}
clean.dependsOn 'libertyStop'
libertyDev.dependsOn 'copyMQToLibertyLib'
defaultTasks 'build', 'copyMQToLibertyLib'