Skip to content

Commit

Permalink
Fix issue with modrinth version being set too early
Browse files Browse the repository at this point in the history
  • Loading branch information
OroArmor committed Mar 16, 2023
1 parent 55c3143 commit 8902884
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
}

group = "com.oroarmor"
version = "1.2.2" + (if (System.getenv("GITHUB_RUN_NUMBER") != null) "" else "-local")
version = "1.2.3" + (if (System.getenv("GITHUB_RUN_NUMBER") != null) "" else "-local")

repositories {
mavenCentral()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ public MinecraftPublishingExtension(Project target) {
target.getExtensions().configure(ModrinthExtension.class, conf -> {
conf.getToken().set(System.getenv("MODRINTH_TOKEN"));
conf.getProjectId().set(modrinthId);
conf.getVersionNumber().set(target.getVersion().toString());
conf.getUploadFile().set(modTask);
conf.getGameVersions().set(gameVersions);
target.afterEvaluate(project -> {
conf.getVersionNumber().set(target.getVersion().toString());
conf.getLoaders().addAll(loaders.get().stream().map(String::toLowerCase).toList());
conf.getDependencies().set(
dependencies.stream().map(ModDependency::toModrinthDependency).toList()
Expand Down

0 comments on commit 8902884

Please sign in to comment.