-
Notifications
You must be signed in to change notification settings - Fork 153
/
build.gradle
66 lines (53 loc) · 2.45 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
import java.text.SimpleDateFormat
plugins {
id "net.nemerosa.versioning" version "3.0.0"
id "java"
}
configurations {
bundleLib
}
group 'org.jboss.aerogear'
version '6.0.1-SNAPSHOT'
java {
sourceCompatibility = JavaVersion.VERSION_17
}
repositories {
mavenCentral()
}
ext {
keycloakVersion=project.properties["keycloakVersion"]
quarkusResteasyVersion=project.properties["quarkusResteasyVersion"]
prometheusVersion=project.properties["prometheusVersion"]
}
dependencies {
implementation group: 'org.keycloak', name: 'keycloak-server-spi-private', version: keycloakVersion
implementation group: 'org.keycloak', name: 'keycloak-server-spi', version: keycloakVersion
implementation group: 'org.keycloak', name: 'keycloak-services', version: keycloakVersion
compileOnly group: 'io.quarkus.resteasy.reactive', name: 'resteasy-reactive', version: quarkusResteasyVersion
bundleLib group: 'io.prometheus', name: 'simpleclient_common', version: prometheusVersion
bundleLib group: 'io.prometheus', name: 'simpleclient_hotspot', version: prometheusVersion
bundleLib group: 'io.prometheus', name: 'simpleclient_pushgateway', version: prometheusVersion
configurations.implementation.extendsFrom(configurations.bundleLib)
testImplementation group: 'junit', name: 'junit', version: '4.13'
testImplementation group: 'uk.org.webcompere', name: 'system-stubs-junit4', version: '2.0.2'
testImplementation group: 'org.mockito', name: 'mockito-core', version: '5.4.0'
// required by 'system-stubs-junit4'
testImplementation group: 'org.mockito', name: 'mockito-inline', version: '5.2.0'
compileOnly 'org.apache.tomcat:tomcat-servlet-api:9.0.37'
}
jar {
from {
configurations.bundleLib.collect { it.isDirectory() ? it : zipTree(it) }
}
manifest {
attributes(
'Built-By' : System.properties['user.name'],
'Build-Timestamp': new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ").format(new Date()),
'Build-Revision' : versioning.info.commit,
'Created-By' : "Gradle ${gradle.gradleVersion}",
'Build-Jdk' : "${System.properties['java.version']} (${System.properties['java.vendor']} ${System.properties['java.vm.version']})",
'Build-OS' : "${System.properties['os.name']} ${System.properties['os.arch']} ${System.properties['os.version']}",
'Version' : "${gradle.rootProject.version}"
)
}
}