forked from robocode-dev/tank-royale
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
executable file
·45 lines (35 loc) · 1.06 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
// Constants
val releasesPath by extra("public_html/tankroyale/releases")
val sampleBotsReleasePath by extra("$releasesPath/sample-bots")
val guiReleasePath by extra("$releasesPath/gui")
val htmlRoot by extra("~/public_html/tankroyale")
val apiPath by extra("$htmlRoot/api")
@Suppress("DSL_SCOPE_VIOLATION")
plugins {
alias(libs.plugins.kotlin.jvm)
alias(libs.plugins.kotlin.plugin.serialization)
alias(libs.plugins.benmanes.versioning)
}
subprojects {
repositories {
mavenLocal()
mavenCentral()
}
tasks {
withType<KotlinCompile>().configureEach {
kotlinOptions {
jvmTarget = "11"
}
}
// Make sure to replace $version token in version.txt when processing the resources
withType<ProcessResources> {
filesMatching("version.txt") {
expand(mapOf("version" to version))
}
}
withType(Assemble::class) {
dependsOn("licenseFormatMain")
}
}
}