Skip to content

Plugin API improvements #135

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
May 23, 2025
Merged

Plugin API improvements #135

merged 14 commits into from
May 23, 2025

Conversation

alexander-yevsyukov
Copy link
Contributor

@alexander-yevsyukov alexander-yevsyukov commented May 22, 2025

This PR adds the Project.spineExtension<E>() which allows to obtain an extension nested under Project.rootExtension by its type E.

The creation of an extension, for both Project and Settings, is now delegated to the ExtensionSpec class. The class now checks if an extension already exists, which helps in solving issues with applying a plugin more than once via its class.

Other notable changes

  • The class SpineSettingsExtension was renamed to RootSettingsExtension.
  • The class Versions was pulled to the package level.
  • The exclusion of protoc output in GenerateProtoTask.setup() was reverted back to the body of the function, instead of being executed by the configured task on doFirst. This fixed the issue of duplicated Kotlin declarations in the generated code.
  • Dependencies were updated via config.
  • Gradle was bumped to 8.14.1.

@alexander-yevsyukov alexander-yevsyukov self-assigned this May 22, 2025
@alexander-yevsyukov alexander-yevsyukov marked this pull request as ready for review May 23, 2025 17:38
Also:
 * Remove trailing empty line.
@alexander-yevsyukov alexander-yevsyukov merged commit 5ee96b4 into master May 23, 2025
6 of 7 checks passed
@alexander-yevsyukov alexander-yevsyukov deleted the plugin-api-improvements branch May 23, 2025 18:27
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.

2 participants