mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-23 16:16:17 +02:00
add offline to version name
This commit is contained in:
parent
e5efdf0c5a
commit
9b57298d66
1 changed files with 2 additions and 2 deletions
|
|
@ -358,7 +358,7 @@ fun changelog(isOnline: Boolean): String {
|
|||
hangarPublish {
|
||||
|
||||
fun HangarPublication.configure(isOnline: Boolean, devChannel: String, releaseChannel: String) {
|
||||
version.set(effectiveVersion)
|
||||
version.set(effectiveVersion + if(isOnline) "" else "-offline")
|
||||
channel.set(if (isDevBuild || isPreRelease) devChannel else releaseChannel)
|
||||
|
||||
changelog.set(changelog(isOnline))
|
||||
|
|
@ -369,7 +369,7 @@ hangarPublish {
|
|||
register(Platforms.PAPER) {
|
||||
// Set the JAR file to upload
|
||||
var task = if(isOnline) tasks.shadowJar
|
||||
else tasks.named("offlineJar") as TaskProvider<ShadowJar>
|
||||
else tasks.named<ShadowJar>("offlineJar")
|
||||
|
||||
jar.set(task.flatMap { it.archiveFile })
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue