-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
135 lines (112 loc) · 5.16 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
dependencies {
profile "org.grails.profiles:web"
console "org.grails:grails-console"
provided "org.springframework.boot:spring-boot-starter-tomcat"
runtime "com.bertramlabs.plugins:asset-pipeline-grails:$assetPipelineVersion"
runtime 'org.postgresql:postgresql:9.3-1100-jdbc4'
runtime 'com.oracle:ojdbc7:12.1.0.1'
runtime 'org.javassist:javassist:3.16.1-GA'
compile "org.springframework.boot:spring-boot-starter-logging"
compile "org.springframework.boot:spring-boot-autoconfigure"
compile "org.springframework.boot:spring-boot-starter-actuator"
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.grails.plugins:spring-security-core:3.1.1'
compile 'org.grails.plugins:spring-security-oauth2-provider:3.0.0-RC2'
// spring security version should be in sync with that brought with
// grails-spring-security-core
runtime 'org.springframework.security:spring-security-config:3.2.3.RELEASE'
//compile 'org.springframework.ldap:spring-ldap-core:2.1.0.RELEASE'
compile 'org.springframework.security:spring-security-ldap:3.2.3.RELEASE'
compile 'org.springframework.security:spring-security-web:3.2.3.RELEASE'
//compile 'org.springframework.security.oauth:spring-security-oauth2:2.0.11.RELEASE'
compile "org.swinglabs:pdf-renderer:1.0.5"
compile 'antlr:antlr:2.7.7'
compile 'net.sf.opencsv:opencsv:2.3'
compile "org.apache.lucene:lucene-core:2.4.0"
compile "org.apache.lucene:lucene-demos:2.4.0"
compile "org.apache.lucene:lucene-highlighter:2.4.0"
compile "org.apache.solr:solr-solrj:4.5.1"
compile 'commons-net:commons-net:3.3' // used for ftp transfers
compile 'org.apache.commons:commons-math:2.2' //>2MB lib briefly used in ChartController
compile 'org.codehaus.groovy.modules.http-builder:http-builder:0.5.1'
compile 'org.rosuda:Rserve:1.7.3'
compile "com.google.guava:guava:$guavaVersion"
compile 'log4j:apache-log4j-extras:1.2.17'
/* for GeneGo web services: */
compile 'axis:axis:1.4'
compile 'jfree:jfreechart:1.0.12'
compile 'com.thoughtworks.xstream:xstream:1.4.9'
compile 'com.jcraft:jsch:0.1.53'
compile 'org.fusesource.jansi:jansi:1.8'
compile 'jline:jline:2.12.1'
compile 'org.jfree:jfreesvg:3.1'
compile files('lib/GenePattern.jar')
compile project(':transmart-core-api')
compile project(':transmart-core-db')
compile project(':transmart-rest-api')
compile project(':transmart-java')
compile project(':search-domain')
compile project(':biomart-domain')
compile project(':transmart-legacy-db')
compile project(':transmart-oauth')
testCompile project(':transmart-core-db-tests')
testCompile "org.grails:grails-plugin-testing"
testCompile "org.grails:grails-test"
testCompile "org.grails.plugins:geb"
testCompile "org.grails.plugins:hibernate5"
testCompile 'org.gmock:gmock:0.9.0-r435-hyve2'
testRuntime "org.seleniumhq.selenium:selenium-htmlunit-driver:2.47.1"
testRuntime "net.sourceforge.htmlunit:htmlunit:2.18"
testRuntime 'junit:junit:4.11'
testRuntime 'org.hamcrest:hamcrest-core:1.3'
testRuntime 'org.hamcrest:hamcrest-library:1.3'
//FIXME: this block was in grails.plugins, make sure that the assets keep working
compile project(':Rmodules')
compile project(':transmart-gwas-plugin')
compile project(':folder-management-plugin')
compile project(':transmart-solr-indexing')
}
grails {
exploded = true
}
assets {
minifyJs = true
minifyCss = true
}
task installTransmartPlugins << {
/**
* Explodes the plugins in the TranSMART plugin folder.
*/
def grailsHome = ant.project.properties."environment.GRAILS_HOME"
def basedir = System.getProperty("base.dir")
def pluginFiles = "${basedir}/plugins/ext-2.2.zip"
def jsDir = "${basedir}/web-app/js/plugin"
def gspDir = "${basedir}/grails-app/views/plugin"
def rDir = ""
// This is our plugin zip directory.
def zipDir = new File("${basedir}/plugins/")
// For each of the zips in this directory, instruct ant to unzip the file and move the contents to the directory specified by their file extension.
zipDir.eachFile { zipFile ->
//If we find a file.
if (zipFile.isFile()) {
//Unzip file to a temp directory.
ant.unzip(src: "${zipFile}", dest: "${basedir}/plugins/temp/")
def fileDir = new File("${basedir}/plugins/temp/")
fileDir.eachFile { file ->
if (file.isFile()) {
if (file.name.contains(".gsp")) ant.move(file: "${file}", tofile: "${gspDir}/${file.name}")
if (file.name.contains(".js")) ant.move(file: "${file}", tofile: "${jsDir}/${file.name}")
if (file.name.contains(".r")) ant.move(file: "${rDir}", tofile: "${rDir}/${file.name}")
}
}
//TODO: Delete temp directory?
}
}
}
test.testLogging.exceptionFormat = 'full'