generated from cocona20xx/quilt-template-mod-gradle_properties
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
116 lines (98 loc) · 3.82 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
plugins {
id 'maven-publish'
id 'org.quiltmc.loom' version '1.4.+'
}
archivesBaseName = project.archives_base_name
version = project.version
group = project.maven_group
repositories {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
content { includeGroup "maven.modrinth" }
}
maven {
name = 'Quilt Snapshot'
url = 'https://maven.quiltmc.org/repository/snapshot'
}
maven { url 'https://masa.dy.fi/maven' }
maven { url "https://jitpack.io" }
maven {
name = 'Ladysnake Mods'
url = 'https://maven.ladysnake.org/releases'
}
maven { url 'https://dl.cloudsmith.io/public/geckolib3/geckolib/maven/' }
mavenCentral()
}
// All dependency versions are declared in the gradle.properties file
dependencies {
minecraft "com.mojang:minecraft:${minecraft_version}"
mappings "org.quiltmc:quilt-mappings:${minecraft_version}+build.${project.quilt_mappings_version}:intermediary-v2"
modImplementation "org.quiltmc:quilt-loader:${project.quilt_loader_version}"
modImplementation "org.quiltmc.quilted-fabric-api:quilted-fabric-api:${quilted_fabric_api_version}-${minecraft_version}"
modImplementation include ("dev.onyxstudios.cardinal-components-api:cardinal-components-base:${cca_version}") {
exclude(group: "net.fabricmc")
exclude(group: "net.fabricmc.fabric-api")
}
modImplementation include ("dev.onyxstudios.cardinal-components-api:cardinal-components-entity:${cca_version}") {
exclude(group: "net.fabricmc")
exclude(group: "net.fabricmc.fabric-api")
}
modImplementation include("maven.modrinth:midnightlib:$midnightlib_version") { transitive=false }
modRuntimeOnly ("carpet:fabric-carpet:${project.minecraft_version}-${project.carpet_core_version}") { transitive=false }
modRuntimeOnly("maven.modrinth:ears:1.4.6+fabric-1.19") { transitive=false }
modCompileOnly("maven.modrinth:ears:1.4.6+fabric-1.19") { transitive=false }
modImplementation("com.github.Chocohead:Fabric-ASM:v2.3") { transitive=false }
// modCompileOnly("software.bernie.geckolib:geckolib-quilt-1.19:3.1.41") {
// exclude group: 'org.quiltmc.qsl'
//}
// modImplementation include ("com.github.LlamaLad7.MixinExtras:mixinextras-fabric:0.2.0-beta.6")
// annotationProcessor "com.github.LlamaLad7.MixinExtras:mixinextras-fabric:0.2.0-beta.6"
modImplementation("maven.modrinth:pehkui:${project.pehkui_version}") { transitive=false }
modImplementation("com.github.Virtuoel:KanosConfig:0.4.0") { transitive=false }
implementation include ('org.reflections:reflections:0.10.2') { transitive=false }
}
loom {
accessWidenerPath = file("src/main/resources/vigorem.accesswidener")
}
processResources {
inputs.property "version", version
filesMatching('quilt.mod.json') {
expand "version": version
}
}
tasks.withType(JavaCompile).configureEach {
it.options.encoding = "UTF-8"
// Minecraft 1.18 (1.18-pre2) upwards uses Java 17.
it.options.release = 17
}
java {
// Still required by IDEs such as Eclipse and Visual Studio Code
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
// 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()
// If this mod is going to be a library, then it should also generate Javadocs in order to aid with developement.
// Uncomment this line to generate them.
// withJavadocJar()
}
// If you plan to use a different file for the license, don't forget to change the file name here!
jar {
from("LICENSE") {
rename { "${it}_${archivesBaseName}" }
}
}
// Configure the maven publication
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
group "com.github.Arathain"
}
}
// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
repositories {
mavenLocal()
}
}