Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
TexBlock committed Sep 15, 2024
1 parent 2bed17f commit 0d1b80a
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 9 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
### Change
- port to neoforge
31 changes: 26 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
plugins {
id "dev.architectury.loom" version "1.7-SNAPSHOT"
id "com.hypherionmc.modutils.modpublisher" version "2.+"
}

sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21

archivesBaseName = project.archives_base_name
base.archivesName = project.archives_base_name
version = project.mod_version
group = project.maven_group

Expand Down Expand Up @@ -40,11 +38,34 @@ tasks.withType(JavaCompile).configureEach {
}

java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21

toolchain.languageVersion = JavaLanguageVersion.of(21)

withSourcesJar()
}

jar {
from("LICENSE") {
rename { "${it}_${project.archivesBaseName}"}
rename { "${it}_${base.getArchivesName()}"}
}
}

publisher {
apiKeys {
modrinth System.getenv("MODRINTH_TOKEN")
curseforge System.getenv("CURSEFORGE_TOKEN")
}

setCurseID("${project.curseforge_id}")
setModrinthID("${project.modrinth_id}")
setVersionType("alpha")
setChangelog(file("CHANGELOG.md").getText("UTF-8"))
setVersion("${project.version}")
setDisplayName("${project.version}")
setGameVersions("1.21", "1.21.1")
setLoaders("neoforge")
setArtifact(remapJar)
addAdditionalFile(sourcesJar)
}
9 changes: 6 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ yarn_mappings=1.21.1+build.3
yarn_patch=1.21+build.4
neoforge_version=21.1.51

mod_version = 0.6.1+1.21
maven_group = io.github.foundationgames
archives_base_name = animatica
mod_version = 0.1.0+1.21
maven_group = org.thinkingstudio
archives_base_name = AnimaticaFoxified

curseforge_id=1103129
modrinth_id=nrSnNUz4

1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ pluginManagement {
maven { url "https://maven.fabricmc.net/" }
maven { url "https://maven.architectury.dev/" }
maven { url "https://maven.neoforged.net/releases/" }
maven { url "https://maven.firstdark.dev/releases/" }
gradlePluginPortal()
}
}
2 changes: 1 addition & 1 deletion src/main/resources/META-INF/neoforge.mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ modId = "animatica"
version = "${version}"
displayName = "AnimaticaFoxified"
displayURL="https://github.com/ThinkingStudios/AnimaticaFoxified" #optional
logoFile="assets/animatica/icon.png" #optional
logoFile="icon.png" #optional
credits="FoundationGames" #optional
authors="TexTrue, ThinkingStudio" #optional
description = '''
Expand Down
Binary file added src/main/resources/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0d1b80a

Please sign in to comment.