-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle.kts
45 lines (40 loc) · 1.28 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
plugins {
`java-library`
}
repositories {
jcenter()
}
dependencies {
components.all<NettyBomAlignmentRule>()
testImplementation(platform("org.junit:junit-bom:5.11.4"))
testImplementation("org.junit.jupiter:junit-jupiter")
testImplementation("com.codeborne:selenide:7.6.1")
testRuntimeOnly("org.slf4j:slf4j-simple:2.0.16")
constraints {
implementation("com.google.guava:guava:33.4.0-jre") {
because("latest compatible version with all dependencies")
}
}
testImplementation("com.microsoft.playwright:playwright:1.49.0")
testImplementation("com.microsoft.playwright:driver-bundle:1.49.0")
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
tasks.withType<Test>().configureEach {
useJUnitPlatform()
testLogging.showExceptions = true
systemProperties["selenide.headless"] = System.getProperty("selenide.headless")
}
open class NettyBomAlignmentRule: ComponentMetadataRule {
override fun execute(ctx: ComponentMetadataContext) {
ctx.details.run {
if (id.group.startsWith("io.netty")) {
// declare that Netty modules belong to the platform defined by the Netty BOM
belongsTo("io.netty:netty-bom:${id.version}", false)
}
}
}
}