-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
68 lines (62 loc) · 2.01 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
/*
* Copyright (C) 2024 Lorenz Wrobel. - All Rights Reserved
*
* Unauthorized copying or redistribution of this file in source and binary forms via any medium
* is strictly prohibited.
*/
plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.android.library) apply false
alias(libs.plugins.android.kotlin) apply false
alias(libs.plugins.shadow) apply false
alias(libs.plugins.launch4j) apply false
}
tasks.register("generateRunDirectory") {
doLast {
mkdir("run")
}
}
allprojects {
group = "de.dasbabypixel.gamelauncher"
version = "0.0.2"
pluginManager.withPlugin("java") {
tasks.withType<Javadoc>().configureEach {
options.encoding = "UTF-8"
}
extensions.getByType<JavaPluginExtension>().apply {
toolchain.languageVersion = JavaLanguageVersion.of(11)
pluginManager.withPlugin("maven-publish") {
withSourcesJar()
withJavadocJar()
}
}
}
pluginManager.withPlugin("maven-publish") {
extensions.getByType<PublishingExtension>().apply {
repositories {
maven {
name = "DarkCube"
credentials(PasswordCredentials::class)
url = uri("https://nexus.darkcube.eu/repository/dasbabypixel/")
}
}
}
}
pluginManager.withPlugin(rootProject.libs.plugins.shadow.get().pluginId) {
components.forEach {
if (it is AdhocComponentWithVariants) {
it.withVariantsFromConfiguration(configurations.getByName("shadowRuntimeElements")) {
skip()
}
}
}
}
tasks {
withType<JavaCompile>().configureEach {
options.compilerArgs.addAll(listOf("-Xlint:deprecation", "-Xlint:unchecked"))
}
withType<JavaExec>().configureEach {
notCompatibleWithConfigurationCache("Created by IntelliJ")
}
}
}