Skip to content

Commit

Permalink
Calculate lint version automatically instead of hardcoding specific v…
Browse files Browse the repository at this point in the history
…ersion
  • Loading branch information
CDRussell committed Nov 21, 2023
1 parent 40495c5 commit 7140e84
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,17 @@ buildscript {
spotless = '6.1.2'
anvil_version = '2.4.8'
ksp_version = '1.9.20-1.0.14'
gradle_plugin = '8.1.2' // When updating, also update lint_version
lint_version = '31.1.2' // This value must always be gradle_plugin + 23
gradle_plugin = '8.1.2'
min_sdk = 23
target_sdk = 33
compile_sdk = 34
fladle_version = '0.17.4'
kotlinter_version = '3.12.0'
dokka_version = '1.8.20'

// Calculate lint_version (must always be gradle_plugin + 23)
def components = gradle_plugin.split('\\.')
lint_version = gradle_plugin.replaceFirst(components[0], (components[0].toInteger() + 23).toString())
}

repositories {
Expand Down

0 comments on commit 7140e84

Please sign in to comment.