-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
95 lines (86 loc) · 3.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
dependencies {
compile "org.springframework.boot:spring-boot-starter-logging"
compile "org.springframework.boot:spring-boot-autoconfigure"
compile "org.springframework.boot:spring-boot-starter-actuator"
provided "org.springframework.boot:spring-boot-starter-tomcat"
compile "org.springframework.boot:spring-boot-starter-security"
compile "org.grails:grails-core"
compile "org.grails:grails-dependencies"
compile "org.grails:grails-web-boot"
compile "org.grails.plugins:cache"
compile "org.grails.plugins:scaffolding"
compile "org.grails.plugins:hibernate5"
compile "org.hibernate:hibernate-core:5.1.2.Final"
compile "org.hibernate:hibernate-ehcache:5.1.2.Final"
console "org.grails:grails-console"
profile "org.grails.profiles:web"
runtime "com.h2database:h2"
testCompile "org.grails:grails-plugin-testing"
testCompile "org.grails.plugins:geb"
testRuntime "org.seleniumhq.selenium:selenium-htmlunit-driver:2.47.1"
testRuntime "net.sourceforge.htmlunit:htmlunit:2.18"
// end of default Grails 3.2 deps
compile 'org.grails.plugins:spring-security-core:3.1.1'
runtime 'org.springframework.security:spring-security-config:3.2.3.RELEASE'
compile 'org.springframework.security:spring-security-web:3.2.3.RELEASE'
compile 'log4j:apache-log4j-extras:1.2.17'
compile "commons-io:commons-io:2.5"
compile "commons-fileupload:commons-fileupload:1.3.1"
compile "org.apache.solr:solr-solrj:4.5.1"
// end of project specific deps
// local gradle submodule deps
compile project(':transmart-oauth')
compile project(':search-domain')
compile project(':transmart-rest-api')
runtime project(':transmartApp')
}
assets {
packagePlugin = true
}
bootRun {
jvmArgs = ['-Xmx4096m']
// In development mode, set the TRANSMART_DEBUG_PORT environment variable to a port number to enable debugging on that port
if(! (System.env.TRANSMART_DEBUG_PORT ?: '').empty) {
def port = System.env.TRANSMART_DEBUG_PORT
assert port.isInteger() && (port as int) in 0..<2**16, "TRANSMART_DEBUG_PORT environment variable is not a valid port number: '$port'"
jvmArgs += ["-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=$port"]
}
}
task executableWar(type: Copy) {
from "${libsDir}/${project.name}-${project.version}.war"
into "${distsDir}"
}
executableWar.dependsOn 'bootRepackage'
war {
webInf {
with copySpec({
from '../Rmodules/src/main/resources/Rscripts'
into 'Rscripts'
})
with copySpec({
from 'src/main/resources/dataExportRScripts'
into 'dataExportRScripts'
})
with copySpec({
from '../open-api'
into 'classes/public/open-api'
})
with copySpec({
from 'src/main/resources/public'
into 'classes/public'
})
with copySpec({
from '../Rmodules/src/main/resources/public'
into 'classes/public'
})
} //Rscripts from Rmodules into WEB-INF dir.
}
publishing {
publications {
mavenJava(MavenPublication) {
artifact file("${distsDir}/${project.name}-${project.version}.war") // Publish the output of the executableWar task
}
}
}
publishToMavenLocal.dependsOn 'executableWar'
publish.dependsOn 'executableWar'