-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
67 lines (58 loc) · 1.86 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
// 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'
// JDK 8
sourceCompatibility = 1.8
targetCompatibility = 1.8
mainClassName = 'edu.mcw.scge.dataload.ontologies.Manager'
String myAppName = 'OntologyLoad'
repositories {
mavenCentral()
}
dependencies {
implementation fileTree(dir: 'lib', include: '*.jar')
implementation 'commons-collections:commons-collections:3.2.2'
implementation 'org.apache.commons:commons-dbcp2:2.7.0'
implementation 'commons-net:commons-net:3.6'
implementation 'log4j:log4j:1.2.17'
implementation 'org.apache.httpcomponents:httpclient:4.5.12'
implementation 'org.springframework:spring-jdbc:5.3.0'
implementation 'com.io7m.xom:xom:1.2.10'
implementation 'org.biojava:biojava:5.4.0'
implementation 'org.biojava:biojava-ontology:5.4.0'
implementation 'org.postgresql:postgresql:9.3-1104-jdbc4'
}
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 update_scgecore(type:Copy){
from file("C:\\git\\scge-core\\build\\libs\\scge-core-1.0.jar")
into file("lib/")
}
task createDistro(type: Copy) {
def zipFile = file('build/distributions/'+myAppName+'.zip')
def outputDir = file("build/install")
from zipTree(zipFile)
into outputDir
}
createDistro.dependsOn assembleDist