Skip to content

Commit

Permalink
Add workaround for gradle/gradle#26020
Browse files Browse the repository at this point in the history
Kotlin tasks stay up-to-date when libs.versions.toml file is modified
  • Loading branch information
illarionov committed Mar 10, 2024
1 parent cb5664e commit 95af440
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions build-logic/project/settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,17 @@ plugins {
id("ru.pixnews.sqlite.open.helper.gradle.settings.root")
}

// Workaround for https://github.com/gradle/gradle/issues/26020
buildscript {
repositories {
mavenCentral()
gradlePluginPortal()
}
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$embeddedKotlinVersion")
}
}

dependencyResolutionManagement {
versionCatalogs {
create("libs") {
Expand Down
11 changes: 11 additions & 0 deletions build-logic/settings/settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@
* SPDX-License-Identifier: Apache-2.0
*/

// Workaround for https://github.com/gradle/gradle/issues/26020
buildscript {
repositories {
mavenCentral()
gradlePluginPortal()
}
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$embeddedKotlinVersion")
}
}

dependencyResolutionManagement {
repositories.gradlePluginPortal()
versionCatalogs {
Expand Down

0 comments on commit 95af440

Please sign in to comment.