-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathbuild.gradle
87 lines (67 loc) · 2.68 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
plugins {
id 'java'
id 'application'
id 'eclipse'
id 'com.github.spotbugs' version '2.0.1'
}
version = '1.9.2'
sourceCompatibility = '11'
new File(projectDir, "VERSION").text = version;
new File(projectDir, "src/main/resources/VERSION").text = version;
repositories {
jcenter()
}
dependencies {
implementation 'com.google.guava:guava:28.0-jre'
// https://mvnrepository.com/artifact/com.jayway.jsonpath/json-path
implementation group: 'com.jayway.jsonpath', name: 'json-path', version: '2.5.0'
// https://mvnrepository.com/artifact/com.google.code.gson/gson
implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.6'
// https://mvnrepository.com/artifact/org.xerial/sqlite-jdbc
implementation group: 'org.xerial', name: 'sqlite-jdbc', version: '3.34.0'
// https://mvnrepository.com/artifact/org.tinylog/tinylog-impl
implementation group: 'org.tinylog', name: 'tinylog-impl', version: '2.0.1'
// https://mvnrepository.com/artifact/org.slf4j/slf4j-simple
implementation group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.30'
// https://mvnrepository.com/artifact/de.mynttt/ezconf
implementation group: 'de.mynttt', name: 'ezconf', version: '1.1.0'
// https://mvnrepository.com/artifact/org.jsoup/jsoup
implementation group: 'org.jsoup', name: 'jsoup', version: '1.13.1'
compileOnly group: 'com.github.spotbugs', name: 'spotbugs-annotations', version: '3.1.12'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.5.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.5.2'
}
run {
standardInput = System.in
}
application {
mainClassName = 'updatetool.Main'
}
test {
useJUnitPlatform()
}
jar {
manifest {
attributes(
'Built-By' : System.properties['user.name'],
'Build-Timestamp': new java.text.SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ").format(new Date()),
'Build-Revision' : version,
'Created-By' : "Gradle ${gradle.gradleVersion}",
'Build-Jdk' : "${System.properties['java.version']} (${System.properties['java.vendor']} ${System.properties['java.vm.version']})",
'Build-OS' : "${System.properties['os.name']} ${System.properties['os.arch']} ${System.properties['os.version']}",
"Main-Class" : "updatetool.Main"
)
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}
spotbugs {
ignoreFailures = false
effort = "max"
sourceSets = [sourceSets.main]
}
tasks.withType(com.github.spotbugs.SpotBugsTask) {
reports.xml.enabled = false
reports.html.enabled = true
}