korlibs / korlibs/kproject

Implement a boolean/toggle setting that allows us to switch between using local and non-local dependencies.

Open
#22 5 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Kotlin
Stars
34
Forks
2
PR merge metrics
No merged PRs in 30d

Description

Idea:
- Add a new dependency list called **localDependencies** to **NewKProjectModel**
- Add a boolean setting called **useLocal**
- If useLocal=true, then the project should use **localDependencies** over **dependencies**
- If useLocal=false, then the project should use **dependencies** over **localDependencies**

Use case:
- If I post the repo on github, I would have **useLocal** set to **false**, so it should use non-local (e.g maven/github) sources so that when people fork it, everything will work out-of-the-box.
- When I'm developing locally, I would switch to using local dependencies (**useLocal=true**). E.g: So that I would source from local dirs for XenoECS and ktruth for my own project so I could develop those libraries as well while developing the main project (XenoTactic)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at NewKProjectModel and trace how its dependency lists are consumed when resolving a project. Implement the requested localDependencies and useLocal behavior so each setting selects the corresponding source, then verify both true and false cases work for local development and forked repositories.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
build-system
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.