-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathbuild.gradle
119 lines (99 loc) · 3.38 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
plugins {
id "java-library"
id "maven-publish"
id "signing"
}
ext {
reactorVersion = "3.7.0"
}
subprojects {
apply plugin: "java"
apply plugin: "maven-publish"
apply plugin: "signing"
version = "0.7.7"
group = "io.github.pellse"
repositories {
mavenCentral()
}
java {
withJavadocJar()
withSourcesJar()
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
dependencies {
implementation("io.projectreactor:reactor-core:${reactorVersion}")
testImplementation("org.jspecify:jspecify:1.0.0")
testImplementation("io.projectreactor:reactor-test:${reactorVersion}")
testImplementation("io.projectreactor.tools:blockhound:1.0.8.RELEASE")
testImplementation("org.junit.jupiter:junit-jupiter:5.8.1")
testImplementation("org.hamcrest:hamcrest-library:1.3")
}
tasks.withType(JavaExec).configureEach {
if (JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_13)) {
jvmArgs += [
"-XX:+AllowRedefinitionToAddDeleteMethods"
]
}
}
tasks.withType(Test).configureEach {
if (JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_13)) {
jvmArgs += [
"-XX:+AllowRedefinitionToAddDeleteMethods"
]
}
}
test {
useJUnitPlatform {
testLogging {
events("passed", "skipped", "failed")
}
}
systemProperty 'reactor.schedulers.defaultBoundedElasticOnVirtualThreads', 'true'
systemProperty 'reactor.schedulers.defaultBoundedElasticSize', '1000000'
systemProperty 'reactor.schedulers.defaultBoundedElasticQueueSize', '1000000'
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
pom {
name = project.name
packaging = "jar"
description = "Small library allowing to efficiently assemble entities from querying/merging external datasources or aggregating microservices"
url = "https://github.com/pellse/assembler"
scm {
connection = "scm:git@github.com:pellse/assembler.git"
developerConnection = "scm:git@github.com:pellse/assembler.git"
url = "https://github.com/pellse/assembler"
}
licenses {
license {
name = "The Apache License, Version 2.0"
url = "http://www.apache.org/licenses/LICENSE-2.0.txt"
}
}
developers {
developer {
name = "Sebastien Pelletier"
}
}
}
}
}
repositories {
maven {
name = "ossrh"
url = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username = findProperty("ossrhUsername")
password = findProperty("ossrhPassword")
}
}
}
}
signing {
sign publishing.publications.mavenJava
}
}