Skip to content

Declare the dev repo with devPublish.dependency() - #102

Merged
aSemy merged 3 commits into
mainfrom
improve-ux/devpublish-dependency-autowiring
Oct 1, 2026
Merged

aSemy merged 3 commits into
mainfrom
improve-ux/devpublish-dependency-autowiring

Conversation

@aSemy

@aSemy aSemy commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@aSemy
aSemy force-pushed the improve-ux/devpublish-dependency-autowiring branch 5 times, most recently from 896f0c4 to 07202e5 Compare October 1, 2026 18:34
aSemy added 3 commits October 1, 2026 20:41
- `DevPublishMetadata` - constants for the metadata file.
- `DevPublishInternalApi` - shared between the plugin and test-utils.

(test-utils will be created in the next commit)
A utility library for users of DevPublish. It finds the dev Maven repository from the test runtime classpath, and generates the `repositories {}` and `pluginManagement {}` blocks a test project needs, in either the Kotlin or the Groovy DSL.

Nothing wires it up yet: the plugin will use it when the  `devPublish.dependency()` util is added in the next commit.
Tests get the dev Maven repository by declaring a dependency on `devPublish.dependency()`.

example:
```
dependencies {
  testImplementation(devPublish.dependency())
}
```
The dependency wires the `updateDevRepo` task dependency, adds `dev-publish-utils`, and puts a metadata file on the test runtime classpath with a relative path to the dev-repo location.
@aSemy
aSemy force-pushed the improve-ux/devpublish-dependency-autowiring branch from 07202e5 to a1e9186 Compare October 1, 2026 18:42
@aSemy
aSemy marked this pull request as ready for review October 1, 2026 18:42
@aSemy
aSemy enabled auto-merge October 1, 2026 18:42
@aSemy
aSemy added this pull request to the merge queue Oct 1, 2026
Merged via the queue into main with commit ad5945c Oct 1, 2026
4 checks passed
@aSemy
aSemy deleted the improve-ux/devpublish-dependency-autowiring branch October 1, 2026 18:55
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