-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
133 lines (111 loc) · 3.46 KB
/
build.gradle
File metadata and controls
133 lines (111 loc) · 3.46 KB
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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.bmuschko:gradle-nexus-plugin:2.3.1'
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.8.2'
}
}
plugins {
id "java"
id "jacoco"
id "org.sonarqube" version "2.6.2"
id "com.bmuschko.nexus" version "2.3.1"
id "com.github.kt3k.coveralls" version "2.8.2"
}
group = 'de.kgrupp'
ext.moduleName = 'inoks.java.utils'
def versionStr = System.properties['inoks.java.utils.version']
version = !versionStr ? "LOCAL-VERSION" : versionStr
sourceCompatibility = 11
repositories {
mavenCentral()
maven {
url "https://oss.sonatype.org/content/groups/public"
}
}
dependencies {
compile group: 'de.kgrupp', name: 'inoks-java-monads', version: '0.8.0.1'
implementation group: 'org.jetbrains', name: 'annotations', version: '15.0'
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.9.8'
implementation group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-jsr310', version: '2.9.8'
implementation group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-joda', version: '2.9.8'
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.3.2'
testRuntime group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.3.2'
}
compileJava {
inputs.property('moduleName', moduleName)
doFirst {
options.compilerArgs = [
'--module-path', classpath.asPath
]
classpath = files()
}
}
javadoc {
options.addStringOption('-module-path', classpath.asPath)
}
allprojects {
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
tasks.withType(Test) {
systemProperty "file.encoding", "UTF-8"
}
}
test {
useJUnitPlatform()
filter {
exclude '**/module-info.class'
}
}
sonarqube {
properties {
property 'sonar.projectKey', 'inoks-java-utils'
property 'sonar.projectName', 'inoks-java-utils'
}
}
modifyPom {
project {
name 'inoks-java-utils'
description 'A set of java classes which are helpful for developing with java 8. Helpers for inoks-java-monads.'
url 'https://github.com/kgrupp/inoks-java-utils'
inceptionYear '2017'
scm {
url 'https://github.com/kgrupp/inoks-java-utils'
connection 'scm:https://kgrupp@github.com/kgrupp/inoks-java-utils.git'
developerConnection 'scm:git://github.com/kgrupp/inoks-java-utils.git'
}
licenses {
license {
name 'MIT License'
url 'https://github.com/kgrupp/inoks-java-utils/blob/master/LICENSE'
distribution 'repo'
}
}
developers {
developer {
id 'kgrupp'
name 'Konstantin Grupp'
email 'coding@konstantin-grupp.de'
}
}
}
}
extraArchive {
sources = true
tests = true
javadoc = true
}
nexus {
sign = true
repositoryUrl = project.hasProperty('nexusUrlRelease') ? nexusUrlRelease : 'http://localhost:8081/repository/maven-releases/'
snapshotRepositoryUrl = project.hasProperty('nexusUrlSnapshot') ? nexusUrlSnapshot : 'http://localhost:8081/repository/maven-snapshots'
}
jacocoTestReport {
reports {
xml.enabled = true // coveralls plugin depends on xml format report
html.enabled = true
}
}