Skip to content
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

Develocity Gradle plugin is removed from convention plugin sample #1186

Merged
merged 1 commit into from
May 15, 2024

Conversation

erichaagdev
Copy link
Member

@erichaagdev erichaagdev commented May 14, 2024

As it exists today, the user is prompted to publish the scan to scans.gradle.com. This is because the Develocity Gradle plugin is applied, but not configured.

This change removes the Develocity Gradle and CCUD plugins.

@erichaagdev erichaagdev requested a review from a team May 14, 2024 19:51
@erichaagdev erichaagdev self-assigned this May 14, 2024
@erichaagdev erichaagdev changed the title Configure Develocity convention plugins with Develocity Configure Convention Develocity Gradle plugins with Develocity May 14, 2024
Copy link
Member

@etiennestuder etiennestuder left a comment

Choose a reason for hiding this comment

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

I think we should no integrate this PR.

@@ -1,7 +1,29 @@
plugins {
id 'com.gradle.develocity' version '3.17.3'
id 'com.gradle.develocity' version '3.17.3' // replace with this convention plugin once published
Copy link
Member

Choose a reason for hiding this comment

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

Not sure what you mean with this comment. There is no plan to publish this convention plugin. It serves as a template that other can copy and adjust to their needs.

@etiennestuder
Copy link
Member

@erichaagdev Instead of adding the DV configuration to the settings.file, I would remove the DV/CCUD plugin declarations. The reason being that this project is an example of how to build a convention plugin, not how to configure a project with DV.

@erichaagdev
Copy link
Member Author

I don't understand the motivation of this PR.

@etiennestuder the motivation was that I ran the build and was prompted to agree to the Gradle ToS to publish a scan to scans.gradle.com. This is because the build had the Develocity Gradle plugin applied, but it was not configured. This didn't feel right. I felt either of these options would be improvements over that state:

  1. Configure the Develocity Gradle plugin
  2. Remove the Develocity Gradle plugin

I chose option 1 to encourage and remind users that this build should also be connected to Develocity once it is copied. I chose develocity-samples.gradle.com as this is the same hypothetical server the convention plugin configures. 

But, maybe a better option is to remove Develocity Gradle plugin and CCUD as you say. We could then add this to the settings.gradle file instead: 

plugins {
    // CHANGE ME: Apply your convention plugin once published
    // plugin('com.myorg.convention-develocity-gradle-5-or-newer') version '1.0.0'
    ..
}

This is the same pattern we follow for the rest of this template:

What do you think about this?

@etiennestuder
Copy link
Member

What do you think about this?

Yep. I fully agree with your option #2.

#1186 (comment)

@erichaagdev erichaagdev force-pushed the erichaagdev/configure-dv-convention-plugins branch from fc7ba2e to 0b9c965 Compare May 15, 2024 15:57
@erichaagdev erichaagdev changed the title Configure Convention Develocity Gradle plugins with Develocity Convention Develocity Gradle plugins encourage dogfooding plugin once published May 15, 2024
@erichaagdev erichaagdev force-pushed the erichaagdev/configure-dv-convention-plugins branch from 0b9c965 to e79b264 Compare May 15, 2024 17:22
@erichaagdev erichaagdev changed the title Convention Develocity Gradle plugins encourage dogfooding plugin once published Develocity Gradle plugin is removed from convention plugin template May 15, 2024
@erichaagdev erichaagdev changed the title Develocity Gradle plugin is removed from convention plugin template Develocity Gradle plugin is removed from convention plugin sample May 15, 2024
@erichaagdev erichaagdev merged commit 7bba437 into main May 15, 2024
20 checks passed
@erichaagdev erichaagdev deleted the erichaagdev/configure-dv-convention-plugins branch May 15, 2024 17:23
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.

None yet

2 participants