Fix NPE if type is null. (#195)

* Fix NPE if type is null.

Signed-off-by: ZekerZhayard <[email protected]>

* Forge does not support Java 18 for now.

Signed-off-by: ZekerZhayard <[email protected]>
This commit is contained in:
ZekerZhayard authored and GitHub committed 2021-11-28 02:17:38 +08:00
1 parent c8fb6e216e
commit cff5846e7f
5 files changed
+60 -41

No files matched your search

+1 -1
View File
@@ -22,7 +22,7 @@ static void provideModrinth0(Project proj) {
token = System.getenv("MODRINTH_TOKEN")
projectId = "idMHQ4n2"
versionNumber = proj.ext.getCSLVersion()
versionNumber = "${proj.ext.getCSLVersion()}-${proj.name.replace("/", ".")}"
versionName = "${proj.archivesBaseName}-${proj.ext.getShortVersion()}"
changelog = System.getenv("GIT_COMMIT_DESC") ?: ""
uploadFile = proj.tasks.jar