-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
47 lines (40 loc) · 1.39 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
plugins {
kotlin("jvm") version "2.0.0"
application
}
group = "de.alexanderwolz"
version = "1.6.0"
val keycloakVersion = "25.0.0"
val keycloakJdkVersion = 21 //Keycloak 25 relies on JDK 21
repositories {
mavenCentral()
}
dependencies {
compileOnly("org.keycloak:keycloak-core:$keycloakVersion")
compileOnly("org.keycloak:keycloak-services:$keycloakVersion")
compileOnly("org.keycloak:keycloak-server-spi:$keycloakVersion")
compileOnly("org.keycloak:keycloak-server-spi-private:$keycloakVersion")
testImplementation("org.jetbrains.kotlin:kotlin-test")
testImplementation("org.mockito.kotlin:mockito-kotlin:5.1.0")
testImplementation("org.keycloak:keycloak-core:$keycloakVersion")
testImplementation("org.keycloak:keycloak-services:$keycloakVersion")
testImplementation("org.keycloak:keycloak-server-spi:$keycloakVersion")
testImplementation("org.keycloak:keycloak-server-spi-private:$keycloakVersion")
}
tasks.test {
useJUnitPlatform()
systemProperty("java.util.logging.config.file", "${projectDir}/src/test/resources/logging.properties")
}
kotlin {
jvmToolchain(keycloakJdkVersion)
}
//create fat jar
//TODO remove and just add org.jetbrains.kotlin:kotlin-stdlib
tasks.jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from(configurations
.runtimeClasspath
.get()
.map { if (it.isDirectory) it else zipTree(it) }
)
}