-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
42 lines (36 loc) · 1.19 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
plugins {
id "java"
id "com.github.johnrengelman.shadow" version "7.1.2"
}
group = 'pl.kosma'
archivesBaseName = "${project.library_name}"
version = "${project.library_version}+${project.release_date}"
java {
toolchain.languageVersion = JavaLanguageVersion.of(8)
}
repositories {
mavenCentral()
}
dependencies {
implementation "${project.library_maven_name}:${project.library_version}"
implementation(project(":forge-1.12")) { transitive = false }
implementation(project(":forge-1.13")) { transitive = false }
implementation(project(":forge-1.17")) { transitive = false }
implementation(project(":spigot")) { transitive = false }
}
processResources {
filesMatching(['fabric.mod.json', 'plugin.yml', 'mcmod.info', 'META-INF/mods.toml', 'pack.mcmeta']) {
expand project.properties
}
}
shadowJar {
dependencies {
exclude("META-INF/versions/**") // can't have any classes higher than Java 8
include(dependency("${project.library_maven_name}:.*"))
include(project(":forge-1.12"))
include(project(":forge-1.13"))
include(project(":forge-1.17"))
include(project(":spigot"))
}
}
jar.finalizedBy('shadowJar')