-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
91 lines (79 loc) · 2.31 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
plugins {
id 'java'
id 'java-library'
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()
}
dependencies {
implementation("info.picocli:picocli:4.7.0")
implementation("com.google.guava:guava:31.1-jre")
testImplementation("junit:junit:4.13.2")
}
jar {
manifest {
attributes("Main-Class": "at.ac.tuwien.ifs.sge.engine.cli.SgeCommand")
}
}
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 = "sge"
description = "The core engine library, needed to implement games and agents."
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/strategy-game-engine"
connection = "https://github.com/Entze/strategy-game-engine.git"
developerConnection = "[email protected]:Entze/strategy-game-engine.git"
}
}
}
}
repositories {
maven {
name = "GitHubPackages"
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")
}
}
}
}
test {
useJUnit()
maxHeapSize = '1G'
}