🚀 maven publish

This commit is contained in:
2023-08-17 10:51:36 +02:00
parent c531eebc5f
commit ce887a8e6d

View File

@@ -298,7 +298,7 @@ if(System.getenv('MODRINTH_TOKEN') != null) {
modrinth {
token = System.getenv("MODRINTH_TOKEN")
projectId = "trading_station"
projectId = "mechanical_trading_station"
versionNumber = "${mod_version}"
versionName = "${display_name} - v${mod_version} for Minecraft ${minecraft_version}"
versionType = "release" // This is the default -- can also be `beta` or `alpha`
@@ -322,4 +322,16 @@ if(System.getenv('MODRINTH_TOKEN') != null) {
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8' // Use the UTF-8 charset for Java compilation
}
}
publishing {
publications {
mavenJava(MavenPublication) {
artifact jar
}
}
repositories {
maven {
url "file://${project.projectDir}/mcmodsrepo"
}
}
}