Skip to content

Rename modules and folders to match artifact names #2596

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

Merged
merged 1 commit into from
Jul 31, 2022

Conversation

mpkorstanje
Copy link
Contributor

@mpkorstanje mpkorstanje commented Jul 31, 2022

Polyglot release[1] assumes that projects follow a certain layout. Specifically
it assumes a project is polyglot if (amongst other conditions) there is a
java/pom.xml file.

This project however is not polyglot. The cucumber-java module is kep in the
java folder. And this trips up Polyglot release. By renaming all folders and
modules to match the artifact names we can avoid this problem.

It also simplifies the project by removing the number of unique identifiers for
(more or less) the same thing. But that is just a nice coincidence.

1: https://github.com/cucumber/polyglot-release

@codecov
Copy link

codecov bot commented Jul 31, 2022

Codecov Report

Merging #2596 (c7aea92) into main (1ccc09f) will not change coverage.
The diff coverage is n/a.

❗ Current head c7aea92 differs from pull request most recent head 2dc0deb. Consider uploading reports for the commit 2dc0deb to get more accurate results

@@            Coverage Diff            @@
##               main    #2596   +/-   ##
=========================================
  Coverage     84.63%   84.63%           
  Complexity     2711     2711           
=========================================
  Files           321      321           
  Lines          9497     9497           
  Branches        907      907           
=========================================
  Hits           8038     8038           
  Misses         1128     1128           
  Partials        331      331           
Impacted Files Coverage Δ
...i2/src/main/java/io/cucumber/cdi2/Cdi2Factory.java 98.21% <ø> (ø)
...mber-core/src/main/java/cucumber/api/cli/Main.java 0.00% <ø> (ø)
...ucumber/core/backend/CucumberBackendException.java 50.00% <ø> (ø)
...ore/backend/CucumberInvocationTargetException.java 100.00% <ø> (ø)
...io/cucumber/core/backend/DefaultObjectFactory.java 83.33% <ø> (ø)
.../io/cucumber/core/backend/JavaMethodReference.java 42.10% <ø> (ø)
...rc/main/java/io/cucumber/core/backend/Located.java 100.00% <ø> (ø)
.../java/io/cucumber/core/backend/ScenarioScoped.java 100.00% <ø> (ø)
...java/io/cucumber/core/backend/SourceReference.java 100.00% <ø> (ø)
...umber/core/backend/StackTraceElementReference.java 50.00% <ø> (ø)
... and 418 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1ccc09f...2dc0deb. Read the comment docs.

Polyglot release[1] assumes that projects follow a certain layout. Specifically
it assumes a project is polyglot if (amongst other conditions) there is a
`java/pom.xml` file.

This project however is not polyglot. The `cucumber-java` module is kep in the
`java` folder. And this trips up Polyglot release. By renaming all folders and
modules to match the artifact names we can avoid this problem.

It also simplifies the project by removing the number of unique identifiers for
(more or less) the same thing. But that is just a nice coincidence.

1: https://github.com/cucumber/polyglot-release
@mpkorstanje mpkorstanje force-pushed the modules-names-match-directory branch from c7aea92 to 2dc0deb Compare July 31, 2022 15:29
@mpkorstanje mpkorstanje changed the title Module names should match folder names Rename modules and folders to match artifact names Jul 31, 2022
@mpkorstanje mpkorstanje marked this pull request as ready for review July 31, 2022 15:34
@mpkorstanje mpkorstanje merged commit ee6b693 into main Jul 31, 2022
@mpkorstanje mpkorstanje deleted the modules-names-match-directory branch July 31, 2022 15:34
mpkorstanje added a commit to cucumber/docs that referenced this pull request Jul 31, 2022
With cucumber/cucumber-jvm#2596 the internal structure got
changed somewhat. Updated all the documentation links to match these changes.
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.

1 participant