-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
63 lines (56 loc) · 1.61 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
plugins {
id "com.github.johnrengelman.shadow" version "5.0.0"
id "java"
}
repositories {
maven { url "http://files.basex.org/maven" }
maven { url "http://xqj.net/maven" }
mavenCentral()
}
jar {
manifest {
attributes 'Main-Class': 'org.basex.BaseXHTTP'
}
}
def jettyVersion = '9.4.12.v20180830'
dependencies {
runtime "org.basex:basex-api:9.1.2"
runtime "org.eclipse.jetty:jetty-webapp:${jettyVersion}"
runtime "jp.sourceforge.igo:igo:0.4.3"
runtime "org.apache:lucene-stemmers:3.4.0"
runtime "org.ccil.cowan.tagsoup:tagsoup:1.2.1"
runtime "xml-resolver:xml-resolver:1.2"
runtime("com.thaiopensource:jing:20091111") {
exclude group: 'xerces', module: 'xercesImpl'
exclude group: 'xml-apis', module: 'xml-apis'
exclude group: 'net.sf.saxon', module: 'saxon'
exclude group: 'isorelax', module: 'isorelax'
}
runtime "net.sf.saxon:Saxon-HE:9.9.1-2"
}
task http(type: JavaExec) {
description "BaseX HTTP server"
group "XML"
classpath configurations.runtime
standardInput = System.in
main = "org.basex.BaseXHTTP"
}
task client(type: JavaExec) {
description "BaseX console"
group "XML"
classpath configurations.runtime
standardInput = System.in
main = "org.basex.BaseXClient"
}
task gui {
description "BaseX GUI"
group "XML"
doLast {
ant.java(
fork: true,
spawn: true,
classpath: configurations.runtime.asPath,
classname: "org.basex.BaseXGUI",
clonevm: true)
}
}