Skip to content

Commit

Permalink
Merge pull request #7 from bluefireoly/scoreboard
Browse files Browse the repository at this point in the history
Update main
  • Loading branch information
jakobkmar committed May 24, 2021
2 parents 6c7f8de + 53e11db commit 2f0f99b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
3 changes: 2 additions & 1 deletion buildSrc/src/main/kotlin/BuildConstants.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
object BuildConstants {
const val fabrikVersion = "0.4.2-SNAPSHOT"
const val projectState = "beta"
val isSnapshot = fabrikVersion.endsWith("-SNAPSHOT")
val projectState = if (isSnapshot) "beta" else "release"

const val curseforgeId = "447425"
const val githubRepo = "bluefireoly/fabrikmc"
Expand Down
3 changes: 2 additions & 1 deletion buildSrc/src/main/kotlin/mod-publish-script.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import BuildConstants.curseforgeId
import BuildConstants.fabrikVersion
import BuildConstants.githubRepo
import BuildConstants.isSnapshot
import BuildConstants.minecraftVersion
import BuildConstants.projectState
import com.matthewprenger.cursegradle.CurseProject
Expand Down Expand Up @@ -64,7 +65,7 @@ publishing {
name = "ossrh"
credentials(PasswordCredentials::class)
setUrl(
if (!version.toString().endsWith("-SNAPSHOT"))
if (!isSnapshot)
"https://oss.sonatype.org/service/local/staging/deploy/maven2"
else
"https://oss.sonatype.org/content/repositories/snapshots"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,14 @@ class LiteralTextBuilder(
siblingText.append(LiteralText("\n"))
}

/**
* Adds an empty line.
*/
fun emptyLine() {
newLine()
newLine()
}

fun build() = text.apply {
style = currentStyle
if (siblingText.siblings.isNotEmpty())
Expand Down

0 comments on commit 2f0f99b

Please sign in to comment.