-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
58 lines (49 loc) · 1.47 KB
/
build.gradle
File metadata and controls
58 lines (49 loc) · 1.47 KB
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
plugins {
id "java-gradle-plugin"
id "groovy"
id "com.github.johnrengelman.shadow" version "8.1.1"
id "com.gradle.plugin-publish" version "1.2.1"
}
group "nl.elec332.gradle.minecraft"
version "1.2.2"
java {
sourceCompatibility = targetCompatibility = 17
}
repositories {
mavenCentral()
}
configurations {
shadowed
compileOnly.extendsFrom(shadowed)
}
dependencies {
shadowed("com.moandjiezana.toml:toml4j:0.7.2") {
transitive = false
}
shadowed("net.neoforged:srgutils:1.0.0") //Shadow this as well
shadow("org.ow2.asm:asm-commons:9.6") //Not you...
}
javadoc {
options.addStringOption("Xdoclint:none", "-quiet")
}
shadowJar {
enableRelocation true
configurations = [project.configurations.shadowed]
archiveFileName = jar.archiveFileName.get()
archiveClassifier = ""
}
tasks.jar.dependsOn(shadowJar)
tasks.jar.onlyIf {false}
gradlePlugin {
website = "https://github.com/Elecs-Mods/GradleModDev"
vcsUrl = "https://github.com/Elecs-Mods/GradleModDev.git"
plugins {
settings {
id = "nl.elec332.gradle.minecraft.moddev"
implementationClass = "nl.elec332.gradle.minecraft.moddev.SettingsPlugin"
displayName = "Gradle Minecraft Mod Development Plugin"
description = "A Gradle plugin to simplify development of (multi-loader) Minecraft Mods"
tags.addAll("java", "mod", "minecraft", "forge" ,"fabric", "quilt", "neo", "neoforge")
}
}
}