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 a deploy_env attribute to java_export #534

Merged
merged 4 commits into from
Mar 15, 2021

Conversation

shs96c
Copy link
Collaborator

@shs96c shs96c commented Mar 11, 2021

This allows java_export to be used to generate things such as
plugins for Apache Spark or jar files for use in JEE servers by
excluding provided dependencies from the generated jars. This is
analagous to maven's provided scope, and maps to the deploy_env
attribute of java_binary.

The difference between java_export and java_binary's deploy_env
is that java_export allows anything that provides a JavaInfo as an
input to deploy_env. This is because the expected use-cases are for
things that are normally provided as regular imports from a maven
dependency, rather than a custom binary.

This allows `java_export` to be used to generate things such as
plugins for Apache Spark or jar files for use in JEE servers by
excluding provided dependencies from the generated jars. This is
analagous to maven's `provided` scope, and maps to the `deploy_env`
attribute of `java_binary`.

The difference between `java_export` and `java_binary`'s `deploy_env`
is that `java_export` allows anything that provides a `JavaInfo` as an
input to `deploy_env`. This is because the expected use-cases are for
things that are normally provided as regular imports from a maven
dependency, rather than a custom binary.
docs/api.md Outdated Show resolved Hide resolved
tests/integration/java_export/check-deploy-env.sh Outdated Show resolved Hide resolved
@shs96c shs96c merged commit eecd253 into bazelbuild:master Mar 15, 2021
@shs96c shs96c deleted the deploy-env branch March 15, 2021 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants