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

Introduce BansRuntimeDependency for extensions/* #12220

Merged
merged 1 commit into from
Sep 22, 2020
Merged

Introduce BansRuntimeDependency for extensions/* #12220

merged 1 commit into from
Sep 22, 2020

Conversation

famod
Copy link
Member

@famod famod commented Sep 20, 2020

Resolves #11174 (and should prevent such tedious tasks as #12205)

  • refactor RequiresMinimalDeploymentDependency for common base class
  • extend invoker smoketest (now with 3 executions)
  • disable invoker tests for -Dquickly
  • activate new rule for all extensions in extensions-parent
  • change parent of all extensions from build-parent to extensions-parent
  • fix found rule violations

/cc @gsmet @aloubyansky @gastaldi

Resolves #11174

- refactor RequiresMinimalDeploymentDependency for common base class
- extend invoker smoketest (now with 3 executions)
- disable invoker tests for -Dquickly
- activate new rule for all extensions in extensions-parent
- change parent of all extensions from build-parent to extensions-parent
- fix found rule violations
Copy link
Contributor

@gastaldi gastaldi left a comment

Choose a reason for hiding this comment

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

LGTM. Let's wait for others to review before we merge this. Great job @famod !

@gastaldi gastaldi added this to the 1.9.0 - master milestone Sep 21, 2020
@geoand
Copy link
Contributor

geoand commented Sep 21, 2020

Very very cool!

@geoand
Copy link
Contributor

geoand commented Sep 21, 2020

One issue I see is that once we merge this, we will need to alert the community as their extensions could potentially break

@famod
Copy link
Member Author

famod commented Sep 21, 2020

@geoand I am missing some details about that.
How are those enforcer rules integrated into community extensions?

@geoand
Copy link
Contributor

geoand commented Sep 21, 2020

I guess I am the one that spoke too soon 😂.

I thought that this contained a change in Quarkus bootstrap that would cause a failure is the extension was not properly configured.
However that's obviously not the case, so no issue 😎

@famod
Copy link
Member Author

famod commented Sep 21, 2020

@geoand no problem!
I mean there is a distributionManagement in enforcer-rules, so usage outside of the main repo might come sooner or later.

Copy link
Member

@aloubyansky aloubyansky left a comment

Choose a reason for hiding this comment

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

Great work @famod Thanks!

@aloubyansky aloubyansky merged commit a4d4fda into quarkusio:master Sep 22, 2020
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.

Enforce the rule "don't use runtime dependencies in deployment artifacts"
4 participants