-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
107 lines (92 loc) · 3.01 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
plugins {
id 'java'
id 'idea'
id "maven-publish"
id 'com.github.johnrengelman.shadow' version '7.1.2'
}
group 'at.ac.tuwien.ifs.sge'
version '1.0.4'
sourceCompatibility = 1.11
repositories {
mavenCentral()
maven {
url = uri("https://maven.pkg.github.com/Entze/Strategy-Game-Engine")
credentials {
username = project.findProperty("gpr.user") ?: findProperty("github.actor") ?: System.getenv("GITHUB_ACTOR")
password = project.findProperty("gpr.key") ?: findProperty("github.token") ?: System.getenv("GITHUB_TOKEN")
}
}
}
dependencies {
implementation("org.jgrapht:jgrapht-core:1.5.1")
implementation("com.google.guava:guava:31.1-jre")
implementation("org.yaml:snakeyaml:1.29")
implementation("info.picocli:picocli:4.7.0")
implementation("at.ac.tuwien.ifs.sge:sge:1.0.4")
testImplementation("junit:junit:4.13.2")
testImplementation("com.pholser:junit-quickcheck-core:1.0")
testImplementation("com.pholser:junit-quickcheck-generators:1.0")
}
jar {
manifest {
attributes("Sge-Type": "game",
"Game-Class": "at.ac.tuwien.ifs.sge.game.risk.board.Risk",
"Main-Class": "at.ac.tuwien.ifs.sge.engine.risk.RiskMapGenerator")
}
}
java {
withJavadocJar()
withSourcesJar()
}
shadowJar {
archiveClassifier.set('exe');
}
javadoc {
if (JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}
publishing {
publications {
mavenPublication(MavenPublication) {
from components.java
pom {
name = project.getName()
description = "A clone of the game \"Risk\" implemented in sge."
licenses {
license {
name = "GNU Affero General Public License version 3"
url = "https://opensource.org/licenses/agpl-v3.html"
distribution = "repo"
}
}
developers {
developer {
id = "entze"
name = "Lukas Grassauer"
email = "[email protected]"
}
}
scm {
url = "https://github.com/Entze/sge-risk"
connection = "https://github.com/Entze/sge-risk.git"
developerConnection = "[email protected]:Entze/sge-risk.git"
}
}
}
}
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/Entze/sge-risk")
credentials {
username = project.findProperty("gpr.user") ?: findProperty("github.actor") ?: System.getenv("GITHUB_ACTOR")
password = project.findProperty("gpr.key") ?: findProperty("github.token") ?: System.getenv("GITHUB_TOKEN")
}
}
}
}
test {
useJUnit()
maxHeapSize = '1G'
}