Skip to content

Commit

Permalink
Hotfix missing classes
Browse files Browse the repository at this point in the history
  • Loading branch information
Erdragh committed May 31, 2024
1 parent e2a3d28 commit 93f0c1e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 1.5.1
Hotfix for Versions 1.18.2 - 1.20.1 fixing missing classes

# 1.5.0
- Introduce webhook chat sync, allowing for user imitation

Expand Down
11 changes: 10 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import java.text.SimpleDateFormat
import java.util.*
import dev.architectury.plugin.ArchitectPluginExtension
import net.fabricmc.loom.api.LoomGradleExtensionAPI
import net.fabricmc.loom.task.RemapJarTask

plugins {
// This is an Architectury repository, as such the relevant plugins are needed
Expand Down Expand Up @@ -240,7 +241,7 @@ subprojects {
tasks.named<ShadowJar>("shadowJar") {
// The shadowBotDep configuration was explicitly made to be shaded in, this is where that happens
configurations.clear()
configurations = listOf(shadowBotDep)
configurations = listOf(shadowBotDep, shadowCommon)

// This transforms the service files to make relocated Exposed work (see: https://github.com/JetBrains/Exposed/issues/1353)
mergeServiceFiles()
Expand Down Expand Up @@ -273,6 +274,14 @@ subprojects {
exclude("**/org/jetbrains/annotations/*")
exclude("**/org/intellij/**")
}

tasks.named<RemapJarTask>("remapJar") {
inputFile.set(tasks.named<ShadowJar>("shadowJar").get().archiveFile)
dependsOn("shadowJar")
// Results in the remapped jar not having any extra bit in
// its file name, identifying it as the main distribution
archiveClassifier.set(null as String?)
}
}

// Disables Gradle's custom module metadata from being published to maven. The
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ license=MIT
title=AstralBot
description=Discord Bot and Minecraft Mod in one bundle.
credits=Erdragh
version=1.5.0
version=1.5.1
group=dev.erdragh.astralbot
modId=astralbot
modAuthor=Erdragh
Expand Down

0 comments on commit 93f0c1e

Please sign in to comment.