Skip to content

Commit

Permalink
Kotlin 2.1.0. (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
ychescale9 authored Nov 28, 2024
1 parent 24ad439 commit 3b56b3a
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 3 deletions.
6 changes: 6 additions & 0 deletions build-logic/settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ dependencyResolutionManagement {
}
}
mavenCentral()
maven {
url = uri("https://oss.sonatype.org/content/repositories/snapshots")
content {
includeGroup("com.google.dagger")
}
}
}

versionCatalogs {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,14 @@ internal fun TestedExtension.configureCommonAndroidExtension(project: Project) {
with(project) {
dependencies.add("coreLibraryDesugaring", the<LibrariesForLibs>().desugarJdkLibs)
}

project.configurations.configureEach {
resolutionStrategy.eachDependency {
if (requested.group == "com.google.dagger") {
useVersion(project.the<LibrariesForLibs>().versions.hilt.get())
}
}
}
}

/**
Expand Down
6 changes: 3 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versions]
kotlin = "2.0.21"
ksp = "2.0.21-1.0.28"
kotlin = "2.1.0"
ksp = "2.1.0-1.0.29"
androidGradlePlugin = "8.9.0-alpha03"
gradle-develocityPlugin = "3.18"
gradle-toolchainsResolverPlugin = "0.8.0"
Expand All @@ -17,7 +17,7 @@ fladle = "0.17.5"
skie = "0.9.3"
desugarJdkLibs = "2.1.3"
leakcanary = "2.14"
hilt = "2.52"
hilt = "HEAD-SNAPSHOT"
kotlinx-coroutines = "1.9.0"
kotlinx-datetime = "0.6.1"
kotlinx-serialization = "1.7.3"
Expand Down
12 changes: 12 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ pluginManagement {
}
}
mavenCentral()
maven {
url = uri("https://oss.sonatype.org/content/repositories/snapshots")
content {
includeGroup("com.google.dagger")
}
}
}

fun extractVersionFromCatalog(key: String) = file("$rootDir/gradle/libs.versions.toml")
Expand Down Expand Up @@ -44,6 +50,12 @@ dependencyResolutionManagement {
}
}
mavenCentral()
maven {
url = uri("https://oss.sonatype.org/content/repositories/snapshots")
content {
includeGroup("com.google.dagger")
}
}
}
}

Expand Down

0 comments on commit 3b56b3a

Please sign in to comment.