autonomousapps / autonomousapps/dependency-analysis-gradle-plugin

Support type-safe project dependencies in config

Open
#480 3 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Kotlin
Stars
2.2k
Forks
158
Avg merge
16h 25m
Merged PRs (30d)
46

Description

**Is your feature request related to a problem? Please describe.**

Can't use [type-safe project accessors](https://docs.gradle.org/7.0/userguide/declaring_dependencies.html#sec:type-safe-project-accessors) in config:

```kotlin
exclude("my-project:subproject")
```
We migrated to type-safe project accessors but have to use string paths in configs.
It'd great to use the same notation.

**Describe the solution you'd like**

To pass type-safe project accessors to the config:

```kotlin
exclude(projects.myProject.subproject)
```

**Describe alternatives you've considered**

```kotlin
exclude(projects.myProject.subproject.dependencyProject.path)
```

**Additional context**

Contributor guide

Open the contributing guide

Research direction

The issue names no files, tests, or entry points. Start by locating the config API that accepts exclude("my-project:subproject") and inspect how project dependencies are represented; done means exclude(projects.myProject.subproject) is accepted while existing string paths remain supported, with coverage for both forms.

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
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.