-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
68 lines (59 loc) · 2.12 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
// create a runnable jar with jar dependencies stored in lib subdirectory
tasks.whenTaskAdded { task ->
['startScripts', 'distTar'].each { String skipTaskName ->
if (task.name.contains(skipTaskName)) {
task.enabled = false
}
}
}
apply plugin: 'java'
apply plugin: 'application'
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
mainClassName = 'edu.mcw.rgd.eva.Main'
String myAppName = 'EvaPipeline'
project.archivesBaseName = myAppName
repositories {
mavenCentral()
}
dependencies {
implementation 'org.apache.commons:commons-collections4:4.4'
implementation 'org.apache.commons:commons-dbcp2:2.8.0'
implementation 'commons-net:commons-net:3.7.1'
implementation 'com.google.code.gson:gson:2.8.7'
implementation 'org.apache.httpcomponents:httpclient:4.5.13'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.12.6.1'
implementation 'com.github.cliftonlabs:json-simple:3.1.1'
implementation 'org.apache.logging.log4j:log4j-api:2.21.0'
implementation 'org.apache.logging.log4j:log4j-core:2.21.0'
implementation 'com.oracle.database.jdbc:ojdbc10:19.20.0.0'
implementation 'org.springframework:spring-beans:6.0.13'
implementation 'org.springframework:spring-jdbc:6.0.13'
implementation 'com.io7m.xom:xom:1.2.10'
implementation fileTree(dir: 'lib', include: '*.jar')
}
jar {
manifest {
attributes(
'Built-By': System.getProperty('user.name'),
'Built-Date': new Date(),
'Built-JDK': System.getProperty('java.version'),
'Class-Path': configurations.runtimeClasspath.collect { it.getName() }.join(' '),
'Main-Class': mainClassName
)
}
}
distributions {
main {
distributionBaseName = myAppName
}
}
task createDistro(type: Copy) {
def zipFile = file('build/distributions/'+myAppName+'.zip')
def outputDir = file("build/install")
from zipTree(zipFile)
into outputDir
}
createDistro.dependsOn assembleDist