forked from aerogear/keycloak-metrics-spi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
57 lines (46 loc) · 1.86 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
import java.text.SimpleDateFormat
plugins {
id "net.nemerosa.versioning" version "2.8.2"
}
repositories {
jcenter()
}
configurations {
bundleLib
}
group 'org.jboss.aerogear'
apply plugin: 'java'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
ext {
keycloakVersion=project.properties["keycloakVersion"]
prometheusVersion=project.properties["prometheusVersion"]
}
dependencies {
compile group: 'org.keycloak', name: 'keycloak-server-spi-private', version: keycloakVersion
compile group: 'org.keycloak', name: 'keycloak-server-spi', version: keycloakVersion
compile group: 'org.keycloak', name: 'keycloak-services', version: keycloakVersion
compile 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
configurations.compile.extendsFrom(configurations.bundleLib)
testCompile group: 'junit', name: 'junit', version: '4.12'
}
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}"
)
}
}