-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
68 lines (55 loc) · 1.83 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
plugins {
id 'java-library'
id 'maven-publish'
id "com.github.johnrengelman.shadow" version "7.1.2"
}
group 'com.agoramp'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
// lombok
compileOnly 'org.projectlombok:lombok:1.18.26'
annotationProcessor 'org.projectlombok:lombok:1.18.26'
// https://mvnrepository.com/artifact/com.google.code.gson/gson
shadow 'com.google.code.gson:gson:2.10.1'
// Project reactor
implementation platform('io.projectreactor:reactor-bom:2022.0.4')
shadow platform('io.projectreactor:reactor-bom:2022.0.4')
// https://mvnrepository.com/artifact/io.projectreactor/reactor-core
shadow 'io.projectreactor:reactor-core'
testImplementation 'io.projectreactor:reactor-core'
// Reactor Netty
shadow 'io.projectreactor.netty:reactor-netty-core'
// Reactor Netty for HTTP
shadow 'io.projectreactor.netty:reactor-netty-http'
// Reactor extras
shadow 'io.projectreactor.addons:reactor-extra:3.5.0'
shadow "com.apollographql.apollo3:apollo-api:3.8.1"
}
test {
useJUnitPlatform()
}
// Configure the shadow plugin
shadowJar {
configurations = [project.configurations.shadow]
archiveClassifier.set('')
relocate 'io.netty', 'com.agoramp.netty'
relocate 'org.reactivestreams', 'com.agoramp.reactive.streams'
relocate 'reactor', 'com.agoramp.reactive'
}
build.dependsOn('shadowJar')
// Added publishing configuration
publishing {
publications {
mavenJava(MavenPublication) {
artifact shadowJar // Publish the shadowJar as artifact
groupId = project.group
artifactId = project.name
version = project.version
}
}
}