Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 37 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
id 'fabric-loom' version '1.0-SNAPSHOT'
id 'maven-publish'
id "com.modrinth.minotaur" version "2.+"
// id "com.matthewprenger.cursegradle" version "1.4.0"
}

sourceCompatibility = JavaVersion.VERSION_17
Expand Down Expand Up @@ -56,7 +57,19 @@ jar {
rename { "${it}_${project.archivesBaseName}"}
}
}


//task publishToModSites {
// BufferedReader br = new BufferedReader(new InputStreamReader(System.in))
// System.out.println("Enter changelog:")
// project.ext.changelog = br.readLine().strip()
// System.out.println(project.ext.changelog)
// publishToModSites.dependsOn modrinth
// publishToModSites.dependsOn curseforge
//}

modrinth {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
token = System.getenv("MODRINTH_TOKEN") // This is the default. Remember to have the MODRINTH_TOKEN environment variable set or else this will fail, or set it to whatever you want - just make sure it stays private!
projectId = project.archivesBaseName // This can be the project ID or the slug. Either will work!
versionNumber = project.version // You don't need to set this manually. Will fail if Modrinth has this version already
Expand All @@ -72,8 +85,31 @@ modrinth {
required.project "cloth-config"
}
syncBodyFrom = rootProject.file("README.md").text
debugMode = true
// debugMode = true
System.out.println("Enter changelog:")
changelog = br.readLine()

}
//
//curseforge {
// apiKey = System.getenv("CURSEFORGE_TOKEN")
// project {
// id = '690221'
// changelog = project.ext.changelog
// releaseType = project.release_type
// addGameVersion "1.19.2"
// addGameVersion "Fabric" //Set Modloader to Fabric
// requiredDependency "modmenu"
// requiredDependency "cloth-config"
// afterEvaluate {
// mainArtifact(remapJar.output)
// uploadTask.dependsOn(remapJar)
// }
// }
// options {
// forgeGradleIntegration = false
// }
//}

// configure the maven publication
publishing {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ org.gradle.jvmargs=-Xmx1G
loader_version=0.14.9

# Mod Properties
mod_version = 0.1.0
mod_version = 0.1.1
maven_group = io.github.pingisfun.hitboxplus
archives_base_name = hitboxplus
release_type = beta
Expand Down