-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
121 lines (104 loc) · 2.75 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
plugins {
id 'java-library'
id 'eclipse'
id 'jacoco'
id 'com.github.spotbugs' version '2.0.1'
id 'ru.vyarus.java-lib' version '2.1.0'
id 'com.jfrog.bintray' version '1.8.1'
}
group = 'de.mynttt'
version = '1.1.0'
description = 'A simple hierarchical scoped group based key:value storage/configuration format.'
System.out.println "\nVersion: " + version
sourceCompatibility = 11
repositories {
jcenter()
}
dependencies {
provided group: 'com.github.spotbugs', name: 'spotbugs-annotations', version: '3.1.12'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.5.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.5.2'
}
test {
useJUnitPlatform() {
testLogging.showStandardStreams = true
}
}
ext {
currentVersion = version
}
pom {
name 'ezconf'
description 'A simple hierarchical scoped group based key:value storage/configuration format.'
url 'https://github.com/mynttt/ezconf'
licenses {
license {
name "The MIT License"
url "http://www.opensource.org/licenses/MIT"
distribution 'repo'
}
}
scm {
url 'https://github.com/mynttt/ezconf.git'
connection 'scm:[email protected]:mynttt/ezconf.git'
developerConnection 'scm:[email protected]:mynttt/ezconf.git'
}
developers {
developer {
id "mynttt"
name "Marc Herschel"
email "marc (at) herschel (dot) io"
}
}
}
bintray {
publications = ['maven']
user = System.getProperty('bintray.user')
key = System.getProperty('bintray.key')
pkg {
repo = 'oss'
name = 'de.mynttt.ezconf'
userOrg = 'mynttt'
licenses = ['MIT']
vcsUrl = 'https://github.com/mynttt/ezconf.git'
version {
name = "${currentVersion}"
desc = "Version: ${currentVersion}"
released = new Date()
}
}
}
spotbugs {
ignoreFailures = false
effort = "max"
sourceSets = [sourceSets.main]
}
tasks.withType(com.github.spotbugs.SpotBugsTask) {
reports.xml.enabled = false
reports.html.enabled = true
}
jacoco {
toolVersion = "0.8.5"
reportsDir = file("$buildDir/customJacocoReportDir")
}
jacocoTestReport {
reports {
xml.enabled true
csv.enabled false
xml.destination file("${buildDir}/jacoco/jacoco.xml")
html.destination file("${buildDir}/jacocoHtml")
}
}
javadoc {
failOnError = false
destinationDir = rootProject.file('javadocs')
title = "ezconf API Documentation"
options.memberLevel = JavadocMemberLevel.PROTECTED
}
jar {
manifest {
attributes("Built-By": "mynttt")
}
}
jar.dependsOn javadocJar, sourcesJar
build.dependsOn jacocoTestReport, javadoc