Skip to content

build: migrate to type-safe project dependencies#2353

Open
hmzgtl16 wants to merge 1 commit intoInsertKoinIO:4.2.0from
hmzgtl16:build/type-safe-dependencies
Open

build: migrate to type-safe project dependencies#2353
hmzgtl16 wants to merge 1 commit intoInsertKoinIO:4.2.0from
hmzgtl16:build/type-safe-dependencies

Conversation

@hmzgtl16
Copy link

Description

This PR migrates internal module dependencies from string-based paths to Gradle Type-safe project accessors.

Changes

Enabled TYPESAFE_PROJECT_ACCESSORS in settings.gradle.kts.

Refactored build.gradle.kts files to use the projects extension instead of project(":path").

Example Change:

  • Old: api(project(":core:koin-core"))
  • New: api(projects.core.koinCore)

Motivation

  • Type Safety: Prevents build failures caused by typos in module strings.

  • IDE Support: Enables autocompletion and "find usages" for modules within Gradle files.

  • Modernization: Aligns the build system with current Gradle best practices.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant