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

Inroduce service-provider module #29185

Merged
merged 7 commits into from
May 17, 2024
Merged

Conversation

alllex
Copy link
Member

@alllex alllex commented May 16, 2024

No code changes, only moves some classes into a new module.

Adds a new module that is home to the classes that allows other modules to register internal Gradle services.
This includes classes like ServiceRegistration and PluginServiceRegistry.

The Scope interfaces should later be moved here as well, because they participate in the service declaration.

@alllex alllex self-assigned this May 16, 2024
@alllex alllex added this to the 8.9 RC1 milestone May 16, 2024
@alllex alllex requested review from adammurdoch and lptr May 16, 2024 14:49
Copy link
Member

@lptr lptr left a comment

Choose a reason for hiding this comment

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

LGTM!

Comment on lines 8 to 10
api(project(":base-services"))
api(project(":core"))
api(project(":core-api"))
api(project(":service-provider"))
Copy link
Member

Choose a reason for hiding this comment

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

👏 That's what we want! Now let's get rid of that :core dependency too :D

description = "An API for providing internal services for Gradle modules"

dependencies {
api(projects.javaLanguageExtensions)
Copy link
Member

Choose a reason for hiding this comment

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

❓ How come we don't need libs.inject?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's not required by the classes currently moved into this new module

@@ -13,7 +13,6 @@ errorprone {
}

dependencies {
api(project(":base-services"))
Copy link
Member

Choose a reason for hiding this comment

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

👍 Yes!

@alllex alllex force-pushed the alllex-lptr/qa/extract-service-registry branch from 9c4578f to 206cc9e Compare May 17, 2024 08:52
@alllex
Copy link
Member Author

alllex commented May 17, 2024

@bot-gradle test without pts

@gradle gradle deleted a comment from alllex May 17, 2024
@bot-gradle
Copy link
Collaborator

I've triggered the following builds with parameters: -DenablePredictiveTestSelection=false for you. Click here to see all build failures.

@alllex
Copy link
Member Author

alllex commented May 17, 2024

@bot-gradle test without pts

@gradle gradle deleted a comment from alllex May 17, 2024
@bot-gradle
Copy link
Collaborator

I've triggered the following builds with parameters: -DenablePredictiveTestSelection=false for you. Click here to see all build failures.

Comment on lines +1 to +5
plugins {
id("gradlebuild.distribution.implementation-java")
}

description = "An API for providing internal services for Gradle modules"
Copy link
Member Author

Choose a reason for hiding this comment

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

ℹ️ Adding this new project is the main change

@alllex alllex marked this pull request as ready for review May 17, 2024 12:03
@alllex alllex requested review from a team and ldaley as code owners May 17, 2024 12:03
@alllex alllex requested review from a team as code owners May 17, 2024 12:03
@alllex alllex requested review from big-guy and abstratt and removed request for a team May 17, 2024 12:04
@alllex alllex added this pull request to the merge queue May 17, 2024
Merged via the queue into master with commit 605d7cd May 17, 2024
58 checks passed
@alllex alllex deleted the alllex-lptr/qa/extract-service-registry branch May 17, 2024 13:21
@alllex alllex added the re:platformization Tracks work related to the platformization effort label May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
re:platformization Tracks work related to the platformization effort
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants