-
Notifications
You must be signed in to change notification settings - Fork 36
/
dependencies.gradle
124 lines (99 loc) · 5.07 KB
/
dependencies.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
/*
* provides a map of centralised dependencies
* dependencies can be accessed by using 'dependency("artifact_id")'
*/
def Dependencies = project.extensions.Dependencies = [:]
ext {
dependency = { String dep ->
if (project.extensions.Dependencies[dep] == null) {
throw new GradleException("no definded dependency for '${dep}'.")
}
return project.extensions.Dependencies[dep]
}
}
configurations.all {
resolutionStrategy {
force 'xerces:xercesImpl:2.9.1'
}
}
/*
* when adding a new dependency use the artifactId as the map key
* e.g. 'org.eclipse.jetty.aggregate:jetty-all-server:8.1.0.v20120127' becomes
* 'jetty-all-server' : 'org.eclipse.jetty.aggregate:jetty-all-server:8.1.0.v20120127'
*/
Dependencies.putAll([
'jetty-server-all-v9' : 'org.eclipse.jetty.aggregate:jetty-all:9.4.6.v20170531',
// 'jetty-server-v9' : 'org.eclipse.jetty:jetty-server:9.4.6.v20170531',
// 'jetty-servlet-v9' : 'org.eclipse.jetty:jetty-servlet:9.4.6.v20170531',
// 'jetty-webapp-v9' : 'org.eclipse.jetty:jetty-webapp:9.4.6.v20170531',
// 'jetty-security-v9' : 'org.eclipse.jetty:jetty-security:9.4.6.v20170531',
// 'jetty-util-v9' : 'org.eclipse.jetty:jetty-util:9.4.6.v20170531',
// 'jetty-plus-v9' : 'org.eclipse.jetty:jetty-plus:9.4.6.v20170531',
// 'jetty-http-v9' : 'org.eclipse.jetty:jetty-http:9.4.6.v20170531',
// 'jetty-jndi-v9' : 'org.eclipse.jetty:jetty-jndi:9.4.6.v20170531',
'jetty-jsp-v9' : 'org.eclipse.jetty:jetty-jsp:9.2.22.v20170606',
// 'jetty-annotations-v9' : 'org.eclipse.jetty:jetty-annotations:9.4.6.v20170531',
// 'jetty-apache-jsp-v9' : 'org.eclipse.jetty:apache-jsp:9.4.6.v20170531',
// 'jetty-apache-jstl-v9' : 'org.eclipse.jetty:apache-jstl:9.4.6.v20170531',
'jetty-jsp-jdt' : 'org.eclipse.jetty.toolchain:jetty-jsp-jdt:2.3.3',
'servlet-api-v3' : 'javax.servlet:javax.servlet-api:3.1.0',
'jta' : 'javax.transaction:jta:1.1',
'xom' : 'com.io7m.xom:xom:1.2.10',
'javassist' : 'org.javassist:javassist:3.21.0-GA',
'gson' : 'com.google.code.gson:gson:2.8.0',
'validation-api' : 'javax.validation:validation-api:1.1.0.Final',
'bval-jsr303' : 'org.apache.bval:bval-jsr303:0.5',
'java-xmlbuilder' : 'com.jamesmurty.utils:java-xmlbuilder:1.1',
'sjsxp' : 'com.sun.xml.stream:sjsxp:1.0.2',
'utils' : 'org.ostermiller:utils:1.07.00',
'jsap' : 'com.martiansoftware:jsap:2.1-brjs-1-6f84c0',
'commons-io' : 'commons-io:commons-io:2.5',
'commons-lang3' : 'org.apache.commons:commons-lang3:3.5',
'commons-codec' : 'commons-codec:commons-codec:1.12',
'commons-fileupload' : 'commons-fileupload:commons-fileupload:1.4',
'httpclient' : 'org.apache.httpcomponents:httpclient:4.5.7',
'httpcore' : 'org.apache.httpcomponents:httpcore:4.4.6',
'httpmime' : 'org.apache.httpcomponents:httpmime:4.5.3',
'fluent-hc' : 'org.apache.httpcomponents:fluent-hc:4.5.7',
'selenium-java' : 'org.seleniumhq.selenium:selenium-java:3.4.0',
'guava' : 'com.google.guava:guava:27.0.1-jre',
'slf4j-api' : 'org.slf4j:slf4j-api:1.7.23',
'slf4j-log4j12' : 'org.slf4j:slf4j-log4j12:1.7.23',
'yamlbeans' : 'com.esotericsoftware.yamlbeans:yamlbeans:1.09',
'ant' : 'org.apache.ant:ant:1.10.1',
'ant-junit' : 'org.apache.ant:ant-junit:1.10.1',
'xalan' : 'xalan:xalan:2.7.2',
'junit' : 'junit:junit:4.12',
'xmlunit' : 'xmlunit:xmlunit:1.6',
'jmock-junit4' : 'org.jmock:jmock-junit4:2.8.2',
'jmock' : 'org.jmock:jmock:2.8.2',
'mockito-core' : 'org.mockito:mockito-core:1.10.19',
'jetty-servlet-tester' : 'org.eclipse.jetty:jetty-servlet-tester:8.2.0.v20160908',
'jyaml' : 'org.jyaml:jyaml:1.3',
'hamcrest-all' : 'org.hamcrest:hamcrest-all:1.3',
'woodstox-core-asl' : 'org.codehaus.woodstox:woodstox-core-asl:4.4.1',
'stax2-api' : 'org.codehaus.woodstox:stax2-api:3.1.4',
'msv-core' : 'net.java.dev.msv:msv-core:2013.6.1',
'trang' : 'com.thaiopensource:trang:20091111',
'cobertura' : 'net.sourceforge.cobertura:cobertura:2.1.1',
'JsTestDriver' : 'com.google:JsTestDriver:1.3.3d-brjs3',
'ecj' : 'org.eclipse.jdt.core.compiler:ecj:4.6.1',
'closure-compiler' : 'org.bladerunnerjs:brjs-closure-compiler:v20150901-59e6ea3',
'jericho-html' : 'net.htmlparser.jericho:jericho-html:3.4',
'wagon-http' : 'org.apache.maven.wagon:wagon-http:2.10',
'apache-tomcat' : 'org.apache:apache-tomcat:6.0.35@zip',
'db-derby' : 'db-derby:db-derby:10.9.1.0@zip',
'saxon-dom' : 'net.sf.saxon:saxon-dom:8.7',
'curl-win32' : 'util:curl-win32:7.33.0'
]);
/* browsers are defined as browserName+version because we probably want to use multiple versions */
def os = org.bladerunnerjs.OSCalculator.getOS()
Dependencies.putAll([
'chrome' : 'browser:chrome-'+os+':44.0.2358.0@zip',
'firefox' : 'browser:firefox-'+os+':38.0@zip',
'firefox-webdriver' : 'browser:firefox-'+os+':12.0@zip',
'phantomjs' : 'browser:phantomjs-'+os+':1.9.7@zip',
'phantomjs_windows' : 'browser:phantomjs-win32:1.9.7@zip',
'phantomjs_mac' : 'browser:phantomjs-mac:1.9.7@zip',
'phantomjs_linux' : 'browser:phantomjs-linux:1.9.7@zip',
])