-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
72 lines (65 loc) · 2.33 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
plugins {
id 'java'
id 'application'
}
java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
description = 'GTFSVTOR - General Transit Feed Specification Validator'
version = '1.0.3'
application {
mainClass = 'com.mecatran.gtfsvtor.cmdline.GtfsVtorMain'
applicationDefaultJvmArgs = [ "-Xmx4G" ]
}
repositories {
mavenCentral()
}
startScripts {
applicationName = 'gtfsvtor'
}
distZip {
archiveFileName = "gtfsvtor.zip"
}
tasks.distTar.enabled = false
// Return the current commit hash from git
ext.scmRevision = providers.exec {
commandLine('git', 'rev-parse', 'HEAD')
}.standardOutput.asText.get().trim()
def utcDateTime() {
def df = new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm 'UTC'");
df.setTimeZone(TimeZone.getTimeZone("UTC"));
return df.format(new Date())
}
jar {
manifest {
attributes 'Implementation-Title' : project.description,
'Implementation-Version': version,
'Built-By' : System.properties['user.name'],
'Build-Date' : utcDateTime(),
'Build-Revision' : scmRevision,
'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']}"
}
}
test {
testLogging {
// events "passed", "skipped", "failed", "standardOut", "standardError"
events "passed", "skipped", "failed", "standardError"
}
}
dependencies {
implementation 'com.google.guava:guava:29.0-jre'
implementation 'org.apache.commons:commons-csv:1.8'
implementation 'com.univocity:univocity-parsers:2.8.4'
implementation 'commons-io:commons-io:2.6'
implementation 'commons-validator:commons-validator:1.6'
implementation 'org.locationtech.jts:jts-core:1.16.1'
implementation 'com.googlecode.jatl:jatl:0.2.3'
implementation 'org.apache.httpcomponents:httpclient:4.5.12'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.11.1'
implementation 'com.beust:jcommander:1.78'
testImplementation 'junit:junit:4.12'
testImplementation 'io.github.java-diff-utils:java-diff-utils:4.5'
}