Skip to content

Commit 86b01cc

Browse files
Merge branch 'mc/1.21'
2 parents 19bd8b6 + 0af99f6 commit 86b01cc

File tree

18 files changed

+64
-213
lines changed

18 files changed

+64
-213
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Set up JDK 17
1313
uses: actions/setup-java@v2
1414
with:
15-
java-version: '17'
15+
java-version: '21'
1616
distribution: 'temurin'
1717
- name: Setup Gradle
1818
uses: gradle/gradle-build-action@v2

.github/workflows/release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Set up JDK 17
1414
uses: actions/setup-java@v2
1515
with:
16-
java-version: '17'
16+
java-version: '21'
1717
distribution: 'temurin'
1818
- name: Setup Gradle
1919
uses: gradle/gradle-build-action@v2
@@ -23,4 +23,4 @@ jobs:
2323
SAPS_TOKEN: ${{ secrets.SAPS_TOKEN }}
2424
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
2525
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26-
CURSE_TOKEN: ${{ secrets.CURSEFORGE_KEY }}
26+
CURSE_TOKEN: ${{ secrets.CURSE_DEPLOY }}

CHANGELOG.md

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1-
## [84.0.0]
1+
## [21.0.0]
22

33
### Changed
44

5-
- Ported to 1.20.4
5+
- Ported to 1.21
6+
- Switched to using the `Neoforge` version scheme meaning we've switched from 86.0.0 to 21.0.0... Sorry for the confusion... I don't like it either.
7+
8+
## [86.0.0]
9+
10+
### Changed
11+
12+
- Ported to 1.20.6

build.gradle

+16-28
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
plugins {
22
id "architectury-plugin" version "3.4-SNAPSHOT"
3-
id "dev.architectury.loom" version "1.4-SNAPSHOT" apply false
4-
id "me.modmuss50.mod-publish-plugin" version "0.4.5"
3+
id "dev.architectury.loom" version "1.6-SNAPSHOT" apply false
4+
id "me.modmuss50.mod-publish-plugin" version "0.5.1"
5+
id 'pro.mikey.plugins.insaniam' version "0.1-SNAPSHOT"
56
}
67

