-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
51 lines (38 loc) · 1.29 KB
/
build.gradle.kts
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
import com.exactpro.build.jarFile
plugins {
java
}
val vertxVersion by ext("4.5.11")
val reactorVersion by ext("2024.0.1")
val vertxModules: Set<String> =
project.file("vertx.modules").useLines { lines -> lines.filter { it.isNotBlank() }.toSet() }
project.subprojects {
apply(plugin = "java-library")
group = "com.exactpro.vertx"
version = "$vertxVersion-SNAPSHOT"
repositories {
mavenCentral()
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
tasks.withType<JavaCompile>().configureEach {
options.release = 8
}
dependencies {
implementation(platform("io.vertx:vertx-dependencies:$vertxVersion"))
implementation(platform("io.projectreactor:reactor-bom:$reactorVersion"))
constraints {
testImplementation("junit:junit:4.13.1")
}
}
val vertxModuleName: String = name.removeSuffix("-reactor3")
if (vertxModuleName in vertxModules) {
apply(plugin = "com.exactpro.build.reactor3-api")
dependencies {
"codegenImplementation"(platform("io.vertx:vertx-dependencies:$vertxVersion"))
"codegenImplementation"(platform("io.projectreactor:reactor-bom:$reactorVersion"))
}
}
}