forked from SolaceSamples/solace-samples-amqp-qpid-jms1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
116 lines (87 loc) · 3 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'application'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
// Don't need these task, so disabling them. Makes it possible to avoid
// declaring a single application main class.
startScripts.enabled = false
run.enabled = false
// Also don't need the regular application distribution packages since
// this is just a set of samples. So disabling to make the build output
// cleaner
distTar.enabled=false
distZip.enabled=false
version = '1.0.0'
def programName = 'jms-sample-alibaba-nlp'
applicationName = 'jms-sample-alibaba-nlp'
sourceCompatibility = 1.8
targetCompatibility = 1.8
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:2.1.6.RELEASE")
}
}
dependencies {
// Java Messaging Service
compile group: 'javax.jms', name: 'javax.jms-api', version: '2.0.1'
// JMS Provider's:
// Apache Qpid JMS Client (connect to any AMQP1.0 supporting broker)
compile group: 'org.apache.qpid', name: 'qpid-jms-client', version: '0.44.0'
// Alternative Provider: ActiveMQ JMS Client
//compile group: 'org.apache.activemq', name: 'activemq-client', version: '5.15.9'
// Alternative Provider: Solace PubSub+ JMS Client
//compile group: 'com.solacesystems', name: 'sol-jms', version: '10.6.3'
// Alternative Provider: RabbitMQ JMS Client
//compile group: 'com.rabbitmq.jms', name: 'rabbitmq-jms', version: '1.12.0'
// Arguments parser
compile group: 'net.sourceforge.argparse4j', name: 'argparse4j', version: '0.8.1'
// The log4j 2 SLF4J binding jar:
// Ref: https://www.slf4j.org/manual.html
compile group: 'org.apache.logging.log4j', name: 'log4j-slf4j-impl', version: '2.12.0'
// log4j 2 "log4j-core" jar:
compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.12.0'
// Alibaba/Aliyun Java SDK for Machine Translation
compile group: 'com.aliyun', name: 'aliyun-java-sdk-alimt', version: '1.0.3'
// Alibaba/Aliyun Java SDK Core
compile group: 'com.aliyun', name: 'aliyun-java-sdk-core', version: '3.5.0'
// Process Alibaba/Aliyun SDK Response
compile group: 'com.alibaba', name: 'fastjson', version: '1.2.59'
}
sourceSets {
main {
resources {
srcDir 'src/main/java'
}
resources {
srcDir 'resources'
}
}
}
repositories {
mavenCentral()
}
task bootJarReplier (type: org.springframework.boot.gradle.tasks.bundling.BootJar){
mainClassName = 'com.itsJamilAhmed.samples.alibaba.nlp.TranslationReplier'
baseName = 'AlibabaNLPReplier'
version = ''
with bootJar
copy {
from bootJarReplier
into "."
}
}
bootJar {
mainClassName = 'com.itsJamilAhmed.samples.alibaba.nlp.TranslationRequestor'
baseName = 'AlibabaNLPRequestor'
version = ''
copy {
from bootJar
into "."
}
}
bootJar.dependsOn bootJarReplier