Skip to content

Conversation

@kimeta
Copy link
Collaborator

@kimeta kimeta commented Sep 30, 2025

What does this PR do?

Implements the GenerateMetadataTask gradle task explained in: #682.
The task should be called with following options:

  • --coordinates - Maven coordinates of the library you want to test
  • --packages - packages that you want to include in your metadata

Example:
./gradlew generateMetadata --coordinates=com.hazelcast:hazelcast:5.2.1 --packages=com.hazelcast

This PR also introduces MetadataGenerationUtils utility class for operations shared by ContributionTask and GenerateMetadataTask.

@kimeta kimeta requested a review from a team as a code owner September 30, 2025 14:38
@kimeta kimeta requested a review from msupic September 30, 2025 14:38
@kimeta kimeta force-pushed the mm/Introduce-GenerateMetadataTask branch from a269214 to e778d15 Compare September 30, 2025 14:39
@kimeta kimeta changed the title New GenerateMetadataTask gradle task for collecting metadata for certain library version New GenerateMetadataTask gradle task for collecting metadata for specific library version Sep 30, 2025
@kimeta kimeta force-pushed the mm/Introduce-GenerateMetadataTask branch 2 times, most recently from 518979a to 84bbfa1 Compare October 2, 2025 17:00
Created MetadataGenerationUtils utility class for operations shared by ContributionTask and NonInteractiveContributionTask.
@kimeta kimeta force-pushed the mm/Introduce-GenerateMetadataTask branch from 84bbfa1 to 12a457c Compare October 3, 2025 11:13
@vjovanov vjovanov requested review from vjovanov and removed request for msupic November 13, 2025 12:34
return layout.getProjectDirectory().file(fileName).getAsFile().toPath();
}

public static void addUserCodeFilterFile(Path testsDirectory, List<String> packages) throws IOException {
Copy link
Member

Choose a reason for hiding this comment

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

Please add comments to this file.

task.setGroup(METADATA_GROUP)
}

tasks.register("generateMetadata", GenerateMetadataTask.class) { task ->
Copy link
Member

Choose a reason for hiding this comment

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

Please mention this in CONTRIBUTING.md.

@vjovanov vjovanov self-assigned this Nov 13, 2025
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