Skip to content

Commit 0bf4ab7

Browse files
author
PingIsFun
authored
Merge pull request #4 from PingIsFun/auto-upload
Add upload script for modridh
2 parents e8190a6 + 2bbe7fe commit 0bf4ab7

2 files changed

Lines changed: 38 additions & 2 deletions

File tree

build.gradle

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ plugins {
22
id 'fabric-loom' version '1.0-SNAPSHOT'
33
id 'maven-publish'
44
id "com.modrinth.minotaur" version "2.+"
5+
// id "com.matthewprenger.cursegradle" version "1.4.0"
56
}
67

78
sourceCompatibility = JavaVersion.VERSION_17
@@ -56,7 +57,19 @@ jar {
5657
rename { "${it}_${project.archivesBaseName}"}
5758
}
5859
}
60+
61+
62+
//task publishToModSites {
63+
// BufferedReader br = new BufferedReader(new InputStreamReader(System.in))
64+
// System.out.println("Enter changelog:")
65+
// project.ext.changelog = br.readLine().strip()
66+
// System.out.println(project.ext.changelog)
67+
// publishToModSites.dependsOn modrinth
68+
// publishToModSites.dependsOn curseforge
69+
//}
70+
5971
modrinth {
72+
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
6073
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!
6174
projectId = project.archivesBaseName // This can be the project ID or the slug. Either will work!
6275
versionNumber = project.version // You don't need to set this manually. Will fail if Modrinth has this version already
@@ -72,8 +85,31 @@ modrinth {
7285
required.project "cloth-config"
7386
}
7487
syncBodyFrom = rootProject.file("README.md").text
75-
debugMode = true
88+
// debugMode = true
89+
System.out.println("Enter changelog:")
90+
changelog = br.readLine()
91+
7692
}
93+
//
94+
//curseforge {
95+
// apiKey = System.getenv("CURSEFORGE_TOKEN")
96+
// project {
97+
// id = '690221'
98+
// changelog = project.ext.changelog
99+
// releaseType = project.release_type
100+
// addGameVersion "1.19.2"
101+
// addGameVersion "Fabric" //Set Modloader to Fabric
102+
// requiredDependency "modmenu"
103+
// requiredDependency "cloth-config"
104+
// afterEvaluate {
105+
// mainArtifact(remapJar.output)
106+
// uploadTask.dependsOn(remapJar)
107+
// }
108+
// }
109+
// options {
110+
// forgeGradleIntegration = false
111+
// }
112+
//}
77113

78114
// configure the maven publication
79115
publishing {

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ org.gradle.jvmargs=-Xmx1G
88
loader_version=0.14.9
99

1010
# Mod Properties
11-
mod_version = 0.1.0
11+
mod_version = 0.1.1
1212
maven_group = io.github.pingisfun.hitboxplus
1313
archives_base_name = hitboxplus
1414
release_type = beta

0 commit comments

Comments
 (0)