78
architectury {
@@ -51,35 +52,36 @@ allprojects {
5152

5253
tasks.withType(JavaCompile) {
5354
options.encoding = "UTF-8"
54-
options.release = 17
55+
options.release = 21
5556
}
5657

5758
java {
5859
withSourcesJar()
5960
}
6061
}
6162

63+
def changelogData = insaniamUtils.createChangelog {
64+
file = file('CHANGELOG.md')
65+
versionPattern = ~/## \[[^]]+]/
66+
fallbackValue = "No changelog provided"
67+
version = project.mod_version
68+
}
69+
6270
publishMods {
6371
dryRun = providers.environmentVariable("CURSE_TOKEN").getOrNull() == null
64-
changelog = file("./CHANGELOG.md").text
72+
changelog = changelogData
6573
version = "${mod_version}"
6674
type = STABLE
6775

6876
def fabricOptions = publishOptions {
6977
file = project.provider { project(":fabric").tasks.remapJar }.flatMap { it.archiveFile }
70-
displayName = "[FABRIC][${rootProject.minecraft_version}] ${project.name} ${mod_version}"
78+
displayName = "[FABRIC] ${project.name} ${mod_version}"
7179
modLoaders.add("fabric")
7280
}
7381

7482
def neoforgeOptions = publishOptions {
7583
file = project.provider { project(":neoforge").tasks.remapJar }.flatMap { it.archiveFile }
76-
displayName = "[NEOFORGE][${rootProject.minecraft_version}] ${project.name} ${mod_version}"
77-
modLoaders.add("forge")
78-
}
79-
80-
def forgeOptions = publishOptions {
81-
file = project.provider { project(":forge").tasks.remapJar }.flatMap { it.archiveFile }
82-
displayName = "[FORGE][${rootProject.minecraft_version}] ${project.name} ${mod_version}"
84+
displayName = "[NEOFORGE] ${project.name} ${mod_version}"
8385
modLoaders.add("neoforge")
8486
}
8587

@@ -110,13 +112,6 @@ publishMods {
110112
}
111113
}
112114

113-
curseforge("curseforgeForge") {
114-
from(curseForgeOptions, forgeOptions)
115-
requires {
116-
slug = "architectury-api"
117-
}
118-
}
119-
120115
modrinth("modrinthFabric") {
121116
from(modrinthOptions, fabricOptions)
122117
requires {
@@ -125,24 +120,17 @@ publishMods {
125120
}
126121
}
127122

128-
modrinth("modrinthForge") {
129-
from(modrinthOptions, neoforgeOptions)
130-
requires {
131-
slug = "architectury-api"
132-
}
133-
}
134123

135124
modrinth("modrinthNeoforge") {
136-
from(modrinthOptions, forgeOptions)
125+
from(modrinthOptions, neoforgeOptions)
137126
requires {
138127
slug = "architectury-api"
139128
}
140129
}
141130

142131
github {
143-
file = project.provider { project(":neoforge").tasks.remapJar }.flatMap { it.archiveFile }
144132
additionalFiles.from project.provider { project(":fabric").tasks.remapJar }.flatMap { it.archiveFile }
145-
additionalFiles.from project.provider { project(":forge").tasks.remapJar }.flatMap { it.archiveFile }
133+
file = project.provider { project(":neoforge").tasks.remapJar }.flatMap { it.archiveFile }
146134

147135
repository = "${project.github_repo}"
148136
accessToken = providers.environmentVariable("GITHUB_TOKEN")

common/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ loom {
99
dependencies {
1010
modImplementation "net.fabricmc:fabric-loader:${rootProject.fabric_loader_version}"
1111

12-
modApi "dev.architectury:architectury:${rootProject.architectury_version}"
12+
modApi "dev.architectury:architectury:${rootProject.architectury_api_version}"
1313
}
1414

1515
publishing {

fabric/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ dependencies {
2323
modImplementation "net.fabricmc:fabric-loader:${rootProject.fabric_loader_version}"
2424
modApi "net.fabricmc.fabric-api:fabric-api:${rootProject.fabric_api_version}"
2525
// Remove the next line if you don't want to depend on the API
26-
modApi "dev.architectury:architectury-fabric:${rootProject.architectury_version}"
26+
modApi "dev.architectury:architectury-fabric:${rootProject.architectury_api_version}"
2727

2828
common(project(path: ":common", configuration: "namedElements")) { transitive false }
2929
shadowCommon(project(path: ":common", configuration: "transformProductionFabric")) { transitive false }

fabric/src/main/resources/fabric.mod.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"description": "Speeds up leaf decay",
77
"authors": ["ErrorMikey"],
88
"contact": {
9-
"homepage": "https://github.com/errormikey/accelerated-decay",
10-
"sources": "https://github.com/errormikey/accelerated-decay"
9+
"homepage": "https://github.com/Nanite/AcceleratedDecay",
10+
"sources": "https://github.com/Nanite/AcceleratedDecay"
1111
},
1212
"license": "GPL3",
1313
"icon": "assets/AcceleratedDecay/icon.png",
@@ -21,7 +21,7 @@
2121
],
2222
"depends": {
2323
"fabric": "*",
24-
"minecraft": ">=1.20.1",
25-
"architectury": ">=9.1.12"
24+
"minecraft": ">=1.21",
25+
"architectury": ">=13.0.0"
2626
}
2727
}

forge/build.gradle

-90
This file was deleted.

forge/gradle.properties

-1
This file was deleted.

forge/src/main/java/pro/mikey/accelerateddecay/forge/AcceleratedDecayForge.java

-14
This file was deleted.

forge/src/main/resources/META-INF/mods.toml

-35
This file was deleted.

forge/src/main/resources/accelerateddecay.mixins.json

-11
This file was deleted.

forge/src/main/resources/pack.mcmeta

-6
This file was deleted.

gradle.properties

+7-8
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
org.gradle.jvmargs=-Xmx2048M
22

3-
minecraft_version=1.20.4
4-
enabled_platforms=fabric,forge,neoforge
3+
minecraft_version=1.21
4+
enabled_platforms=fabric,neoforge
55

66
archives_base_name=accelerated-decay
7-
mod_version=84.0.0
7+
mod_version=21.0.0
88
maven_group=pro.mikey.mods
99

10-
fabric_loader_version=0.15.3
11-
fabric_api_version=0.92.0+1.20.4
12-
forge_version=49.0.12
13-
neoforge_version=20.4.62-beta
10+
fabric_loader_version=0.15.11
11+
fabric_api_version=0.100.1+1.21
12+
neoforge_version=21.0.10-beta
1413

15-
architectury_version=11.0.9
14+
architectury_api_version=13.0.1
1615

1716
curseforge_id=699872
1817
modrinth_id=laX5CckD
+1-1
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-8.5-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

neoforge/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ configurations {
2929
dependencies {
3030
neoForge "net.neoforged:neoforge:${rootProject.neoforge_version}"
3131
// Remove the next line if you don't want to depend on the API
32-
modApi "dev.architectury:architectury-neoforge:${rootProject.architectury_version}"
32+
modApi "dev.architectury:architectury-neoforge:${rootProject.architectury_api_version}"
3333

3434
common(project(path: ":common", configuration: "namedElements")) { transitive false }
3535
shadowCommon(project(path: ":common", configuration: "transformProductionNeoForge")) { transitive = false }
@@ -38,7 +38,7 @@ dependencies {
3838
processResources {
3939
inputs.property "version", project.version
4040

41-
filesMatching("META-INF/mods.toml") {
41+
filesMatching("META-INF/neoforge.mods.toml") {
4242
expand "version": project.version
4343
}
4444
}

0 commit comments

Comments
 (0)