-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
66 lines (57 loc) · 1.9 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
apply plugin: 'java'
apply plugin: 'application'
sourceCompatibility = 1.5
repositories {
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.+'
compile group: 'com.rabbitmq', name: 'amqp-client', version: '3.4.+'
compile group: 'org.apache.httpcomponents' , name: 'httpmime' , version: '4.+'
compile group: 'net.htmlparser.jericho', name: 'jericho-html', version: '3.+'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.5.+'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: '2.5.+'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.5.+'
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.+'
compile group: 'ch.qos.logback', name: 'logback-classic', version: '1.+'
compile group: 'org.apache.commons', name: 'commons-exec', version: '1.+'
}
mainClassName = "team.dhuacm.RigidJudge.main.RigidJudge"
jar {
manifest {
attributes 'Main-Class': 'team.dhuacm.RigidJudge.main.RigidJudge'
}
}
distZip {
into(project.name + "/bin") {
from '.'
include 'configs/*'
include 'configs/local/*'
include 'configs/remote/*'
include 'configs/remote/OJProperty/*'
include 'sandbox/*'
}
}
distTar {
compression = Compression.GZIP
extension = "tar.gz"
into(project.name + "/bin") {
from '.'
include 'configs/*'
include 'configs/local/*'
include 'configs/remote/*'
include 'configs/remote/OJProperty/*'
include 'sandbox/*'
}
}
task generateSandbox {
doFirst {
def script = "make -C sandbox/ clean all".execute()
script.in.eachLine {line -> println line}
script.err.eachLine {line -> println "ERROR: " + line}
script.waitFor()
}
}
gradle.projectsEvaluated {
compileJava.dependsOn(generateSandbox)
}