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

4.2.13 has runtime dependencies on org.osgi.core, org.osgi.enterprise, and waffle-jna #1799

Closed
wilkinsona opened this issue Jun 10, 2020 · 2 comments

Comments

@wilkinsona
Copy link

Describe the issue

In the move to Gradle, the scope of some dependencies has changed. In 4.2.12 they seem to have been declared as <scope>provided</scope> but they're now <scope>runtime<scope>. As a result they end up on the classpath of consuming projects where they may not be needed. Here are the dependencies in the pom that I believe are scoped incorrectly:

<dependency>
    <groupId>com.github.waffle</groupId>
    <artifactId>waffle-jna</artifactId>
    <version>1.9.1</version>
    <scope>runtime</scope>
</dependency>
<dependency>
    <groupId>org.osgi</groupId>
    <artifactId>org.osgi.core</artifactId>
    <version>4.3.1</version>
    <scope>runtime</scope>
</dependency>
<dependency>
    <groupId>org.osgi</groupId>
    <artifactId>org.osgi.enterprise</artifactId>
    <version>4.2.0</version>
    <scope>runtime</scope>
</dependency>

Driver Version?

4.2.13

Java Version?

Any

OS Version?

Any

PostgreSQL Version?

N/A

To Reproduce

Add a dependency on 4.2.13 of the Postgres JDBC driver

Expected behaviour

org.osgi.core, org.osgi.enterprise, and waffle-jna do not end up on the classpath of the consuming project.

Logs

N/A

@davecramer
Copy link
Member

duplicate of issue 1795

@wilkinsona
Copy link
Author

Sorry for the duplicate. I searched for OSGi and Waffle but didn't manage to find #1795.

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

2 participants