-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
115 lines (93 loc) · 3.07 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
description = "The gradle build for the JassTheRipper bot"
version = "1.0.0"
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'application'
mainClassName = "to.joeli.jass.Application"
def javaVersion = 1.8 // We have to use 1.8 because of the server
def jerseyVersion = 2.29
sourceSets {
main {
resources {
exclude 'episodes'
}
}
}
compileJava {
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
}
task(runExperiment, dependsOn: 'classes', type: JavaExec) {
main = 'to.joeli.jass.client.strategy.training.Arena'
classpath = sourceSets.main.runtimeClasspath
args 'CollectDataSet' // Retrieve with args[0]
systemProperty 'simple.message', 'Hello ' // Retrieve with System.getProperty("simple.message")
}
task(startServer, dependsOn: 'classes', type: JavaExec) {
main = 'to.joeli.jass.client.rest.Server'
classpath = sourceSets.main.runtimeClasspath
}
repositories {
mavenCentral()
}
dependencies {
// Websocket Communication
compile 'org.eclipse.jetty.websocket:websocket-client:9.3.4.RC0'
compile 'com.fasterxml.jackson.core:jackson-databind:2.10.0'
// Logging
compile 'org.slf4j:slf4j-api:1.7.12'
compile 'ch.qos.logback:logback-classic:1.1.3'
// Tensorflow
compile "org.tensorflow:tensorflow:1.13.1" // 1.14.0 does somehow not work!
// CBOR
compile 'com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.9.10'
// JSON
compile 'com.google.code.gson:gson:2.8.5'
// Utilities
compile 'com.google.guava:guava:27.1-jre'
compile 'org.apache.commons:commons-lang3:3.9'
compile 'commons-io:commons-io:2.6'
// REST Endpoint
compile "org.glassfish.jersey.containers:jersey-container-servlet:$jerseyVersion"
compile "org.glassfish.jersey.core:jersey-client:$jerseyVersion"
compile "org.glassfish.jersey.media:jersey-media-json-jackson:$jerseyVersion"
compile "org.glassfish.jersey.containers:jersey-container-grizzly2-http:$jerseyVersion"
compile "org.glassfish.jersey.inject:jersey-hk2:$jerseyVersion"
// Automated Benchmarks
testCompile 'org.seleniumhq.selenium:selenium-java:3.141.59'
// JSON Interpretation
testCompile 'com.shazam:shazamcrest:0.11'
// Micro Benchmarks
testCompile 'org.openjdk.jmh:jmh-core:1.21'
testCompile 'org.openjdk.jmh:jmh-generator-annprocess:1.21'
// Tests
testCompile 'junit:junit:4.12'
testCompile 'org.hamcrest:hamcrest-all:1.3'
testCompile 'org.mockito:mockito-core:1.10.19'
testCompile 'com.pholser:junit-quickcheck-core:0.5-alpha-3'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
}
run {
if (project.hasProperty("myargs")) {
args(myargs.split(','))
}
}
buildscript {
ext.kotlin_version = '1.3.41'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
compileKotlin {
kotlinOptions {
jvmTarget = javaVersion
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = javaVersion
}
}