-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.gradle
103 lines (86 loc) · 2.79 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
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
plugins {
id 'io.github.ladysnake.chenille' version '0.11.3'
}
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_17
archivesBaseName = project.name
version = project.mod_version
group = project.maven_group
chenille {
configurePublishing {
withLadysnakeMaven()
withCurseforgeRelease()
withGithubRelease()
withModrinthRelease()
}
configureTestmod {
withDependencyConfiguration()
}
javaVersion = 17
license = 'LGPL'
}
processResources {
inputs.property "version", project.version
filesMatching("fabric.mod.json") {
// add mod metadata
expand "version": project.version , //"changelog_url": project.changelog_url,
"curseforge_id": project.curseforge_id, "license": project.license_header,
"mod_name": project.mod_name
}
}
repositories {
maven {
name = "FabricMC"
url = "https://maven.fabricmc.net"
}
maven {
url = 'https://www.cursemaven.com'
content {
includeGroup 'curse.maven'
}
}
maven {
url = 'https://maven.terraformersmc.com/releases'
content {
includeGroup 'com.terraformersmc'
}
}
}
dependencies {
minecraft "com.mojang:minecraft:${minecraft_version}"
mappings "org.quiltmc:quilt-mappings:${minecraft_version}+build.${quilt_mappings}:intermediary-v2"
modImplementation "org.quiltmc:quilt-loader:${project.quilt_loader_version}"
modImplementation "org.quiltmc:qsl:${qsl_version}+${minecraft_version}"
modImplementation "org.quiltmc.quilted-fabric-api:quilted-fabric-api:${quilted_fabric_api_version}-${minecraft_version}"
modRuntimeOnly ("com.terraformersmc:modmenu:${modmenu_version}") {
exclude group: 'net.fabricmc.fabric-api'
exclude group: 'net.fabricmc'
}
// modRuntime "curse.maven:mobz-336554:2826831"
// modRuntime "curse.maven:carpet-349239:3542018"
compileOnly "com.google.code.findbugs:jsr305:3.0.2"
compileOnly "org.jetbrains:annotations:19.0.0"
testmodImplementation sourceSets.main.output
}
java {
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
// if it is present.
// If you remove this line, sources will not be generated.
withSourcesJar()
}
publishing {
publications {
create("relocation", MavenPublication) {
pom {
// Old artifact coordinates
groupId = "io.github.ladysnake"
distributionManagement {
relocation {
// New artifact coordinates
groupId = "org.ladysnake"
message = "groupId has been changed"
}
}
}
}
}
}