-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
131 lines (105 loc) · 2.94 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
import net.fabricmc.loom.task.RemapJarTask
plugins {
id 'org.quiltmc.loom' version '1.6.+'
id 'io.github.ladysnake.chenille' version '0.13.1'
id 'maven-publish'
}
archivesBaseName = project.archives_base_name
version = project.mod_version
group = project.maven_group
sourceSets {
dummy
}
chenille {
configureTestmod {
withBaseTestRuns()
}
license = 'LGPL'
javaVersion = 21
}
repositories {
mavenCentral()
mavenLocal()
chenille.repositories {
modrinth()
ladysnake()
lucko()
jitpack()
terraformers()
shedaniel()
}
maven {
name = 'Quilt Snapshots'
url = 'https://maven.quiltmc.org/repository/snapshot'
}
maven {
url = "https://maven.siphalor.de/"
content {
includeGroup 'de.siphalor'
}
}
}
dependencies {
// To change the versions see the gradle.properties file
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "org.quiltmc:quilt-mappings:${minecraft_version}+build.${quilt_mappings}:intermediary-v2"
modImplementation "org.quiltmc:quilt-loader:${project.loader_version}"
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_api_version}"
modIncludeImplementation ("org.ladysnake.cardinal-components-api:cardinal-components-base:${cca_version}") { transitive = false }
modIncludeImplementation ("org.ladysnake.cardinal-components-api:cardinal-components-entity:${cca_version}") { transitive = false }
modIncludeImplementation "me.lucko:fabric-permissions-api:${fpa_version}"
compileOnly "com.demonwav.mcdev:annotations:1.0"
modCompileOnly "maven.modrinth:backslot:${backslot_version}" // not updated yet
modLocalRuntime ("me.shedaniel.cloth:cloth-config-fabric:${cloth_config_version}") { transitive = false }
modLocalRuntime ("com.terraformersmc:modmenu:${modmenu_version}") { transitive = false }
modLocalImplementation("org.ladysnake:elmendorf:${elmendorf_version}") { transitive = false }
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.2'
testImplementation project(":junit-loader")
annotationProcessor(sourceSets.dummy.output)
}
test {
useJUnitPlatform()
maxHeapSize = '1G'
}
processResources {
inputs.property "version", project.version
filesMatching("quilt.mod.json") {
expand "version": project.version
}
}
java {
withSourcesJar()
}
jar {
from("COPYING.LESSER") {
rename { "LICENSE_${project.archivesBaseName}"}
}
}
remapJar {
addNestedDependencies.set(false)
}
tasks.register("standaloneJar", Jar) {
from sourceSets.main.output
archiveClassifier.set('standalone-dev')
}
tasks.register("remapStandaloneJar", RemapJarTask) {
dependsOn(project.standaloneJar)
archiveClassifier.set('standalone')
inputFile.set(standaloneJar.archiveFile.get())
addNestedDependencies.set(true)
}
tasks.named("assemble") {
dependsOn(remapStandaloneJar)
}
chenille {
configurePublishing {
mainArtifact = remapStandaloneJar.archiveFile
withLadysnakeMaven()
withCurseforgeRelease()
withModrinthRelease()
withGithubRelease()
}
}
modrinth {
loaders = ['quilt']
}