/
build.gradle
125 lines (96 loc) · 3.03 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
buildscript {
repositories {
jcenter()
}
}
plugins {
id 'java'
id 'jacoco'
id 'checkstyle'
id 'pmd'
// required for: website.gradle
id 'org.ajoberstar.git-publish' version '0.3.0'
// deploy to maven central
id 'maven'
id 'maven-publish'
id 'signing'
id "com.jfrog.bintray" version "1.7.3"
}
checkstyle {
toolVersion = "8.1"
showViolations = false
sourceSets = [ project.sourceSets.main ]
// maxWarnings = 0
}
tasks.withType(Checkstyle) {
reports {
xml.enabled true
// html.destination rootProject.file("build/reports/checkstyle.html")
// html.stylesheet resources.text.fromFile('config/xsl/checkstyle-custom.xsl')
}
}
jacoco {
toolVersion = "0.7.9"
reportsDir = file("${buildDir}/jacocoHtml")
}
jacocoTestReport {
reports {
xml.enabled true
csv.enabled false
html.enabled true
html.destination file("${buildDir}/jacocoHtml")
}
}
pmd {
toolVersion = "5.8.1"
ruleSetFiles = files("config/pmd/ruleset.xml")
sourceSets = [ project.sourceSets.main ]
ignoreFailures = false
}
// Global configuration
project.ext.set("specifications_cms_cmsdRoot", "$projectDir/website")
project.ext.set("specifications_cms_target", "$buildDir/website")
project.ext.set("specifications_concordion_target", "$reporting.baseDir/specs/concordion")
project.ext.set("specifications_prepareForCms_source", "$reporting.baseDir/specs/concordion/specs")
project.ext.set("specifications_prepareForCms_target", "$specifications_cms_cmsdRoot/content/specification")
// use ./gradlew -PHUGO_EXEC=/path/to/hugo to configure the executable for hugo
project.ext.set("hugo", project.hasProperty("HUGO_EXEC") ? HUGO_EXEC : "hugo")
// ----
sourceCompatibility = 1.8
targetCompatibility = 1.8
group = 'name.neuhalfen.projects.crypto.bouncycastle.openpgp'
version = '2.0.1'
repositories {
jcenter()
}
dependencies {
compile 'org.bouncycastle:bcprov-jdk15on:1.57'
compile 'org.bouncycastle:bcpg-jdk15on:1.57'
compile 'org.slf4j:slf4j-api:1.7.22'
compile 'ch.qos.logback:logback-classic:1.2.1'
// @Nullable and friends are not needed at runtime
compile 'com.google.code.findbugs:jsr305:3.0.1'
testCompile 'junit:junit:4.12'
testCompile 'org.hamcrest:hamcrest-all:1.3'
testCompile 'org.mockito:mockito-core:2.8.9'
testCompile "org.concordion:concordion:2.1.0"
testCompile 'org.concordion:concordion-api-documentation-extension:0.0.4'
}
test {
// Concordion
// display test output on console? (for debugging)
testLogging.showStandardStreams = false
// write output to build/reports/spec
systemProperties['concordion.output.dir'] = "${specifications_concordion_target}"
// force tests to run even if code hasn't changed
outputs.upToDateWhen { false }
}
// bintray deployment
// configured in gradle.properties
if (hasProperty('bintray_Username')) {
apply from: 'bintray.gradle'
}
apply from: 'website.gradle'
task wrapper(type: Wrapper) {
gradleVersion = '4.1'
}