Skip to content

Commit

Permalink
Clean ded code shouldSignArtifacts (#1622)
Browse files Browse the repository at this point in the history
  • Loading branch information
marandaneto authored Jul 27, 2021
1 parent 1c4a257 commit 82dbee6
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions buildSrc/src/main/java/Config.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import java.math.BigDecimal
import java.util.Locale

object Config {
val kotlinVersion = "1.4.30"
Expand All @@ -21,11 +20,6 @@ object Config {
val grettyVersion = "3.0.5"
val gradleMavenPublishPlugin = "com.vanniktech:gradle-maven-publish-plugin:0.15.1"
val dokkaPlugin = "org.jetbrains.dokka:dokka-gradle-plugin:$kotlinVersion"

fun shouldSignArtifacts(version: String): Boolean {
return !(System.getenv("CI")?.toBoolean() ?: false) &&
!version.toUpperCase(Locale.ROOT).endsWith("SNAPSHOT")
}
}

object Android {
Expand Down

0 comments on commit 82dbee6

Please sign in to comment.