-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
135 lines (114 loc) · 3.6 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
plugins {
// Gradle Shadow plugin
id 'com.github.johnrengelman.shadow' version '8.1.1'
id 'java'
id 'application'
}
group 'engtelecom'
version '1.0'
repositories {
mavenCentral()
}
application{
mainClass = 'util.App'
}
dependencies {
// https://mvnrepository.com/artifact/com.rabbitmq/amqp-client
implementation 'com.rabbitmq:amqp-client:5.23.0'
// https://mvnrepository.com/artifact/org.slf4j/slf4j-api
implementation 'org.slf4j:slf4j-api:2.0.16'
// https://mvnrepository.com/artifact/org.slf4j/slf4j-simple
implementation 'org.slf4j:slf4j-simple:2.0.16'
// Use JUnit Jupiter for testing.
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.1'
// This dependency is used by the application.
implementation 'com.google.guava:guava:31.1-jre'
}
tasks.register('ex01Consumidor', JavaExec) {
group = "Execution"
description = "Exemplo 01 - Hello world"
classpath = sourceSets.main.runtimeClasspath
mainClass = "ex01.hello.Consumidor"
standardInput = System.in
}
tasks.register('ex01Produtor', JavaExec) {
group = "Execution"
description = "Exemplo 01 - Hello world"
classpath = sourceSets.main.runtimeClasspath
mainClass = "ex01.hello.Produtor"
standardInput = System.in
}
tasks.register('ex02Tarefa', JavaExec) {
group = "Execution"
description = "Exemplo 02 - Workers"
classpath = sourceSets.main.runtimeClasspath
mainClass = "ex02.workers.Tarefa"
standardInput = System.in
}
tasks.register('ex02Trabalhador', JavaExec) {
group = "Execution"
description = "Exemplo 02 - Workers"
classpath = sourceSets.main.runtimeClasspath
mainClass = "ex02.workers.Trabalhador"
standardInput = System.in
}
tasks.register('ex03Produtor', JavaExec) {
group = "Execution"
description = "Exemplo 03 - Pub/Sub"
classpath = sourceSets.main.runtimeClasspath
mainClass = "ex03.pubsub.ProdutorLog"
standardInput = System.in
}
tasks.register('ex03Receptor', JavaExec) {
group = "Execution"
description = "Exemplo 03 - Pub/Sub"
classpath = sourceSets.main.runtimeClasspath
mainClass = "ex03.pubsub.ReceptorLogs"
standardInput = System.in
}
tasks.register('ex04Emissor', JavaExec) {
group = "Execution"
description = "Exemplo 04 - Routing"
classpath = sourceSets.main.runtimeClasspath
mainClass = "ex04.routing.EmitLogDirect"
standardInput = System.in
}
tasks.register('ex04Receptor', JavaExec) {
group = "Execution"
description = "Exemplo 04 - Routing"
classpath = sourceSets.main.runtimeClasspath
mainClass = "ex04.routing.ReceiveLogsDirect"
standardInput = System.in
}
tasks.register('ex05Emissor', JavaExec) {
group = "Execution"
description = "Exemplo 05 - Topics"
classpath = sourceSets.main.runtimeClasspath
mainClass = "ex05.topics.EmitLogTopic"
standardInput = System.in
}
tasks.register('ex05Receptor', JavaExec) {
group = "Execution"
description = "Exemplo 05 - Topics"
classpath = sourceSets.main.runtimeClasspath
mainClass = "ex05.topics.ReceiveLogsTopic"
standardInput = System.in
}
tasks.register('ex06Servidor', JavaExec) {
group = "Execution"
description = "Exemplo 06 - RPC"
classpath = sourceSets.main.runtimeClasspath
mainClass = "ex06.rpc.RPCServer"
standardInput = System.in
}
tasks.register('ex06Cliente', JavaExec) {
group = "Execution"
description = "Exemplo 06 - RPC"
classpath = sourceSets.main.runtimeClasspath
mainClass = "ex06.rpc.RPCClient"
standardInput = System.in
}
tasks.named('test') {
// Use JUnit Platform for unit tests.
useJUnitPlatform()
}