-
Notifications
You must be signed in to change notification settings - Fork 752
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
fix: module name → com.google.errorprone.annotations
#4317
Conversation
@@ -14,7 +14,7 @@ | |||
* limitations under the License. | |||
*/ | |||
|
|||
open module com.google.errorprone.annotation { | |||
open module com.google.errorprone.annotations { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Module fix. One million palms on face.
Bundle-SymbolicName: com.google.$<replacestring;$<replacestring;${project.artifactId};^error_prone;errorprone>;_;.> | ||
Automatic-Module-Name: $<Bundle-SymbolicName> | ||
-exportcontents: com.google.errorprone*,!META-INF.* | ||
-exportcontents: com.google.errorprone* | ||
-noextraheaders: true | ||
-removeheaders: Private-Package | ||
-fixupmessages: ^Classes found in the wrong directory: .* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice silver lining: the OSGI configuration at the top level is now completely restored to what it was before. Only the annotations
module has OSGi build customizations. In fact, my original JPMS PR (after this) is probably localized completely to annotations/pom.xml
.
- fix: name in `module-info.java` for `annotations` module - fix: don't emit `Automatic-Module-Name` in `annotations` module - chore: preserve all other aspects of OSGi and JAR builds Relates-To: google#4311 Signed-off-by: Sam Gammon <[email protected]>
21f6869
to
bc52c58
Compare
<!-- | ||
The OSGi bundle build is overridden here to allow for MRJAR classes in the | ||
versioned class space underneath META-INF. | ||
|
||
The `annotations` module also should not have an `Automatic-Module-Name`. | ||
Otherwise, these flags should stay in-sync with the same block in the root | ||
`pom.xml`. | ||
--> | ||
<bnd><![CDATA[ | ||
Bundle-SymbolicName: com.google.errorprone.annotations | ||
-exportcontents: com.google.errorprone*,!META-INF.* | ||
-noextraheaders: true | ||
-removeheaders: Private-Package | ||
-fixupmessages: ^Classes found in the wrong directory: .* | ||
]]></bnd> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix: OSGI plugin now has a dedicated run within the child project, and suppresses the parent run with <phase>none</phase>
.
## Summary Fixes the module name: ~~`com.google.errorprone.annotation`~~ → `com.google.errorprone.annotations`. Amends the OSGi build not to include `Automatic-Module-Name` in the `MANIFEST.MF` for the `annotations` project. ## Changelog - fix: name in `module-info.java` for `annotations` module - fix: don't emit `Automatic-Module-Name` in `annotations` module - chore: preserve all other aspects of OSGi and JAR builds Relates to [discussion](#4311 (comment)) in #4311. Double checked for correct JAR structure; see [these screenshots](#4311 (comment)). cc / @cushon @ben-manes Fixes #4317 FUTURE_COPYBARA_INTEGRATE_REVIEW=#4317 from sgammon:fix/module-name bc52c58 PiperOrigin-RevId: 615074017
## Summary Fixes the module name: ~~`com.google.errorprone.annotation`~~ → `com.google.errorprone.annotations`. Amends the OSGi build not to include `Automatic-Module-Name` in the `MANIFEST.MF` for the `annotations` project. ## Changelog - fix: name in `module-info.java` for `annotations` module - fix: don't emit `Automatic-Module-Name` in `annotations` module - chore: preserve all other aspects of OSGi and JAR builds Relates to [discussion](#4311 (comment)) in #4311. Double checked for correct JAR structure; see [these screenshots](#4311 (comment)). cc / @cushon @ben-manes Fixes #4317 FUTURE_COPYBARA_INTEGRATE_REVIEW=#4317 from sgammon:fix/module-name bc52c58 PiperOrigin-RevId: 615074017
Summary
Fixes the module name:
→com.google.errorprone.annotation
com.google.errorprone.annotations
. Amends the OSGi build not to includeAutomatic-Module-Name
in theMANIFEST.MF
for theannotations
project.Changelog
module-info.java
forannotations
moduleAutomatic-Module-Name
inannotations
moduleRelates to discussion in #4311. Double checked for correct JAR structure; see these screenshots.
cc / @cushon @ben-manes