-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
106 lines (94 loc) · 2.78 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
plugins {
id 'com.gradle.build-scan' version '2.3'
id "com.jfrog.bintray" version "1.8.4"
id 'nebula.contacts' version '5.0.3'
id 'nebula.info-basic' version '5.0.3'
id 'nebula.info-broker' version '5.0.3'
id 'nebula.info-jar' version '5.0.3'
id 'nebula.info-owners' version '5.0.3'
id 'nebula.info-props' version '5.0.3'
id 'nebula.info-scm' version '5.0.3'
id 'nebula.javadoc-jar' version '12.0.0'
id 'nebula.maven-publish' version '12.0.0'
id 'nebula.release' version '10.1.2'
id 'nebula.source-jar' version '12.0.0'
}
group 'com.robertsmieja'
apply plugin: 'eclipse'
apply plugin: 'jacoco'
apply plugin: 'java-library'
apply plugin: 'maven-publish'
repositories {
jcenter()
mavenCentral()
}
dependencies {
implementation 'org.apache.commons:commons-lang3:3.9'
implementation 'org.apache.commons:commons-collections4:4.3'
implementation 'org.junit.jupiter:junit-jupiter-api:5.4.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.4.2'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher:1.4.2'
testRuntimeOnly 'org.junit.platform:junit-platform-runner:1.4.2'
}
contacts {
'robertsmieja@robertsmieja.com' {
moniker 'Robert Smieja'
github 'robertsmieja'
role 'owner'
}
}
/* Javac config */
//compileJava {
// options.compilerArgs << "-Xlint"
//}
/* BinTray config */
tasks.release.dependsOn tasks.bintrayUpload
bintray {
user = project.hasProperty('bintrayUser') ? "$bintrayUser" : System.env.'BINTRAY_USER'
key = project.hasProperty('bintrayApiKey') ? "$bintrayApiKey" : System.env.'BINTRAY_API_KEY'
publications = ['nebula']
dryRun = false
publish = true
pkg {
repo = 'maven'
name = "${project.name}"
desc = hasProperty('description') ? description : ''
websiteUrl = "https://github.com/robertsmieja/${project.name}"
issueTrackerUrl = "https://github.com/robertsmieja/${project.name}/issues"
vcsUrl = "https://github.com/robertsmieja/${project.name}.git"
licenses = ['Apache-2.0']
publicDownloadNumbers = true
attributes = [:]
version {
name = project.version
vcsTag = "${project.version}"
attributes = [:]
gpg {
sign = true
}
// mavenCentralSync {
// user = ''
// password = ''
// }
}
}
}
/* Build Scan config */
buildScan {
termsOfServiceUrl = 'https://gradle.com/terms-of-service'
termsOfServiceAgree = 'yes'
if (System.getenv('CI')) {
publishAlways()
tag 'CI'
}
}
/* Code Coverage */
jacoco {
toolVersion = '0.8.1'
}
jacocoTestReport {
reports {
xml.enabled true
csv.enabled false
}
}