Skip to content
This repository has been archived by the owner on Dec 17, 2023. It is now read-only.

Make the plugin applicable to Settings instances #27

Closed
wants to merge 4 commits into from
Closed

Make the plugin applicable to Settings instances #27

wants to merge 4 commits into from

Conversation

Myllyenko
Copy link

The goal of this PR is to make the plugin applicable to Settings instances. The use case that gave me incentive to make this PR includes usage of credentials for custom repositories inside pluginManagement block of settings.gradle.

As the Settings class became ExtensionAware only in Gradle 5.0, I was forced to use Gradle 5 here which broke compatibility of the plugin with Gradle pre-4.6 as org.gradle.api.internal.tasks.options.Option was removed in Gradle 5 while org.gradle.api.tasks.options.Option was introduced only in Gradle 4.6. I think I can implement a workaround to restore compatibility with older versions if needed.

* Gradle wrapper has been updated to 5.3.1
* The com.gradle.build-scan plugin has been updated to a
  Gradle 5-compatible version
* References to the org.gradle.api.internal.tasks.options.Option
  class that not present in Gradle 5 have been removed and hence
  the plugin is no longer compatible with pre-4.6 versions of Gradle
@Myllyenko
Copy link
Author

@etiennestuder could you please review this PR? I'm very interested in this functionality.

@etiennestuder
Copy link
Owner

@Myllyenko I will. Thanks for the reminder.

@etiennestuder
Copy link
Owner

@Myllyenko I want to wait with merging this until Gradle 6.0 is out, since I will then deprecate support for Gradle 4.x. This should be in about 6 six weeks from now.

@Myllyenko
Copy link
Author

@Myllyenko I want to wait with merging this until Gradle 6.0 is out, since I will then deprecate support for Gradle 4.x. This should be in about 6 six weeks from now.

OK, thanks for the information :)

@etiennestuder
Copy link
Owner

@Myllyenko I've implemented this functionality in version 2.1. Thanks for the PR. I implemented it a bit differently but drew a lot of inspiration from your PR.

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.

2 participants