-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.gradle
85 lines (72 loc) · 2.09 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
/*
* Copyright (c) 2009 - 2021, DHBW Mannheim - TIGERs Mannheim
*/
plugins {
id "com.github.breadmoirai.github-release" version "2.4.1"
id 'idea'
id 'sumatra.java'
id 'sumatra.jib'
id 'sumatra.application'
}
dependencies {
implementation project(':autoreferee-gui')
implementation project(':common-gui')
implementation project(':common-gui-config')
implementation project(':sumatra-model')
implementation project(':sumatra-gui-log')
implementation project(':sumatra-gui-referee')
implementation project(':sumatra-gui-replay')
implementation project(':sumatra-gui-visualizer')
implementation project(':moduli-record')
implementation project(':moduli-autoreferee')
runtimeOnly project(':moduli-autoreferee-ci')
implementation project(':moduli-cam')
implementation project(':moduli-referee')
implementation project(':moduli-wp')
implementation(libs.com.github.TIGERs.mannheim.moduli)
implementation(libs.com.github.TIGERs.mannheim.infonode)
implementation(libs.org.apache.logging.log4j.log4j.api)
runtimeOnly(libs.org.apache.logging.log4j.log4j.core)
implementation(libs.commons.cli)
}
application {
mainClass.set('edu.tigers.autoref.AutoReferee')
}
jib {
to {
image = "registry.hub.docker.com/tigersmannheim/auto-referee:latest"
auth {
username = System.getenv("DOCKER_HUB_USERNAME") ?: ""
password = System.getenv("DOCKER_HUB_PASSWORD") ?: ""
}
}
extraDirectories {
paths {
path {
from = file('config')
into = '/config'
}
path {
from = file('src/main/jib')
into = '/'
}
}
}
}
distributions {
main {
contents {
from('config') {
into 'config'
}
}
}
}
githubRelease {
token System.getenv("GITHUB_TOKEN") ?: ""
owner "TIGERs-Mannheim"
targetCommitish.set("master")
repo.set("AutoReferee")
releaseAssets distZip
tagName.set(project.version.toString())
}