Shorten the publishToModrinth task a bit by removing a with() and use the addFile method
This commit is contained in:
parent
20fc1fd80d
commit
d978898fe2
|
@ -138,13 +138,11 @@ tasks {
|
|||
versionType = VersionType.ALPHA
|
||||
detectLoaders = false
|
||||
versionName = "${project.name} $versionNumber for Minecraft $gameVersions and higher"
|
||||
with(fileTree("$rootDir/shrinkedJars/")) {
|
||||
files.forEach {
|
||||
with(it.name) {
|
||||
when {
|
||||
contains("fabric") -> uploadFile = it
|
||||
contains("forge") -> additionalFiles.add(it)
|
||||
}
|
||||
fileTree("$rootDir/shrinkedJars/").files.forEach {
|
||||
with(it.name) {
|
||||
when {
|
||||
contains("fabric") -> uploadFile = it
|
||||
contains("forge") -> addFile(it)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue