Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Update internals #229

Merged
merged 3 commits into from
Oct 7, 2018
Merged

Update internals #229

merged 3 commits into from
Oct 7, 2018

Conversation

mr-archano
Copy link
Contributor

A while back we have faced an issue while trying to use this plugin to release a project using a recent version of Gradle (4.9+). After a quick look we thought the problem was on the JFrog Gradle plugin that we apply under the hood, but further investigation has confirmed that the issue is not present in recent versions of that plugin (1.8.1+). I then decided to go ahead and make this plugin compile against a more recent version of the JFrog one, but while testing this implementation (using composite builds) I faced an interesting issue.

The recent implementation of the JFrog plugin is registering a custom BuildAdapter to configure the upload tasks lazily, using the values collected in the extension after all the projects are fully configured and are ready to populate the task graph. Unfortunately we were applying that plugin after the buildscript of the project is run, and it seems at that point is too late for the JFrog plugin to register its own build listener, therefore the upload tasks were not including all the properties specified in the extension.

The fix is as easy as applying the JFrog plugin outside the afterEvaluate {}.

@mr-archano mr-archano merged commit 70ba28d into develop Oct 7, 2018
@mr-archano mr-archano deleted the update_internals branch October 7, 2018 00:11
@mr-archano
Copy link
Contributor Author

Available as snapshot build here: https://bintray.com/novoda/snapshots/bintray-release/SNAPSHOT-6

@mr-archano mr-archano mentioned this pull request Oct 20, 2018
StefMa added a commit to StefMa/UseKase that referenced this pull request Jun 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant