forked from lukashinsch/spring-boot-actuator-logview
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlib.gradle
134 lines (109 loc) · 3.53 KB
/
lib.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
131
132
133
134
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath("org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.0.1")
}
}
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'jacoco'
apply plugin: 'com.github.kt3k.coveralls'
ext {
springBootVersion = '1.2.1.RELEASE'
libVersion = '0.2.13'
}
jar {
baseName = 'spring-boot-actuator-logview'
version = libVersion
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
compile("org.springframework.boot:spring-boot-starter-web:${springBootVersion}")
compile("org.springframework.boot:spring-boot-starter-freemarker:${springBootVersion}")
compile("org.springframework.boot:spring-boot-starter-actuator:${springBootVersion}")
compile("org.ocpsoft.prettytime:prettytime:3.2.7.Final")
compile("commons-io:commons-io:2.4")
compile("org.apache.commons:commons-compress:1.9")
testCompile("org.springframework.boot:spring-boot-starter-test:${springBootVersion}")
}
idea {
module {
inheritOutputDirs = false
outputDir = file("$buildDir/classes/main/")
}
}
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
}
}
// sign and publish to MC is done only locally so far
if (System.getenv('CI') != 'true') {
apply plugin: 'signing'
apply plugin: 'maven'
group = 'eu.hinsch'
version = libVersion
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-logview'
packaging 'jar'
description 'simple logfile viewer as spring boot actuator endpoint'
url 'https://github.com/lukashinsch/spring-boot-actuator-logview/'
scm {
url 'scm:[email protected]:lukashinsch/spring-boot-actuator-logview.git'
connection 'scm:[email protected]:lukashinsch/spring-boot-actuator-logview.git'
developerConnection 'scm:[email protected]:lukashinsch/spring-boot-actuator-logview.git'
}
licenses {
license {
name 'MIT License'
url 'http://www.opensource.org/licenses/mit-license.php'
distribution 'repo'
}
}
developers {
developer {
id 'lukashinsch'
name 'Lukas Hinsch'
}
}
}
}
}
}
}