-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
104 lines (90 loc) · 2.95 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
/*
* This file was generated by the Gradle 'init' task.
*/
plugins {
id 'java'
id 'jacoco'
id 'maven-publish'
}
group = 'com.github.kbase'
var VER_AUTH2_CLIENT = "0.5.0"
var VER_JACKSON = "2.9.9"
// TODO BUILD get rid of dependency on Syslog4j, 10yo abandonware w/ CVEs
repositories {
mavenCentral()
maven {
name = "Clojars"
url = "https://repo.clojars.org/"
}
maven {
name = "JitPack"
url = 'https://jitpack.io'
}
}
compileJava {
// TODO BUILD remove when we no longer support java 8, use `options.release = 11` if needed
java.sourceCompatibility = JavaVersion.VERSION_1_8
java.targetCompatibility = JavaVersion.VERSION_1_8
}
java {
withSourcesJar()
withJavadocJar()
}
test {
forkEvery = 1 // seems to fix a race condition with the logging test
testLogging {
exceptionFormat = 'full'
showStandardStreams = true
}
finalizedBy jacocoTestReport
}
jacocoTestReport {
reports {
xml.required = true
csv.required = true
}
}
javadoc {
failOnError = false // big effort to fix this one
options {
// I don't know why this isn't working, but it's not worth spending time on right now
links "https://docs.oracle.com/javase/8/docs/api/"
links "https://www.javadoc.io/doc/com.fasterxml.jackson.core/jackson-core/$VER_JACKSON/"
links "https://www.javadoc.io/doc/com.fasterxml.jackson.core/jackson-databind/$VER_JACKSON/"
links "https://javadoc.jitpack.io/com/github/kbase/auth2_client_java/$VER_AUTH2_CLIENT/javadoc/"
}
}
publishing {
publications {
maven(MavenPublication) {
from components.java
}
}
}
dependencies {
// using older dependencies to not force upgrades on services that might not be able to
// handle them. Need to upgrade the services and then upgrade here
implementation "com.fasterxml.jackson.core:jackson-annotations:$VER_JACKSON"
implementation "com.fasterxml.jackson.core:jackson-databind:$VER_JACKSON"
implementation "com.github.kbase:auth2_client_java:$VER_AUTH2_CLIENT"
implementation 'org.apache.commons:commons-lang3:3.1'
implementation 'org.slf4j:slf4j-api:1.7.7'
implementation 'ch.qos.logback:logback-classic:1.1.2'
implementation 'org.ini4j:ini4j:0.5.2'
implementation 'javax.servlet:servlet-api:2.5'
implementation 'joda-time:joda-time:2.2'
// TODO CODE ideally we could rewrite java-common so it didn't have a runtime dependency on
// jetty
implementation 'org.eclipse.jetty.aggregate:jetty-all:7.0.0.v20091005'
// TODO DEPS Need to rework the java common logger to not use syslog4j at all since it's
// abandonware and has a ton of CVEs, even in the newer versions.
implementation "org.syslog4j:syslog4j:0.9.46"
// needed for syslog4j
implementation 'net.java.dev.jna:jna:3.4.0'
testImplementation 'junit:junit:4.9'
testImplementation 'com.google.guava:guava:18.0'
testImplementation 'org.mockito:mockito-core:3.0.0'
testImplementation 'com.github.zafarkhaja:java-semver:0.9.0'
testImplementation 'commons-io:commons-io:2.4'
testImplementation 'com.github.kbase:java_test_utilities:0.1.0'
}