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

Add module-info.java #557

Open
cowwoc opened this issue Jul 10, 2023 · 1 comment
Open

Add module-info.java #557

cowwoc opened this issue Jul 10, 2023 · 1 comment

Comments

@cowwoc
Copy link

cowwoc commented Jul 10, 2023

Please add module-info.java to this library. This is what I've got so far, but please review:

module p6spy
{
  requires java.sql;
  requires java.management;
  requires org.slf4j;

  uses com.p6spy.engine.logging.LoggingEventListener;
  uses com.p6spy.engine.spy.JdbcEventListenerFactory;
  uses com.p6spy.engine.event.JdbcEventListener;
  provides java.sql.Driver with com.p6spy.engine.spy.P6SpyDriver;

  exports com.p6spy.engine.spy;
  exports com.p6spy.engine.spy.option;
  exports com.p6spy.engine.logging;
  exports com.p6spy.engine.event;
}
@cowwoc
Copy link
Author

cowwoc commented Oct 1, 2023

Using the multi-release JAR approach, you can maintain backwards compatibility to older versions of Java. See the multiReleaseOutput property in https://www.baeldung.com/maven-multi-release-jars for the easiest way to proceed.

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

No branches or pull requests

1 participant