This repository has been archived by the owner on Apr 18, 2024. It is now read-only.
forked from aerogear/keycloak-metrics-spi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
64 lines (50 loc) · 2.18 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
import java.text.SimpleDateFormat
plugins {
id "net.nemerosa.versioning" version "2.8.2"
}
repositories {
jcenter()
}
configurations {
bundleLib
}
group 'org.jboss.aerogear'
version '2.5.4-SNAPSHOT'
apply plugin: 'java'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
ext {
keycloakVersion=project.properties["keycloakVersion"]
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
implementation group: 'org.jboss.spec.javax.ws.rs', name: 'jboss-jaxrs-api_2.0_spec', version: '1.0.0.Final'
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.12'
testImplementation group: 'com.github.stefanbirkner', name: 'system-rules', version: '1.19.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}"
)
}
}