-
Notifications
You must be signed in to change notification settings - Fork 91
/
build.gradle.kts
63 lines (51 loc) · 1.52 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
52
53
54
55
56
57
58
59
60
61
62
63
plugins {
java
}
group = "com.github.leroyguillaume"
version = "1.6.0"
repositories {
mavenCentral()
}
configurations {
testImplementation.get().apply {
extendsFrom(configurations.compileOnly.get())
}
}
dependencies {
val bcryptVersion = "0.10.2"
val jbossLoggingVersion = "3.4.1.Final"
val keycloakVersion = project.property("dependency.keycloak.version")
val junitVersion = "5.8.2"
// BCrypt
implementation("at.favre.lib:bcrypt:$bcryptVersion")
// JBoss
compileOnly("org.jboss.logging:jboss-logging:$jbossLoggingVersion")
// Keycloak
compileOnly("org.keycloak:keycloak-common:$keycloakVersion")
compileOnly("org.keycloak:keycloak-core:$keycloakVersion")
compileOnly("org.keycloak:keycloak-server-spi:$keycloakVersion")
compileOnly("org.keycloak:keycloak-server-spi-private:$keycloakVersion")
// JUnit
testImplementation("org.junit.jupiter:junit-jupiter-api:$junitVersion")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$junitVersion")
}
tasks {
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
jar {
from(configurations.runtimeClasspath.get().map { if (it.isDirectory) it else zipTree(it) }) {
exclude("META-INF/MANIFEST.MF")
exclude("META-INF/*.SF")
exclude("META-INF/*.DSA")
exclude("META-INF/*.RSA")
}
}
wrapper {
gradleVersion = "7.6"
}
test {
useJUnitPlatform()
}
}