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

WIP - Create Picocli example codestart for Quarkus JBang project type #13826

Closed
wants to merge 62 commits into from

Conversation

nicobao
Copy link
Contributor

@nicobao nicobao commented Dec 10, 2020

Thanks for your feedback!
EDIT: Okay, I screwed up with git rebase it seems like.

Closes #13208

jtama and others added 30 commits December 10, 2020 22:32
And also exercise the bytecode in the test extension.
Bumps [caffeine](https://github.com/ben-manes/caffeine) from 2.8.6 to 2.8.7.
- [Release notes](https://github.com/ben-manes/caffeine/releases)
- [Commits](ben-manes/caffeine@v2.8.6...v2.8.7)

Signed-off-by: dependabot[bot] <support@github.com>
In the repository pattern example the fields of Person are private. Therefore, in the following usage example setters have to be used instead of direct field access.
The previous error logging was obnoxious and cluttered
the test logs for no good reason
1. It's not necessary, because we will contribute annotated classes
   through the scanner.
2. It's harmful, because getManagedClassNames() can also return
   *package* names, while annotatedClassNames is exclusively about
   classes. In the end, this leads to a ClassNotFoundError when
   Hibernate ORM interprets annotatedClassNames.

Regarding the assertion "getManagedClassNames() can also return
*package* names", see for proof:

- how org.hibernate.boot.archive.scan.internal.ScanResultCollector.isListedOrDetectable
  is used for packages too, even though it relies (indirectly) on getManagedClassNames().
- the comment at org/hibernate/boot/model/process/internal/ScanningCoordinator.java:246:
  "IMPL NOTE : "explicitlyListedClassNames" can contain class or package names..."

Signed-off-by: Yoann Rodière <yoann@hibernate.org>
…es()

getManagedClassNames() can also return *package* names.

See for proof:

- how org.hibernate.boot.archive.scan.internal.ScanResultCollector.isListedOrDetectable
  is used for packages too, even though it relies (indirectly) on getManagedClassNames().
- the comment at org/hibernate/boot/model/process/internal/ScanningCoordinator.java:246:
  "IMPL NOTE : "explicitlyListedClassNames" can contain class or package names..."

Signed-off-by: Yoann Rodière <yoann@hibernate.org>
Signed-off-by: Yoann Rodière <yoann@hibernate.org>
Signed-off-by: Yoann Rodière <yoann@hibernate.org>
Signed-off-by: Yoann Rodière <yoann@hibernate.org>
Signed-off-by: Yoann Rodière <yoann@hibernate.org>
Signed-off-by: Yoann Rodière <yoann@hibernate.org>
Bumps [flyway-core](https://github.com/flyway/flyway) from 7.3.0 to 7.3.1.
- [Release notes](https://github.com/flyway/flyway/releases)
- [Commits](flyway/flyway@flyway-7.3.0...flyway-7.3.1)

Signed-off-by: dependabot[bot] <support@github.com>
Per discussion with Martin.
@ghost ghost added area/arc Issue related to ARC (dependency injection) area/cache area/cli Related to quarkus cli (not maven/gradle/etc.) area/codestarts area/core area/dependencies Pull requests that update a dependency file area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins area/documentation area/graphql area/hibernate-orm Hibernate ORM area/hibernate-search Hibernate Search area/hibernate-reactive Hibernate Reactive area/infra-automation anything related to CI, bots, etc. that are used to automated our infrastructure area/jbang Issues related to when using jbang.dev with Quarkus area/maven area/metrics area/mongodb area/oidc area/panache area/persistence OBSOLETE, DO NOT USE area/qute The template engine area/rest area/scheduler area/smallrye area/testing area/undertow labels Dec 10, 2020
@nicobao
Copy link
Contributor Author

nicobao commented Dec 10, 2020

Sorry for the mess - I send another PR.

@nicobao nicobao closed this Dec 10, 2020
@ghost ghost added the triage/invalid This doesn't seem right label Dec 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/arc Issue related to ARC (dependency injection) area/cache area/cli Related to quarkus cli (not maven/gradle/etc.) area/codestarts area/core area/dependencies Pull requests that update a dependency file area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins area/documentation area/graphql area/hibernate-orm Hibernate ORM area/hibernate-reactive Hibernate Reactive area/hibernate-search Hibernate Search area/infra-automation anything related to CI, bots, etc. that are used to automated our infrastructure area/jbang Issues related to when using jbang.dev with Quarkus area/maven area/metrics area/mongodb area/oidc area/panache area/persistence OBSOLETE, DO NOT USE area/qute The template engine area/rest area/scheduler area/smallrye area/testing area/undertow triage/invalid This doesn't seem right
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create a Picocli example codestart for Quarkus JBang project type