-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle.kts
60 lines (47 loc) · 1.2 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
import java.nio.charset.StandardCharsets
plugins {
java
id("lol.bai.explosion") version "0.1.0" apply false
id("me.modmuss50.mod-publish-plugin") version "0.4.5" apply false
}
group = "lol.bai.megane"
version = System.getenv("MOD_VERSION") ?: "999999-local"
rootProject.initializeDependencies()
allprojects {
apply(plugin = "java")
version = rootProject.version
group = rootProject.group
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
withSourcesJar()
}
tasks.withType<JavaCompile> {
options.encoding = StandardCharsets.UTF_8.name()
options.release.set(17)
}
repositories {
mavenCentral()
badasintended()
cursemaven()
modrinth()
mavenLocal()
}
}
sourceSets.configureEach {
java.setSrcDirs(emptyList<Any>())
resources.setSrcDirs(emptyList<Any>())
}
subprojects {
base {
archivesName.set("megane-${project.name}")
}
sourceSets {
main {
resources.srcDir(rootProject.file("src/main/resources"))
}
}
}
tasks {
val fetchLatestVersions by creating(FetchLatestVersionsTask::class)
}