mirror of
https://github.com/ViaVersion/ViaForge.git
synced 2024-11-21 11:55:13 +01:00
Add mod publish plugin
This commit is contained in:
parent
08cf5e9929
commit
2721955931
2
CHANGELOG.md
Normal file
2
CHANGELOG.md
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
- Updated Via* projects to support 1.20.5
|
||||||
|
- Fixed version in 1.12 mcmod.info file
|
23
build.gradle
23
build.gradle
@ -11,12 +11,14 @@ buildscript {
|
|||||||
classpath "com.github.johnrengelman:shadow:7.1.2"
|
classpath "com.github.johnrengelman:shadow:7.1.2"
|
||||||
classpath "net.minecraftforge.gradle:ForgeGradle:6.+"
|
classpath "net.minecraftforge.gradle:ForgeGradle:6.+"
|
||||||
classpath "org.spongepowered:mixingradle:0.7-SNAPSHOT"
|
classpath "org.spongepowered:mixingradle:0.7-SNAPSHOT"
|
||||||
|
classpath "me.modmuss50:mod-publish-plugin:0.5.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
apply plugin: "java-library"
|
apply plugin: "java-library"
|
||||||
apply plugin: "com.github.johnrengelman.shadow"
|
apply plugin: "com.github.johnrengelman.shadow"
|
||||||
|
apply plugin: "me.modmuss50.mod-publish-plugin"
|
||||||
|
|
||||||
// We define the configuration here so we can use it across all conventions and platforms
|
// We define the configuration here so we can use it across all conventions and platforms
|
||||||
// To define which projects/source files should be included in the jar
|
// To define which projects/source files should be included in the jar
|
||||||
@ -173,6 +175,27 @@ subprojects {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
publishMods {
|
||||||
|
file = shadowJar.archiveFile
|
||||||
|
type = STABLE
|
||||||
|
displayName = rootProject.name + ' ' + project.version
|
||||||
|
version = project.version + "+" + project.mc_version
|
||||||
|
modLoaders.add("forge")
|
||||||
|
changelog = file("../CHANGELOG.md").text
|
||||||
|
dryRun = rootProject.maven_version.contains("SNAPSHOT")
|
||||||
|
|
||||||
|
curseforge {
|
||||||
|
accessToken = providers.gradleProperty("curseforge.publishing_token")
|
||||||
|
projectId = "418933"
|
||||||
|
minecraftVersions.addAll(project.mc_version.split(','))
|
||||||
|
}
|
||||||
|
modrinth {
|
||||||
|
accessToken = providers.gradleProperty("modrinth.publishing_token")
|
||||||
|
projectId = "Z6se2s8f"
|
||||||
|
minecraftVersions.addAll(project.mc_version.split(','))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
reobf {
|
reobf {
|
||||||
shadowJar {}
|
shadowJar {}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user