Skip to content

Commit b5ae43b

Browse files
committed
Bump toolchain to fabric version
1 parent 1890c23 commit b5ae43b

7 files changed

Lines changed: 48 additions & 70 deletions

File tree

build.gradle

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
plugins {
22
id 'maven-publish'
3-
alias libs.plugins.quilt.loom
4-
alias libs.plugins.ploceus
3+
id 'fabric-loom' version '1.3-SNAPSHOT'
4+
id 'ploceus' version '1.3-SNAPSHOT'
55
}
66

7-
archivesBaseName = project.archives_base_name
8-
version = "${project.version}+${libs.versions.minecraft.get()}"
7+
base {
8+
archivesName = project.archives_base_name
9+
}
10+
version = "${project.version}+mc${project.minecraft_version}"
911
group = project.maven_group
1012

1113
repositories {
@@ -19,21 +21,21 @@ repositories {
1921
// All the dependencies are declared at gradle/libs.version.toml and referenced with "libs.<id>"
2022
// See https://docs.gradle.org/current/userguide/platforms.html for information on how version catalogs work.
2123
dependencies {
22-
minecraft libs.minecraft
24+
minecraft "com.mojang:minecraft:${project.minecraft_version}"
2325
mappings loom.layered {
24-
mappings variantOf(libs.feather.mappings) { classifier 'v2' }
25-
ploceus.nestedMappings(it) // remove this line if not using nests
26+
mappings "net.ornithemc:feather:${project.minecraft_version}+build.${project.feather_build}:v2"
27+
addLayer ploceus.nestedMappings() // remove this line if not using nests
2628
}
27-
nests libs.nests // remove this line if not using nests
29+
nests "net.ornithemc:nests:${project.minecraft_version}+build.${project.nests_build}" // remove this line if not using nests
2830

29-
modImplementation libs.quilt.loader
31+
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
3032
}
3133

3234
processResources {
3335
inputs.property 'version', version
3436

35-
filesMatching('quilt.mod.json') {
36-
expand "version": version
37+
filesMatching('fabric.mod.json') {
38+
expand 'version': version
3739
}
3840
}
3941

@@ -59,7 +61,7 @@ java {
5961
// If you plan to use a different file for the license, don't forget to change the file name here!
6062
jar {
6163
from('LICENSE') {
62-
rename { "${it}_${archivesBaseName}" }
64+
rename { "${it}_${base.archivesName.get()}" }
6365
}
6466
}
6567

gradle.properties

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,8 @@ version = 1.0.0
77
maven_group = net.nullapce_mc
88
archives_base_name = skinpatch
99

10-
# Dependencies are managed at gradle/libs.versions.toml
10+
# Dependencies
11+
minecraft_version = 1.7.2
12+
feather_build = 11
13+
nests_build = 1
14+
loader_version = 0.14.21

gradle/libs.versions.toml

Lines changed: 0 additions & 16 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

settings.gradle

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
pluginManagement {
22
repositories {
33
maven {
4-
name = 'Quilt'
5-
url = 'https://maven.quiltmc.org/repository/release'
4+
name = 'Fabric'
5+
url = 'https://maven.fabricmc.net/'
66
}
77
maven {
8-
name = 'Ornithe'
8+
name = 'Ornithe Releases'
99
url = 'https://maven.ornithemc.net/releases'
1010
}
11-
// Currently needed for Intermediary and other temporary dependencies
1211
maven {
13-
name = 'Fabric'
14-
url = 'https://maven.fabricmc.net/'
12+
name = 'Ornithe Snapshots'
13+
url = 'https://maven.ornithemc.net/snapshots'
1514
}
1615
gradlePluginPortal()
1716
}

src/main/resources/fabric.mod.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"schemaVersion": 1,
3+
"id": "skinpatch",
4+
"version": "${version}",
5+
6+
"name": "SkinPatch",
7+
"description": "Mod meant to fix player's skins not showing up in version 1.7",
8+
"authors": [
9+
"SRAZKVT"
10+
],
11+
"contact": {
12+
"homepage": " https://modrinth.com/mod/skinpatch-ornithe",
13+
"issues": "https://github.com/Nullspace-MC/SkinPatch/issues",
14+
"sources": "https://github.com/Nullspace-MC/SkinPatch"
15+
},
16+
17+
"license": "MIT",
18+
19+
"environment": "*",
20+
"mixins": [
21+
"skinfix.mixins.json"
22+
]
23+
}

src/main/resources/quilt.mod.json

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)