-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
113 lines (88 loc) · 3.53 KB
/
build.gradle
File metadata and controls
113 lines (88 loc) · 3.53 KB
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
105
106
107
108
109
110
111
112
113
apply plugin: 'application'
apply plugin: 'distribution'
apply plugin: 'groovy'
apply plugin: 'java'
apply plugin: 'idea'
version '1.0.20'
mainClassName = "Start"
repositories {
maven {
url 'http://nexus.bpas.local/repository/maven-public'
}
}
task wrapper(type: Wrapper) {
gradleVersion = '4.6'
}
distributions {
main {
baseName = 'UbwIntegration'
contents {
from { 'src/readme' }
}
}
}
dependencies {
// compile fileTree(dir: 'lib', include: '*.jar')
compile 'org.codehaus.groovy:groovy-all:2.4.13'
compile 'commons-io:commons-io:2.4'
// compile 'commons-dbcp:commons-dbcp:1.4'
// compile 'com.zaxxer:HikariCP:2.6.3'
compile 'commons-configuration:commons-configuration:1.10'
compile 'commons-collections:commons-collections:3.2.2'
compile 'commons-jxpath:commons-jxpath:1.3'
// compile 'net.sf.jt400:jt400:9.3'
// compile 'net.sourceforge.jtds:jtds:1.3.1'
// Camel
compile 'org.apache.camel:camel-core:2.22.1'
compile 'org.apache.camel:camel-base64:2.22.1'
compile 'org.apache.camel:camel-groovy:2.22.1'
compile 'org.apache.camel:camel-quartz2:2.22.1'
compile 'org.apache.camel:camel-exec:2.22.1'
compile 'org.apache.camel:camel-mail:2.22.1'
compile 'org.apache.camel:camel-spring:2.22.1'
compile 'org.apache.camel:camel-saxon:2.22.1'
// compile 'org.apache.camel:camel-sql:2.22.1'
compile 'org.apache.camel:camel-csv:2.22.1'
compile 'org.apache.camel:camel-bindy:2.22.1'
// compile 'org.apache.camel:camel-spring:2.22.1'
compile 'org.apache.camel:camel-metrics:2.22.1'
compile 'org.apache.camel:camel-jetty:2.22.1'
compile 'org.apache.camel:camel-http4:2.22.1'
compile 'org.apache.camel:camel-velocity:2.22.1'
// Logging
//compile 'org.slf4j:slf4j-api:1.7.12'
//compile 'org.slf4j:slf4j-log4j12:1.7.12'
//compile 'log4j:log4j:1.2.17'
//compile 'log4j:apache-log4j-extras:1.2.17'
compile 'org.slf4j:slf4j-api:1.7.15'
compile 'ch.qos.logback:logback-classic:1.2.3'
compile 'ch.qos.logback:logback-core:1.2.3'
compile 'com.fasterxml.woodstox:woodstox-core:5.0.2'
compile 'javax.mail:mail:1.4.7'
if (project.hasProperty('environment')) {
println 'Development environment'
System.properties["camelPropertyPath"] = "src/dist/camel.properties"
} else {
println 'Production environment'
System.properties["camelPropertyPath"] = "camel.properties"
}
compile 'org.codehaus.groovy.modules.http-builder:http-builder:0.7'
// compile 'net.sf.json-lib:json-lib:2.3'
compile group: 'xml-resolver', name: 'xml-resolver', version: '1.2'
}
// Fix command-length issue in windows startscript
task pathingJar(type: Jar) {
appendix = 'pathing'
manifest { attributes("Class-Path": configurations.runtime.collect { it.getName() }.join(' ') + ' ' + jar.archiveName ) }
}
applicationDistribution.from(pathingJar) { into "lib" }
startScripts {
doLast {
def winScriptFile = file getWindowsScript()
def winFileText = winScriptFile.text
// Remove too-long-classpath and use pathing jar instead
winFileText = winFileText.replaceAll('set CLASSPATH=.*', 'rem CLASSPATH declaration removed.')
winFileText = winFileText.replaceAll('("%JAVA_EXE%" .* -classpath ")%CLASSPATH%(" .*)', '$1%APP_HOME%\\\\lib\\\\' + pathingJar.archiveName + '$2')
winScriptFile.text = winFileText
}
}