Skip to content

Change UnMock task to Gradle's dependency transform#83

Merged
bjoernQ merged 2 commits into
bjoernQ:masterfrom
matejdro:artifact-transform
Jun 24, 2024
Merged

Change UnMock task to Gradle's dependency transform#83
bjoernQ merged 2 commits into
bjoernQ:masterfrom
matejdro:artifact-transform

Conversation

@matejdro

Copy link
Copy Markdown
Contributor

It seems like Unmock is doing exactly what Gradle's dependency transformation system was designed to do. So this PR moves Unmock from being a task to a dependency transformer, which allows across-module caching.

This fixes #82.

distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-all.zip

@bojankseneman bojankseneman Jun 21, 2024

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we could switch to binary distribution, I don't see any reason why all is needed

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was all before, so I did not want to change it. Plus, from what I understand, all includes sources/javadocs, which makes IDE experience a bit better when interacting with Gradle scripts.

@bjoernQ bjoernQ left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - Thanks! Going to merge this and hopefully I can publish a new version next weekend

@bjoernQ
bjoernQ merged commit a8ad2e1 into bjoernQ:master Jun 24, 2024
@matejdro
matejdro deleted the artifact-transform branch June 27, 2024 05:16
@matejdro

Copy link
Copy Markdown
Contributor Author

Thanks!

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.

processing android jar once on multi-module project

4 participants