[MENFORCER-422] Added externalRules rule by gastaldi · Pull Request #180 · apache/maven-enforcer (original) (raw)

@gastaldi

Following this checklist to help us incorporate your
contribution quickly and easily:

If your pull request is about ~20 lines of code you don't need to sign an
Individual Contributor License Agreement if you are unsure
please ask on the developers list.

To make clear that you license your contribution under
the Apache License Version 2.0, January 2004
you have to acknowledge this by using the following check-box.

ppalaga

Choose a reason for hiding this comment

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

This would be great, thanks @gastaldi! Some comments inline.

Another important feature for the future: be able to customize the descriptor before processing, ideally through an XSLT. Motivation: some artifacts that are banned in Quarkus might be required in Camel Quarkus. With XSLT I could remove those specific ones from Quarkus descriptor and keep the rest.

ppalaga

@gastaldi

Another important feature for the future: be able to customize the descriptor before processing, ideally through an XSLT. Motivation: some artifacts that are banned in Quarkus might be required in Camel Quarkus. With XSLT I could remove those specific ones from Quarkus descriptor and keep the rest.

@ppalaga because other transformation steps might be needed and because I wanted to keep it simple, I think this would be better served if the transformed file were already available as a separate dependency (eg. you could use the Maven dependency plugin to unpack the original rule XML, transform and include the transformed file in another dependency with another GAV), but we can discuss about that.

@ppalaga

you could use the Maven dependency plugin to unpack the original rule XML, transform and include the transformed file in another dependency with another GAV), but we can discuss about that.

Yes, I know, but it is a sh** lot of XML that I hoped to be able to avoid :)

@gastaldi gastaldi changed the title[MENFORCER-422] Added descriptors rule [MENFORCER-422] Added externalRules rule

Aug 11, 2022

ppalaga

ppalaga

Choose a reason for hiding this comment

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

The code looks great!
I made one JavaDoc suggestion inline.
Otherwise, I wonder whether there is any Enforcer end user docs, where an externalRules example could be added?

@gastaldi

Otherwise, I wonder whether there is any Enforcer end user docs, where an externalRules example could be added?

I added an example doc in the generated site

gastaldi added a commit to gastaldi/quarkus that referenced this pull request

Aug 15, 2022

@gastaldi

gastaldi added a commit to quarkusio/quarkus that referenced this pull request

Aug 15, 2022

@gastaldi

gastaldi added a commit to gastaldi/quarkus that referenced this pull request

Aug 15, 2022

@gastaldi

gastaldi added a commit to gastaldi/quarkus that referenced this pull request

Aug 16, 2022

@gastaldi

ppalaga

Choose a reason for hiding this comment

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

Thanks @gastaldi, some small docs suggestions inline.

gastaldi added a commit to gastaldi/quarkus that referenced this pull request

Aug 16, 2022

@gastaldi

gastaldi added a commit to gastaldi/quarkus that referenced this pull request

Aug 17, 2022

@gastaldi

ppalaga

Choose a reason for hiding this comment

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

Great work, thanks a lot, @gastaldi !

@ppalaga

Would you like to review, @michael-o ? Otherwise, I could merge.

michael-o

@gastaldi @ppalaga

Co-authored-by: Peter Palaga ppalaga@redhat.com

michael-o

Choose a reason for hiding this comment

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

Beyond those I have no objections. I will leave the merge to your judgement.

gastaldi added a commit to gastaldi/quarkus that referenced this pull request

Aug 18, 2022

@gastaldi

@ppalaga

@ppalaga

@michael-o do you happen to know whether an Enforcer release is planned already? Not sure where to look for that kind of info, although I am a committer.

@michael-o

@michael-o do you happen to know whether an Enforcer release is planned already? Not sure where to look for that kind of info, although I am a committer.

We don't publish any plans since we are volunteers.

First of all, please complete the accompanying JIRA issue. Second, someone needs to tackle https://issues.apache.org/jira/browse/MENFORCER-407 then we can consider a release.

@ppalaga

gastaldi added a commit to gastaldi/quarkus that referenced this pull request

Aug 23, 2022

@gastaldi

gastaldi added a commit to gastaldi/quarkus that referenced this pull request

Aug 23, 2022

@gastaldi

gastaldi added a commit to gastaldi/quarkus that referenced this pull request

Aug 23, 2022

@gastaldi

gastaldi added a commit to gastaldi/quarkus that referenced this pull request

Aug 23, 2022

@gastaldi

gastaldi added a commit to gastaldi/quarkus that referenced this pull request

Aug 23, 2022

@gastaldi

gastaldi added a commit to gastaldi/quarkus that referenced this pull request

Aug 25, 2022

@gastaldi

gastaldi added a commit to gastaldi/quarkus that referenced this pull request

Aug 26, 2022

@gastaldi

fercomunello pushed a commit to fercomunello/quarkus that referenced this pull request

Aug 31, 2022

@gastaldi @fercomunello

evanchooly pushed a commit to nenros/quarkus that referenced this pull request

Sep 8, 2022

@gastaldi

@jira-importer

1 similar comment

@jira-importer

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})