1
0
forked from Clones/Controlify

lots of API docs and fix sources jar

This commit is contained in:
isXander
2023-04-15 13:12:45 +01:00
parent 2c08d5f15c
commit 8eb8510590
16 changed files with 233 additions and 59 deletions

View File

@ -1,4 +1,5 @@
import com.github.breadmoirai.githubreleaseplugin.GithubReleaseTask
import org.gradle.jvm.tasks.Jar
plugins {
java
@ -118,6 +119,11 @@ blossom {
replaceToken("<SDL2_VERSION>", libs.versions.sdl2.jni.get(), sdl2ManagerClass)
}
java {
withSourcesJar()
withJavadocJar()
}
tasks {
processResources {
val modId: String by project
@ -152,6 +158,10 @@ tasks {
archiveClassifier.set("fabric-$minecraftVersion-sources")
}
named<Jar>("javadocJar") {
archiveClassifier.set("fabric-$minecraftVersion-javadoc")
}
register("releaseMod") {
group = "mod"
@ -163,10 +173,6 @@ tasks {
}
}
java {
withSourcesJar()
}
val changelogText = file("changelogs/${project.version}.md").takeIf { it.exists() }?.readText() ?: "No changelog provided."
val modrinthId: String by project
@ -233,6 +239,8 @@ publishing {
artifactId = base.archivesName.get()
from(components["java"])
artifact(tasks["remapSourcesJar"])
artifact(tasks["javadocJar"])
}
}