-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
54 lines (41 loc) · 1.15 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
buildscript {
repositories {
jcenter()
}
}
repositories {
addAll(buildscript.repositories)
}
apply plugin: 'java'
apply plugin: 'application'
mainClassName = "gridwars.starter.EmulatorRunner"
sourceCompatibility = JavaVersion.VERSION_11
jar {
from sourceSets.main.java
archiveName = "gridwars-bot.jar"
manifest {
attributes(
// TODO specify the fully qualified class name of your bot here
'Bot-Class-Name': 'gridwars.starter.GluttonBotPRO5_T_tuned2',
)
}
}
task execute(type:JavaExec) {
main = project.hasProperty("mainClass") ? getProperty("mainClass") : "NULL"
classpath = sourceSets.main.runtimeClasspath
}
task scoreboard(type: JavaExec){
main = "gridwars.starter.GridSearch.ScoreboardCalculator"
classpath = sourceSets.main.runtimeClasspath
}
task emulator(type: JavaExec){
main = "gridwars.starter.EmulatorRunner"
classpath = sourceSets.main.runtimeClasspath
}
task gridsearch(type: JavaExec){
main = "gridwars.starter.GridSearch.GridSearch"
classpath = sourceSets.main.runtimeClasspath
}
dependencies {
implementation fileTree(dir: 'lib')
}