Skip to content

Commit

Permalink
remove redundant var
Browse files Browse the repository at this point in the history
  • Loading branch information
jpenilla committed Apr 14, 2023
1 parent 12a7b2c commit 2698dae
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,11 @@ description = "CarbonChat - A modern chat plugin"
val projectVersion: String by project // get from gradle.properties
version = projectVersion

val projectVer = project.version as String

hangarPublish.publications.register("plugin") {
version.set(projectVer)
version.set(projectVersion)
owner.set("Vicarious")
slug.set("Carbon")
channel.set(if (projectVer.contains("+beta.")) "Beta" else "Release")
channel.set(if (projectVersion.contains("+beta.")) "Beta" else "Release")
changelog.set(releaseNotes)
apiKey.set(providers.environmentVariable("HANGAR_UPLOAD_KEY"))
platforms.register(Platforms.PAPER) {
Expand Down

0 comments on commit 2698dae

Please sign in to comment.