18 Commits
Author SHA1 Message Date
Sam Berlin 49b1a33c59 Remove redundant references to javax.{inject,persistence,servlet} and replace the rest with their jakarta variants.
This required upgrading some test dependencies, because the tests need some impls of the APIs which only exist in newer releases.

This also removes the struts2 extension from the maven & bazel build (although it keeps the now-unused source), because struts2 has no release that supports jakarta. For users that want to continue using the struts2 extension, please continue to use the Guice 6.0 release (instead of the 7.0+ line, which will only support the jakarta dependencies).

Fixes #1383.

(I'll cut the 6.0 candidates/releases from before this commit, and if we need to make further 6.0 changes, I'll manually merge those into the 6.0 branch.)

PiperOrigin-RevId: 529504991
2023-05-04 13:50:43 -07:00
Guice Team 08b7893356 Fix publish-latest-docs script.
Need to check if the latest api directory exists before deleting it, otherwise git complains about non-existing path: fatal: pathspec 'api-docs/latest' did not match any files.

PiperOrigin-RevId: 427042438
2022-02-07 16:04:18 -08:00
Guice Team ad77056d77 Fix Javadoc that fails when running with Java 9+.
Also:

- configure bazel and maven to use the same -Xdoclint option
- skip maven tests when generating javadoc and API diffs
- fix shell script to fail when any command returned non-zero exit code
- fix issue with the script that errors when trying to generate API diffs for module that does not contain Java doc (e.g extensions-parent)

PiperOrigin-RevId: 427018267
2022-02-07 14:31:32 -08:00
Guice Team d291cdd942 generate artifact for guice-bom.
PiperOrigin-RevId: 426426988
2022-02-04 09:55:01 -08:00
Guice Team 757d472e6c Add support to build maven artifacts using bazel.
The setup is mostly based on Dagger's setup and simplified. Further changes might be required to ensure that we are actually deploying the same artifacts as existing maven setup.

PiperOrigin-RevId: 425912979
2022-02-02 10:22:39 -08:00
Guice Team 27ae45775c Add a script to diff release jars with new release to do a quick check before approving the new release in maven central.
PiperOrigin-RevId: 360546122
2021-03-02 16:54:50 -08:00
Guice Team 62276f87be Configure github actions to publish latest javadoc and snapshot after a success test run.
PiperOrigin-RevId: 354360420
2021-01-28 11:51:21 -08:00
Guice Team e399b21ab8 Split generate-latest-docs.sh script into two script: one generates the docs and one generates and publishes them.
This will allow us to generate the released version of the api docs as  part of release process.

PiperOrigin-RevId: 345773223
2020-12-04 15:50:59 -08:00
Guice Team 4b4b9a6fa8 Run mvn install to install snapshot artifact before running jdiff.
PiperOrigin-RevId: 345714487
2020-12-04 11:05:55 -08:00
Guice Team 9c7fe49c7a Fix bash script for publishing latest api docs.
Using `/bin/sh` cause an "unexpected operator" so remove it.

PiperOrigin-RevId: 345708574
2020-12-04 10:40:30 -08:00
Guice Team 07d13be147 Change to use jdiff maven plugin to generate API diffs.
The plugin is configured to diff the current version against last released version of the API.

Unlike the jdiff task run by ant, this plugin generates diff on a per module basis. So the script used to generate latest docs is updated to copy over per module API diffs into a single directory with a index page that links to each module's diffs.

Also fixed travis CI config to remove the docs configuration since the javadoc
and api diffs are now generated using maven.

PiperOrigin-RevId: 345697612
2020-12-04 09:52:37 -08:00
sameb c09ba1d5b7 Some more infrastructure changes to work w/ java8 code. Namely, neuter ant so that we don't use it for anything other than javadoc & jdiff. A few of the libraries it depended on (jarjar, bnd) didn't work with java8 code. We don't really need ant (we just use it for javadocs & jdiffs right now, and theoretically those could move to mvn too if someone figures out how to do that).
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=238041337
2019-04-07 19:01:45 -04:00
ronshapiro 1016a14f74 Typo: "Lastest" -> "Latest"
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=186768366
2018-02-26 16:23:01 -05:00
Sam Berlin 1de48d23d8 Explicitly mark sh files as executable. 2014-10-20 16:30:48 -04:00
sameb 1d3f8cd0a1 Add support for java.util.Optional, reflectively. If the class exists, we bind
it the same way we bind com.google.common.base.Optional.  Update tests
accordingly.
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=77215848
2014-10-08 12:43:56 -04:00
Sam Berlin c8836d394c comment out the no-aop build for comparisons 2014-08-11 15:35:52 -04:00
Sam Berlin 22d4cca355 Fix the compareBuilds script (compares mvn vs ant generated jars) & add it to travis (before publishing snapshots). Comment out comparing the noaop builds since they're different right now, and update to asm 5.0.3 (which was a source of a difference). 2014-08-10 09:33:33 -04:00
Sam Berlin c15e74affa Move utility scripts to util dir, add secure vars to CI username/pwd, update POM to use canonical snapshot dir, add support for snapshot on succesful commit in Travis. 2014-08-08 14:17:43 -04:00