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

Cleanup deprecations to develop next major version (v2) #515

Merged
merged 41 commits into from
Nov 11, 2024

Conversation

sjoerdtalsma
Copy link
Contributor

@sjoerdtalsma sjoerdtalsma commented Nov 4, 2024

Main tasks to create new development baseline for next major release (v2).

  • Java version bumped to Java8 mimimum
  • ContextManager.getActiveContext() replaced by getActiveContextValue().
  • ContextManager.clear() will require an implementation. is part of ContextManager interface.
  • All @Deprecated(forRemoval=true) is to be removed.
  • Document @since 2.0.0 for new functionality

@coveralls
Copy link

coveralls commented Nov 4, 2024

Coverage Status

coverage: 94.949% (+3.3%) from 91.679%
when pulling 74c436a on develop-v2
into 72abd11 on develop.

@sjoerdtalsma sjoerdtalsma force-pushed the develop-v2 branch 2 times, most recently from 4771761 to 8eac61d Compare November 8, 2024 12:30
@sjoerdtalsma sjoerdtalsma marked this pull request as ready for review November 8, 2024 12:36
@sjoerdtalsma
Copy link
Contributor Author

@Marcono1234 I hate to ask, but since you contributed before, could you have a look at this pull request I have prepared as new baseline for a greatly simplified, quicker 2.0 version?

By no means you have to do a full, detailed review (although welcome).
A quick opinion on the API changes would already be greatly appreciated! 🙏

Signed-off-by: Sjoerd Talsma <sjoerdtalsma@users.noreply.github.com>
Signed-off-by: Sjoerd Talsma <sjoerdtalsma@users.noreply.github.com>
Signed-off-by: Sjoerd Talsma <sjoerdtalsma@users.noreply.github.com>
Signed-off-by: Sjoerd Talsma <sjoerdtalsma@users.noreply.github.com>
Signed-off-by: Sjoerd Talsma <sjoerdtalsma@users.noreply.github.com>
…hot>

Signed-off-by: Sjoerd Talsma <sjoerdtalsma@users.noreply.github.com>
Signed-off-by: Sjoerd Talsma <sjoerdtalsma@users.noreply.github.com>
Signed-off-by: Sjoerd Talsma <sjoerdtalsma@users.noreply.github.com>
Signed-off-by: Sjoerd Talsma <sjoerdtalsma@users.noreply.github.com>
Signed-off-by: Sjoerd Talsma <sjoerdtalsma@users.noreply.github.com>
Signed-off-by: Sjoerd Talsma <sjoerdtalsma@users.noreply.github.com>
Signed-off-by: Sjoerd Talsma <sjoerdtalsma@users.noreply.github.com>
Signed-off-by: Sjoerd Talsma <sjoerdtalsma@users.noreply.github.com>
…ching).

Signed-off-by: Sjoerd Talsma <sjoerdtalsma@users.noreply.github.com>
Signed-off-by: Sjoerd Talsma <sjoerdtalsma@users.noreply.github.com>
…core.

Signed-off-by: Sjoerd Talsma <sjoerdtalsma@users.noreply.github.com>
Signed-off-by: Sjoerd Talsma <sjoerdtalsma@users.noreply.github.com>
…observer at some point.

Signed-off-by: Sjoerd Talsma <sjoerdtalsma@users.noreply.github.com>
… modules.

Signed-off-by: Sjoerd Talsma <sjoerdtalsma@users.noreply.github.com>
Signed-off-by: Sjoerd Talsma <sjoerdtalsma@users.noreply.github.com>
Signed-off-by: Sjoerd Talsma <sjoerdtalsma@users.noreply.github.com>
Signed-off-by: Sjoerd Talsma <sjoerdtalsma@users.noreply.github.com>
Signed-off-by: Sjoerd Talsma <sjoerdtalsma@users.noreply.github.com>
Signed-off-by: Sjoerd Talsma <sjoerdtalsma@users.noreply.github.com>
Signed-off-by: Sjoerd Talsma <sjoerdtalsma@users.noreply.github.com>
Signed-off-by: Sjoerd Talsma <sjoerdtalsma@users.noreply.github.com>
Signed-off-by: Sjoerd Talsma <sjoerdtalsma@users.noreply.github.com>
Signed-off-by: Sjoerd Talsma <sjoerdtalsma@users.noreply.github.com>
Signed-off-by: Sjoerd Talsma <sjoerdtalsma@users.noreply.github.com>
Signed-off-by: Sjoerd Talsma <sjoerdtalsma@users.noreply.github.com>
… dependencies.

Signed-off-by: Sjoerd Talsma <sjoerdtalsma@users.noreply.github.com>
Signed-off-by: Sjoerd Talsma <sjoerdtalsma@users.noreply.github.com>
…tivating snapshots.

This should be a significant performance improvement.

Signed-off-by: Sjoerd Talsma <sjoerdtalsma@users.noreply.github.com>
…tivating snapshots.

This should be a significant performance improvement.

Signed-off-by: Sjoerd Talsma <sjoerdtalsma@users.noreply.github.com>
Signed-off-by: Sjoerd Talsma <sjoerdtalsma@users.noreply.github.com>
…ed temporarily.

Signed-off-by: Sjoerd Talsma <sjoerdtalsma@users.noreply.github.com>
Signed-off-by: Sjoerd Talsma <sjoerdtalsma@users.noreply.github.com>
Signed-off-by: Sjoerd Talsma <sjoerdtalsma@users.noreply.github.com>
Signed-off-by: Sjoerd Talsma <sjoerdtalsma@users.noreply.github.com>
@sjoerdtalsma sjoerdtalsma merged commit cfc2f49 into develop Nov 11, 2024
7 checks passed
@sjoerdtalsma sjoerdtalsma deleted the develop-v2 branch November 11, 2024 21:14
Copy link
Contributor

@Marcono1234 Marcono1234 left a comment

Choose a reason for hiding this comment

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

Sorry for the delay. I am currently not using this library, so I don't know how the changes and the new API feels for users. However, to me the changes look good and reasonable because they really simplify multiple parts.

I did not have an in-depth look at the changes, but hopefully the review comments are useful nonetheless.

@sjoerdtalsma
Copy link
Contributor Author

Sorry for the delay. I am currently not using this library, so I don't know how the changes and the new API feels for users. However, to me the changes look good and reasonable because they really simplify multiple parts.

I did not have an in-depth look at the changes, but hopefully the review comments are useful nonetheless.

@Marcono1234 thank you so much for the review and the many issues you caught!

I am contemplating on creating actual modules instead of the automatic modulenames currently used.
But those will definitely require tests with both a java8 and java 9+ test project, so still quite a bit of work, also because the serviceloader mechanism works differntly then.

@Marcono1234
Copy link
Contributor

Just in case you aren't aware of it, the ModiTect Maven Plugin can be used to add a module descriptor to the JAR. And if you specify <jvmVersion>9</jvmVersion>, then it will be a Multi-Release JAR, and the module-info.class should (in most cases) not cause issues for Java 8 users of your library.

But I am not sure if it is worth it adding a module descriptor instead of using automatic module names at the moment.

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.

3 participants