Skip to content

Commit

Permalink
dep bump, use failgood 0.9 candidate
Browse files Browse the repository at this point in the history
  • Loading branch information
christophsturm committed Nov 9, 2023
1 parent 6d0535c commit 3c0d7a6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
5 changes: 3 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask
import org.jmailen.gradle.kotlinter.tasks.FormatTask
import org.jmailen.gradle.kotlinter.tasks.LintTask
import java.util.*

plugins {
id("com.github.ben-manes.versions") version "0.47.0"
id("com.github.ben-manes.versions") version "0.49.0"
id("io.github.gradle-nexus.publish-plugin") version "1.3.0"
id("com.autonomousapps.dependency-analysis") version "1.25.0"
id("org.jetbrains.kotlinx.kover") version "0.7.4" apply false
Expand All @@ -14,7 +15,7 @@ plugins {
// ./gradlew publishToSonatype closeSonatypeStagingRepository (or ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository)

fun isNonStable(version: String): Boolean {
val stableKeyword = listOf("RELEASE", "FINAL", "GA").any { version.toUpperCase().contains(it) }
val stableKeyword = listOf("RELEASE", "FINAL", "GA").any { version.uppercase(Locale.getDefault()).contains(it) }
val regex = "^[0-9,.v-]+(-r)?$".toRegex()
val isStable = stableKeyword || regex.matches(version)
return isStable.not()
Expand Down
6 changes: 3 additions & 3 deletions buildSrc/src/main/kotlin/restaurant.common.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ tasks {
kotlinOptions {
jvmTarget = "11" // need at least jdk 11 for the http11 httpclient anyway
freeCompilerArgs = listOf("-opt-in=kotlin.RequiresOptIn")
languageVersion = "1.8"
apiVersion = "1.7"
languageVersion = "1.9"
apiVersion = "1.9"
}
}
}
kotlin {
sourceSets.all {
languageSettings.apply {
languageVersion = "1.8"
languageVersion = "1.9"
progressiveMode = true
}
}
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/restaurant/versions/Versions.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package restaurant.versions

const val failgoodVersion = "0.8.3"
const val failgoodVersion = "0.9.0"
const val striktVersion = "0.34.1"
const val kotlinVersion = "1.9.20"
const val jacksonVersion = "2.15.3"
Expand Down
1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
dependencyResolutionManagement {
repositories {
mavenCentral()
maven("https://s01.oss.sonatype.org/content/repositories/devfailgood-1046")
}
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
}
Expand Down

0 comments on commit 3c0d7a6

Please sign in to comment.