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

Include LICENSE in the generated jar under META-INF. #6477

Closed
wants to merge 0 commits into from

Conversation

copybara-service[bot]
Copy link
Contributor

Include LICENSE in the generated jar under META-INF.

Fixes #6468

I'd looked at how Guice does this, which pulls the Apache license from a remote server (and also generates additional DEPENDENCIES and NOTICE files). But I figured it was simplest to just point maven-resources-plugin at our local LICENSE file: maven-resources-plugin can work with any license, whereas I'm not sure if Guice's apache-jar-resource-bundle approach can. Plus, I want to figure maven-resources-plugin out, anyway, for Proguard purposes.

Conveniently, I'm pretty confident that our existing resources configuration isn't necessary: Maybe it was years ago, but nowadays, we have no results for find */src android/*/src -type f -not -name '*.java' (except under guava-gwt, which overrides resources and which I verified builds an identical jar after this change).

RELNOTES=n/a

@copybara-service copybara-service bot closed this May 8, 2023
@copybara-service copybara-service bot deleted the test_530338363 branch May 8, 2023 18:37
copybara-service bot pushed a commit to google/escapevelocity that referenced this pull request May 8, 2023
copybara-service bot pushed a commit to google/guava-beta-checker that referenced this pull request May 8, 2023
copybara-service bot pushed a commit to google/compile-testing that referenced this pull request May 8, 2023
copybara-service bot pushed a commit to google/jimfs that referenced this pull request May 8, 2023
copybara-service bot pushed a commit to google/truth that referenced this pull request May 8, 2023
copybara-service bot pushed a commit to google/compile-testing that referenced this pull request May 9, 2023
See google/guava#6468 and google/guava#6477.

I cowardly did not look into Auto and its many pom.xml files. And I gave up on jimfs when its jar didn't end up containing the license... maybe somehow related to how it has other files autogenerated into `META-INF`??

RELNOTES=n/a
PiperOrigin-RevId: 530400894
copybara-service bot pushed a commit to google/guava-beta-checker that referenced this pull request May 9, 2023
See google/guava#6468 and google/guava#6477.

I cowardly did not look into Auto and its many pom.xml files. And I gave up on jimfs when its jar didn't end up containing the license... maybe somehow related to how it has other files autogenerated into `META-INF`??

RELNOTES=n/a
PiperOrigin-RevId: 530400894
copybara-service bot pushed a commit to google/escapevelocity that referenced this pull request May 9, 2023
See google/guava#6468 and google/guava#6477.

I cowardly did not look into Auto and its many pom.xml files. And I gave up on jimfs when its jar didn't end up containing the license... maybe somehow related to how it has other files autogenerated into `META-INF`??

RELNOTES=n/a
PiperOrigin-RevId: 530400894
copybara-service bot pushed a commit to google/truth that referenced this pull request May 9, 2023
See google/guava#6468 and google/guava#6477.

I cowardly did not look into Auto and its many pom.xml files. And I gave up on jimfs when its jar didn't end up containing the license... maybe somehow related to how it has other files autogenerated into `META-INF`??

RELNOTES=n/a
PiperOrigin-RevId: 530400894
copybara-service bot pushed a commit to google/compile-testing that referenced this pull request May 9, 2023
See google/guava#6468 and google/guava#6477.

I cowardly did not look into Auto and its many pom.xml files. And I gave up on jimfs when its jar didn't end up containing the license... maybe somehow related to how it has other files autogenerated into `META-INF`??

RELNOTES=n/a
PiperOrigin-RevId: 530613491
copybara-service bot pushed a commit to google/guava-beta-checker that referenced this pull request May 9, 2023
See google/guava#6468 and google/guava#6477.

I cowardly did not look into Auto and its many pom.xml files. And I gave up on jimfs when its jar didn't end up containing the license... maybe somehow related to how it has other files autogenerated into `META-INF`??

RELNOTES=n/a
PiperOrigin-RevId: 530613491
copybara-service bot pushed a commit to google/truth that referenced this pull request May 9, 2023
See google/guava#6468 and google/guava#6477.

I cowardly did not look into Auto and its many pom.xml files. And I gave up on jimfs when its jar didn't end up containing the license... maybe somehow related to how it has other files autogenerated into `META-INF`??

RELNOTES=n/a
PiperOrigin-RevId: 530613491
copybara-service bot pushed a commit to google/escapevelocity that referenced this pull request May 9, 2023
See google/guava#6468 and google/guava#6477.

I cowardly did not look into Auto and its many pom.xml files. And I gave up on jimfs when its jar didn't end up containing the license... maybe somehow related to how it has other files autogenerated into `META-INF`??

RELNOTES=n/a
PiperOrigin-RevId: 530613491
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.

Please include LICENSE file under META-INF/ in the release jars
0 participants