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

bndautomanifest (Java 9 module -> OSGi) #29

Open
nedtwigg opened this issue Mar 16, 2017 · 1 comment
Open

bndautomanifest (Java 9 module -> OSGi) #29

nedtwigg opened this issue Mar 16, 2017 · 1 comment

Comments

@nedtwigg
Copy link
Member

In gradle 3.4, there is now support for separate api and implementation dependencies.

dependencies {
    api 'commons-httpclient:commons-httpclient:3.1'
    implementation 'org.apache.commons:commons-lang3:3.5'
}

Soon (Q2 2017), it will also support declaring which packages are API.

api {
    exports 'com.somepackage'
}

Once this ships, we will create a plugin, osgi.bndautomanifest, which will use this metadata to automatically configure osgi.bndmanifest.

This way any library with Java 9 module metadata can easily support OSGi. Also, the api and implementation separation allows gradle to enforce that the implementation details aren't accidentally leaking into the api.

@nedtwigg
Copy link
Member Author

gradle-modules-plugin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant