-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
76 lines (63 loc) · 1.67 KB
/
build.gradle.kts
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
import org.jlleitschuh.gradle.ktlint.reporter.ReporterType
/*
* This file was generated by the Gradle 'init' task.
*/
plugins {
application
`maven-publish`
signing
kotlin("jvm") version "1.9.22"
id("org.jlleitschuh.gradle.ktlint") version "11.6.1"
}
group = "org.openbase"
description = "PlanetSudo is a reactive multi agent simulation game. This package can be used to prototype the artificial intelligence for a new team."
repositories {
mavenLocal()
mavenCentral()
maven {
url = uri("https://oss.sonatype.org/content/repositories/snapshots/")
}
}
dependencies {
implementation(libs.org.openbase.planetsudo.engine)
implementation(kotlin("stdlib-jdk8"))
testImplementation(libs.junit.junit)
}
publishing {
publications.create<MavenPublication>("maven") {
from(components["java"])
}
}
tasks.withType<JavaCompile>() {
options.encoding = "UTF-8"
}
tasks.withType<Javadoc>() {
options.encoding = "UTF-8"
}
kotlin {
jvmToolchain(17)
}
tasks.build {
dependsOn("ktlintFormat")
}
tasks.register<Copy>("copyPreCommitHook") {
description = "Copy pre-commit git hook from utils to the .git/hooks folder."
group = "git hooks"
outputs.upToDateWhen { false }
from("$rootDir/.git-utils/pre-commit")
into("$rootDir/.git/hooks/")
}
ktlint {
disabledRules.set(setOf("no-wildcard-imports"))
filter {
exclude { entry -> entry.file.toString().contains("generated") }
}
reporters {
reporter(ReporterType.PLAIN)
reporter(ReporterType.HTML)
reporter(ReporterType.CHECKSTYLE)
}
}
application {
mainClass.set("org.openbase.planetsudo.main.PlanetSudo")
}