Skip to content

Commit

Permalink
Merge branch '3.5.6/fix_gradle_deps' into 3.6.0
Browse files Browse the repository at this point in the history
# Conflicts:
#	projects/gradle.properties
  • Loading branch information
arnaudgiuliani committed Apr 11, 2024
2 parents 1d86518 + e075354 commit f960d85
Show file tree
Hide file tree
Showing 14 changed files with 44 additions and 21 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
![logo](./docs/img/koin_main_logo.png)

[![Kotlin](https://img.shields.io/badge/Kotlin-1.8.21-blue.svg?style=flat&logo=kotlin)](https://kotlinlang.org)
[![Kotlin](https://img.shields.io/badge/Kotlin-1.9.22-blue.svg?style=flat&logo=kotlin)](https://kotlinlang.org)
![Github Actions](https://github.com/InsertKoinIO/koin/actions/workflows/build.yml/badge.svg)
[![Apache 2 License](https://img.shields.io/github/license/InsertKoinIO/koin)](https://github.com/InsertKoinIO/koin/blob/main/LICENSE.txt)
[![Slack channel](https://img.shields.io/badge/Chat-Slack-orange.svg?style=flat&logo=slack)](https://kotlinlang.slack.com/messages/koin/)
Expand All @@ -15,7 +15,11 @@ Koin is a pragmatic lightweight dependency injection framework for Kotlin develo

## Setup & Current Version

Here are the current available Koin projects versions:
Here are the current available Koin project versions:
- stable: `3.5.5`
- unstable: `3.6.0-Beta2`

## Koin Packages

| Project | Version |
|----------|:-------------:|
Expand Down
8 changes: 7 additions & 1 deletion projects/android/koin-android-compat/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@ android {
}

dependencies {
implementation(project(":android:koin-android"))
api(project(":android:koin-android"))
}

// android sources
val sourcesJar: TaskProvider<Jar> by tasks.registering(Jar::class) {
archiveClassifier.set("sources")
from(android.sourceSets.map { it.java.srcDirs })
}

// android sources
Expand Down
7 changes: 3 additions & 4 deletions projects/android/koin-android-test/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@ android {
}

dependencies {
implementation(kotlin("reflect"))
implementation(project(":android:koin-android"))
implementation(project(":android:koin-androidx-workmanager"))
implementation(project(":core:koin-test"))
api(project(":android:koin-android"))
api(project(":android:koin-androidx-workmanager"))
api(project(":core:koin-test"))
// Test
testImplementation(libs.test.junit)
testImplementation(libs.test.mockito)
Expand Down
2 changes: 1 addition & 1 deletion projects/android/koin-androidx-navigation/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ android {
}

dependencies {
implementation(project(":android:koin-android"))
api(project(":android:koin-android"))
api(libs.androidx.navigation)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ android {
}

dependencies {
implementation(project(":android:koin-android"))
api(project(":android:koin-android"))
api(libs.androidx.workmanager)

// Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,14 @@ android {
}

dependencies {
implementation(project(":compose:koin-androidx-compose"))
implementation(libs.androidx.composeNavigation)
api(project(":compose:koin-androidx-compose"))
api(libs.androidx.composeNavigation)
}

// android sources
val sourcesJar: TaskProvider<Jar> by tasks.registering(Jar::class) {
archiveClassifier.set("sources")
from(android.sourceSets.map { it.java.srcDirs })
}

// android sources
Expand Down
10 changes: 8 additions & 2 deletions projects/compose/koin-androidx-compose/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,14 @@ android {
dependencies {
api(project(":android:koin-android"))
api(project(":compose:koin-compose"))
implementation(libs.androidx.composeRuntime)
implementation(libs.androidx.composeViewModel)
api(libs.androidx.composeRuntime)
api(libs.androidx.composeViewModel)
}

// android sources
val sourcesJar: TaskProvider<Jar> by tasks.registering(Jar::class) {
archiveClassifier.set("sources")
from(android.sourceSets.map { it.java.srcDirs })
}

// android sources
Expand Down
2 changes: 1 addition & 1 deletion projects/compose/koin-compose/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ kotlin {
sourceSets {
commonMain.dependencies {
api(project(":core:koin-core"))
implementation(libs.compose.jb)
api(libs.compose.jb)
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion projects/core/koin-core-coroutines/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ kotlin {
sourceSets {
commonMain.dependencies {
api(project(":core:koin-core"))
implementation(libs.kotlin.coroutines)
api(libs.kotlin.coroutines)
}
commonTest.dependencies {
implementation(libs.kotlin.test)
Expand Down
4 changes: 2 additions & 2 deletions projects/core/koin-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ kotlin {

sourceSets {
commonMain.dependencies {
implementation(libs.extras.stately)
implementation(libs.extras.stately.collections)
api(libs.extras.stately)
api(libs.extras.stately.collections)
}
commonTest.dependencies {
implementation(libs.kotlin.test)
Expand Down
2 changes: 1 addition & 1 deletion projects/core/koin-test-junit4/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {

dependencies {
api(project(":core:koin-test"))
implementation(libs.test.junit)
api(libs.test.junit)
testImplementation(libs.kotlin.test)
testImplementation(libs.test.mockito)
}
Expand Down
2 changes: 1 addition & 1 deletion projects/core/koin-test-junit5/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {

dependencies {
api(project(":core:koin-test"))
implementation(libs.test.jupiter)
api(libs.test.jupiter)
testImplementation(libs.test.mockito)
}

Expand Down
4 changes: 3 additions & 1 deletion projects/core/koin-test/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@ kotlin {
sourceSets {
commonMain.dependencies {
api(project(":core:koin-core"))
//TODO remove in 3.6
api(libs.kotlin.test)
}
jvmMain.dependencies {
implementation(kotlin("reflect"))
api(kotlin("reflect"))
}
commonTest.dependencies {
implementation(libs.kotlin.test)
Expand Down
2 changes: 1 addition & 1 deletion projects/ktor/koin-logger-slf4j/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {

dependencies {
api(project(":core:koin-core"))
implementation(libs.ktor.slf4j)
api(libs.ktor.slf4j)
}

tasks.withType<KotlinCompile>().all {
Expand Down

0 comments on commit f960d85

Please sign in to comment.