Conversation
|
R: @lukecwik |
sdks/java/core/pom.xml
Outdated
| <artifactId>maven-compiler-plugin</artifactId> | ||
| <configuration> | ||
| <excludes> | ||
| <exclude>**/package-info.java</exclude> |
There was a problem hiding this comment.
The new excludes section overrides the global one, so I had to repeat here. If you have a maven tip to avoid it, I'm happy to accept.
There was a problem hiding this comment.
No longer needed. Thanks for the pkginfo tip.
|
R: @davorbonaci May I ask what's the impact here? Those are static, rarely changing files. What would we gain with this? |
|
I presume you mean all the Since |
|
As Kenn said, the compiler always re-runs because it thinks there is a missing class file, alternatively we could tell the java compiler to always produce package-info classes via -Xpkginfo:always, but that is a non-standard option so I think filtering them out is better. |
75ae620 to
481bfcb
Compare
|
Ping, let's add R: @davorbonaci This is a nearly no-op change that actually just suppresses a maven bug. |
|
I think I'd prefer |
830a75c to
c0e45f1
Compare
|
Agreed & done. |
c0e45f1 to
2d4643d
Compare
This file is generated exclusively through maven filtering, but causes spurious rebuilds.
2d4643d to
31e15ea
Compare
|
Pretty exciting. Looks like the current status causes a bug in the Java 7 compilers on Linux & Mac :-) |
31e15ea to
8d90dd5
Compare
|
Please take another look. This can actually save many minutes for anyone using command-line |
|
The travis builds are failing with an exception in the compiler, I don't think we can check this in. |
|
Agreed. Really curious. |
|
Looks like it is just a total bug, not fixed until Java 8: https://bugs.openjdk.java.net/browse/JDK-8022161 |
8d90dd5 to
176bebc
Compare
|
Looks like |
Co-authored-by: Christopher Wilcox <crwilcox@google.com>
Be sure to do all of the following to help us incorporate your contribution
quickly and easily:
[BEAM-<Jira issue #>] Description of pull requestmvn clean verify. (Even better, enableTravis-CI on your fork and ensure the whole test matrix passes).
<Jira issue #>in the title with the actual Jira issuenumber, if there is one.
Individual Contributor License Agreement.
This is a low tech solution that mostly keeps the status quo but seems to eliminate the extra builds. The current method won't work if the SDK is ever shaded, since it depends on absolute paths in magic strings, but this PR doesn't try to solve that problem.