-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
51 lines (40 loc) · 1.15 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
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
group 'it.nicolagiacchetta.dropwizard'
version = dateText();
sourceCompatibility = 1.8
targetCompatibility = 1.8
buildscript {
repositories {
mavenCentral()
}
}
repositories {
mavenCentral()
}
dependencies {
compile 'io.dropwizard:dropwizard-core:1.1.1'
compile 'io.micrometer:micrometer-registry-prometheus:latest.release'
compile group: "org.slf4j", name: "slf4j-api", version: "$versionOrgSlf4j"
compile group: "org.slf4j", name: "slf4j-log4j12", version: "$versionOrgSlf4j"
testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile group: 'org.mockito', name: 'mockito-core', version: '2.8.9'
}
task publish(type: Copy) {
from(libsDir)
into("./")
}
jar {
from sourceSets.main.allSource
manifest {
attributes('Implementation-Title': project.name,
'Implementation-Version': project.version)
}
archiveName = project.version + '+micrometer-dropwizard-bundle.jar'
}
def dateText() {
def date = new Date()
def formattedDate = date.format('yyyyMMdd.HHmmss')
return formattedDate
}