-
Notifications
You must be signed in to change notification settings - Fork 49
/
build.gradle
74 lines (63 loc) · 2.01 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
plugins {
id 'java'
//these have to be in the main project for now see - https://discuss.gradle.org/t/how-do-i-include-buildscript-block-from-external-gradle-script/7016/2
id "com.github.kt3k.coveralls" version "2.8.2"
id "de.aaschmid.cpd" version "1.1"
id "org.owasp.dependencycheck" version "3.2.1"
// id "com.dorongold.task-tree" version "1.3"
id "org.ajoberstar.grgit" version "2.2.1"
id "com.github.spotbugs" version "1.6.2"
id "com.jfrog.bintray" version "1.8.2"
}
apply from: 'eclipse.gradle'
apply from: 'bintray.gradle'
apply from: 'maven-central.gradle'
apply from: 'code-quality.gradle'
apply from: 'message-bundle.gradle'
sourceCompatibility = 1.8
targetCompatibility = 1.8
if(project.version == "unspecified"){
String now = new Date().format( 'MMM-dd-yyyy_HH-mm-ss' )
project.version = "5.0.0-${now}-SNAPSHOT"
}
repositories {
jcenter()
}
dependencies {
compile 'org.slf4j:slf4j-api:1.7.25',
'com.fasterxml.jackson.core:jackson-core:2.9.0.pr4',
'com.fasterxml.jackson.core:jackson-databind:2.9.0.pr4'
testCompile 'org.junit.jupiter:junit-jupiter-api:5.2.0',
'org.springframework.boot:spring-boot-starter-logging:1.5.4.RELEASE',
'org.bouncycastle:bcprov-jdk15on:1.57',
'org.kamranzafar:jtar:2.3'
testRuntime 'org.junit.jupiter:junit-jupiter-engine:5.2.0'
}
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
reports {
html.enabled = true
}
//testLogging.showStandardStreams = true
}
tasks.withType(com.github.spotbugs.SpotBugsTask) {
reports {
xml.enabled = false
html.enabled = true
}
}
import org.ajoberstar.grgit.*
task cloneConformanceSuite(){
group "Verification"
description "Download the bagit-conformance-suite if it doesn't exist."
File location = file("${project.projectDir}/bagit-conformance-suite")
outputs.dir(location)
onlyIf { !location.exists() }
doLast{
Grgit.clone(dir: location,
uri: 'https://github.com/libraryofcongress/bagit-conformance-suite.git')
}
}