-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
130 lines (106 loc) · 3.58 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
buildscript {
repositories {
mavenCentral()
maven { url 'http://repo.spring.io/plugins-release' }
}
dependencies {
classpath 'org.springframework.build.gradle:propdeps-plugin:0.0.6'
classpath("org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.0.1")
}
}
ext {
springBootVersion = '1.2.3.RELEASE'
}
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'propdeps'
apply plugin: 'jacoco'
apply plugin: 'com.github.kt3k.coveralls'
version = '0.1.1'
jar {
baseName = 'spring-boot-actuator-user-agent-metrics'
version = project.version
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
compile("org.springframework.boot:spring-boot-starter-actuator:${springBootVersion}")
compile("org.springframework.boot:spring-boot-starter-web:${springBootVersion}")
compile("net.sf.uadetector:uadetector-resources:2014.04")
testCompile("org.springframework.boot:spring-boot-starter-test:${springBootVersion}")
optional("org.springframework.boot:spring-boot-configuration-processor:${springBootVersion}")
}
compileJava.dependsOn(processResources)
jacocoTestReport {
reports {
xml.enabled = true // coveralls plugin depends on xml format report
html.enabled = true
}
}
test {
testLogging {
events "failed"
exceptionFormat "full" // show assertion errors in build
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.4'
}
if (System.getenv('CI') != 'true') {
apply plugin: 'signing'
apply plugin: 'maven'
group = 'eu.hinsch'
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from tasks.javadoc.destinationDir
}
task sourcesJar(type: Jar) {
from sourceSets.main.allSource
classifier = 'sources'
}
artifacts {
archives jar
archives javadocJar
archives sourcesJar
}
signing {
sign configurations.archives
}
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: sonatypeUsername, password: sonatypePassword)
}
pom.project {
name 'spring-boot-actuator-user-agent-metrics'
packaging 'jar'
description 'Filter to log user agent statistics as spring boot actuator metrics'
url 'https://github.com/lukashinsch/spring-boot-actuator-user-agent-metrics/'
scm {
url 'scm:[email protected]:lukashinsch/spring-boot-actuator-user-agent-metrics.git'
connection 'scm:[email protected]:lukashinsch/spring-boot-actuator-user-agent-metrics.git'
developerConnection 'scm:[email protected]:lukashinsch/spring-boot-actuator-user-agent-metrics.git'
}
licenses {
license {
name 'MIT License'
url 'http://www.opensource.org/licenses/mit-license.php'
distribution 'repo'
}
}
developers {
developer {
id 'lukashinsch'
name 'Lukas Hinsch'
}
}
}
}
}
}
}