diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..71267ac --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,2 @@ +### Change +- port to neoforge \ No newline at end of file diff --git a/build.gradle b/build.gradle index f3cb9cf..b95695e 100644 --- a/build.gradle +++ b/build.gradle @@ -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 @@ -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) +} diff --git a/gradle.properties b/gradle.properties index 668061f..0f47c45 100644 --- a/gradle.properties +++ b/gradle.properties @@ -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 diff --git a/settings.gradle b/settings.gradle index 436e1ba..11d851d 100644 --- a/settings.gradle +++ b/settings.gradle @@ -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() } } diff --git a/src/main/resources/META-INF/neoforge.mods.toml b/src/main/resources/META-INF/neoforge.mods.toml index 4e774ba..5d374f0 100644 --- a/src/main/resources/META-INF/neoforge.mods.toml +++ b/src/main/resources/META-INF/neoforge.mods.toml @@ -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 = ''' diff --git a/src/main/resources/icon.png b/src/main/resources/icon.png new file mode 100644 index 0000000..8180812 Binary files /dev/null and b/src/main/resources/icon.png differ