Ahmed Elkhodery
04/13/2023, 1:45 AMjvm
target from kotlin-jvm
module using implementation(project(multiplatform-lib))
like in android or i have to publish to maven and consume from mavenJeff Lockhart
04/13/2023, 1:49 AMAhmed Elkhodery
04/13/2023, 2:01 AMmain_project
: // includes
1. currently_working_on_jvm_module
2. github_submodule_project
: // inculdes
• kmp_library_with_jvm_target
• settings.gradle.kts
3. settings.gradle.kts
how do i depend on kmp_library_with_jvm_target
from currently_working_on_jvm_module
what changes needs to be done to main_project
settings.gradle.kts and currently_working_on_jvm_module
build,.gradle files to depend on kmp_library_with_jvm_target
main_project
settings.gradle.kts : includeBuild(github_submodule_project
)
and in currently_working_on_jvm_module
build.gradle.kts: implementation(project(kmp_library_with_jvm_target
))
but i'm getting: Project with path kmp_library_with_jvm_target
couldn't be found in project: currently_working_on_jvm_module
Pablichjenkov
04/13/2023, 2:13 AMAhmed Elkhodery
04/13/2023, 2:17 AMmain project
which is considered the most upper level
and another seperate project inside it added as git submodule which is its own project and doesn't depened on main project
in any way,Pablichjenkov
04/13/2023, 2:18 AMAhmed Elkhodery
04/13/2023, 2:19 AMgithub_submodule_project
) // i'm not sure about this
currently_working_on_jvm_module
build.gradle.kts:
implementation(project(kmp_library_with_jvm_target
))Pablichjenkov
04/13/2023, 2:21 AMinclude(":component")
project(":component").projectDir = File("../component/component")
Where the File() has the path relative to the root of your current setting projectAhmed Elkhodery
04/13/2023, 2:30 AMcomponent
i want to be included in the main project, but gradle fails to sync because it's saying that the component
's projects dependecnies could not be found 😕
component
depends on other local gradle projects inside github submodule project
Pablichjenkov
04/13/2023, 2:54 AMAhmed Elkhodery
04/13/2023, 1:04 PMPablichjenkov
04/13/2023, 1:12 PM