Skip to content

Conversation

gnodet
Copy link
Contributor

@gnodet gnodet commented Aug 13, 2024

Based on @desruisseaux initial commit to rename subproject #1649.
This PR adds subprojects to 4.1.0 POM, deprecate modules, and add a discovery mechanism which kicks in when:

  • pomVersion == 4.1.0
  • packaging == pom
  • no modules or subprojects are specified

@gnodet gnodet changed the title Subprojects [MNG-8210] Replace Maven "module" term by "subproject" in documentation Aug 13, 2024
@gnodet gnodet requested a review from cstamas August 13, 2024 15:41
return Collections.unmodifiableList(getModel().getBuild().getPlugins());
}

public List<String> getModules() {
Copy link
Member

Choose a reason for hiding this comment

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

Deprecate it? Or maybe does not matter, as in API 4 plugins have no reach to this class?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I was assuming this change targets 4.x api and plugins, so I would not care about the v3 api.

@gnodet gnodet changed the title [MNG-8210] Replace Maven "module" term by "subproject" in documentation [MNG-8210] Replace Maven "module" term by "subproject" Aug 13, 2024
@mthmulders
Copy link
Contributor

Shouldn't the subprojects be transformed to modules in the consumer pom?

@gnodet
Copy link
Contributor Author

gnodet commented Aug 15, 2024

Shouldn't the subprojects be transformed to modules in the consumer pom?

Actually, the modules/subprojects are build information, so not available in the consumer POM.

@gnodet gnodet marked this pull request as draft August 16, 2024 12:21
@gnodet gnodet marked this pull request as ready for review August 27, 2024 20:25
@gnodet gnodet added this to the 4.0.0-beta-4 milestone Aug 27, 2024
@gnodet gnodet requested a review from cstamas August 27, 2024 21:10
@gnodet gnodet merged commit b370e5e into master Aug 29, 2024
@slawekjaranowski slawekjaranowski deleted the subprojects branch June 7, 2025 12:55
@slawekjaranowski
Copy link
Member

source branch deleted

@jira-importer
Copy link

Resolve #9793

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.

7 participants