-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle
More file actions
110 lines (92 loc) · 3.15 KB
/
build.gradle
File metadata and controls
110 lines (92 loc) · 3.15 KB
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
buildscript {
ext.ebean_version = "11.11.1"
repositories {
mavenCentral()
}
dependencies {
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.4'
classpath "io.ebean:ebean-gradle-plugin:11.9.1"
}
}
plugins {
id "com.moowork.node" version "1.2.0"
}
apply plugin: 'java'
apply plugin: 'application'
apply plugin: 'idea'
apply plugin: 'maven'
apply plugin: 'com.google.protobuf'
apply plugin: 'io.ebean'
group = 'acmcsus'
version = '2.0'
description = """"""
sourceCompatibility = 1.8
targetCompatibility = 1.8
mainClassName = "acmcsus.debugjudge.Hub"
repositories {
maven { url "http://repo.maven.apache.org/maven2" }
}
dependencies {
compile "io.reactivex.rxjava2:rxjava:2.1.12"
compile "com.google.inject:guice:4.1.0"
compile group: 'org.eclipse.jetty.aggregate', name: 'jetty-all', version: '9.4.8.v20171121'
compile group: 'com.moandjiezana.toml', name: 'toml4j', version: '0.7.2'
compile group: 'com.google.protobuf', name: 'protobuf-gradle-plugin', version: '0.8.4'
compile group: 'com.sparkjava', name: 'spark-core', version:'2.5.5'
compile group: 'javax.validation', name: 'validation-api', version: '2.0.1.Final'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version:'2.8.7'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version:'2.8.7'
compile group: 'com.google.protobuf', name: 'protobuf-java', version:'3.3.1'
compile group: 'org.slf4j', name: 'slf4j-api', version:'1.7.24'
compile group: 'org.slf4j', name: 'slf4j-simple', version:'1.7.24'
compile group: 'org.apache.commons', name: 'commons-csv', version:'1.4'
testCompile group: 'junit', name: 'junit', version:'4.12'
}
protobuf {
protoc {
artifact = 'com.google.protobuf:protoc:3.0.0'
}
generateProtoTasks {
// all() returns the collection of all protoc tasks
all().each { task ->
task.builtins {
// This yields
// "--java_out=example_option1=true,example_option2:/path/to/output"
// on the protoc commandline, which is equivalent to
// "--java_out=/path/to/output --java_opt=example_option1=true,example_option2"
// with the latest version of protoc.
java { }
}
}
}
}
task problemValidatorJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'Problem Validator Jar',
'Implementation-Version': version,
'Main-Class': 'acmcsus.debugjudge.ProblemValidator'
}
baseName = project.name + '-problemvalidator'
doFirst {
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
}
exclude 'META-INF/*.RSA', 'META-INF/*.SF','META-INF/*.DSA'
with jar
}
task hubJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'Main Jar',
'Implementation-Version': version,
'Main-Class': 'acmcsus.debugjudge.Hub'
}
baseName = project.name + '-hub'
doFirst {
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
}
exclude 'META-INF/*.RSA', 'META-INF/*.SF','META-INF/*.DSA'
with jar
}
task runAutoJudge(type: JavaExec) {
classpath sourceSets.main.runtimeClasspath
main = "acmcsus.debugjudge.autojudge.AutoJudgeMain"
}