Commit Graph
2010 Commits
Author SHA1 Message Date
Guice TeamandGuice Team bb59fbfe99 no visible change.
PiperOrigin-RevId: 432517529
2022-03-04 13:19:12 -08:00
Guice TeamandGuice Team 86e7ab75b3 Add osgi_jar bazel rule to generate OSGi bundle.
PiperOrigin-RevId: 432496763
2022-03-04 11:42:28 -08:00
Sam BerlinandGuice Team e0f12160dd Extract stack trace walking to an interface so we can have different strategies for doing it.
PiperOrigin-RevId: 430291168
2022-02-22 14:04:27 -08:00
Kurt Alfred KlueverandGuice Team 65d7d078a8 Remove redundant @CheckReturnValue annotations.
PiperOrigin-RevId: 430256964
2022-02-22 11:34:14 -08:00
Guice TeamandGuice Team b2554223cc LSC: Fix or suppress ignored return values from instance methods on an Object.
PiperOrigin-RevId: 429675699
2022-02-18 16:54:46 -08:00
cpovirkandGuice Team 25d7233fe3 Apply @CheckReturnValue to the rest of com.google.inject.util.Modules.OverriddenModuleBuilder.
PiperOrigin-RevId: 429668967
2022-02-18 16:13:22 -08:00
cpovirkandGuice Team 9a998363f7 Add @CheckReturnValue to com.google.inject.util.Modules.OverriddenModuleBuilder#with(com.google.inject.Module[]).
PiperOrigin-RevId: 429343356
2022-02-17 10:30:22 -08:00
cpovirkandGuice Team 3fea884084 Add @CheckReturnValue to com.google.inject.util.Modules#override(com.google.inject.Module[]).
PiperOrigin-RevId: 429339743
2022-02-17 10:16:13 -08:00
cpovirkandGuice Team 1e8ede8007 Add @CheckReturnValue to com.google.inject.util.Modules#combine(com.google.inject.Module[]).
PiperOrigin-RevId: 429337151
2022-02-17 10:07:11 -08:00
cpovirkandGuice Team ed75b0b3c0 Add @CheckReturnValue to com.google.inject.util.Providers.
PiperOrigin-RevId: 429297357
2022-02-17 06:44:33 -08:00
David P. BakerandGuice Team 6bc51218d9 Add @CheckReturnValue to com.google.inject.testing.fieldbinder.BoundFieldModule#of(java.lang.Object) and add var unused to existing violations.
PiperOrigin-RevId: 429145212
2022-02-16 14:47:38 -08:00
Guice TeamandGuice Team a565b63eae Validate that the transitively exported targets matches what is set in gen_maven_artifact.
PiperOrigin-RevId: 428634587
2022-02-14 16:20:43 -08:00
Guice TeamandGuice Team e44c218056 Remove reference to deleted service extension target.
PiperOrigin-RevId: 427067619
2022-02-07 18:00:18 -08:00
Guice TeamandGuice Team 37635c29f3 link to latest javadoc on README page.
PiperOrigin-RevId: 427057238
2022-02-07 17:04:41 -08:00
Guice TeamandGuice 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 TeamandGuice 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 TeamandGuice Team c118f26385 Add steps in the ci workflow to build and test local artifacts.
Also:

- cache more bazel files to speed up executation
- use java version as part of the cache key since it is part of the input bazel uses
- fix maven_gen_artfiacts for libries that export other libries

PiperOrigin-RevId: 426955192
2022-02-07 10:35:41 -08:00
Guice TeamandGuice Team d83603377b Fix publish-snapshot action by passing secrets as env variables.
PiperOrigin-RevId: 426488409
2022-02-04 14:10:10 -08:00
Guice TeamandGuice Team ab0ae07c58 Fix publish-snapshot action.
PiperOrigin-RevId: 426443027
2022-02-04 10:57:16 -08:00
Guice TeamandGuice Team d291cdd942 generate artifact for guice-bom.
PiperOrigin-RevId: 426426988
2022-02-04 09:55:01 -08:00
Guice TeamandGuice Team 0b0d6975c7 Fix publish-snapshot action path.
PiperOrigin-RevId: 426424508
2022-02-04 09:44:01 -08:00
Xiaoming JiaandGitHub 0b17cb8a03 Merge branch 'master' into master 2022-02-03 13:24:05 -08:00
Xiaoming Jia 2f10f64690 use java version as part of the cache key. 2022-02-03 12:23:36 -08:00
Guice TeamandGuice Team 65b2fdff04 Split workflow into composite actions so that they can be reused for the new release workflow.
PiperOrigin-RevId: 426195026
2022-02-03 11:23:32 -08:00
Xiaoming Jia ba107f4b81 update bazel cache. 2022-02-03 11:19:50 -08:00
Xiaoming Jia c4908d5441 format 2022-02-03 11:17:19 -08:00
Guice TeamandGuice Team 3cd3868b65 Add a simple example maven project that uses Guice.
A follow up change will add a test that uses the local published artifact to verify that a project can use the built artifacts.

PiperOrigin-RevId: 426172762
2022-02-03 10:01:24 -08:00
Xiaoming Jia 1bdef93a3a fix workflow: add missing shell param. 2022-02-02 16:34:38 -08:00
Xiaoming Jia 02cb1cd32b fix workflow. 2022-02-02 16:28:30 -08:00
Xiaoming Jia 708a28781a split ci workflow into separate composite actions. 2022-02-02 16:22:52 -08:00
Xiaoming JiaandGitHub 5d4e63c26e Merge branch 'google:master' into master 2022-02-02 16:22:30 -08:00
Guice TeamandGuice Team 909558ec1a Remove outdated example.
PiperOrigin-RevId: 425983060
2022-02-02 14:47:50 -08:00
Kurt Alfred KlueverandGuice Team 415a377e3b Use ImmutableMap.Builder.buildOrThrow() instead of deprecated build().
PiperOrigin-RevId: 425938253
2022-02-02 11:41:49 -08:00
Guice TeamandXiaoming Jia 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
Vladimir SitnikovandGuice Team 3517379091 Replace styfle/cancel-workflow-action with out-of-the-box GitHub Action concurrency
See https://github.blog/changelog/2021-04-19-github-actions-limit-workflow-run-or-job-concurrency/
See https://stackoverflow.com/a/68422069/253468

closes #1570.

PiperOrigin-RevId: 425495012
2022-01-31 17:04:48 -08:00
Guice TeamandGuice Team 155bc42345 Remove service and mini extensions.
PiperOrigin-RevId: 424972746
2022-01-28 15:37:29 -08:00
Guice TeamandGuice Team a7822f7237 Update how javadoc is built.
- enable groups to follow current maven setup
- exclude internal packages and service package since the code isn't actually published
- update external doc links

PiperOrigin-RevId: 424912814
2022-01-28 11:12:48 -08:00
Guice TeamandGuice Team 2a4df0a72e Bump Spring dependency version to 5.3.14.
PiperOrigin-RevId: 424761764
2022-01-27 19:10:21 -08:00
Guice TeamandGuice Team 3761753f4f specific the source and target level in javac options to target Java 8.
PiperOrigin-RevId: 424661645
2022-01-27 11:19:31 -08:00
Guice TeamandGuice Team 6ff6e6d88c update readme to link to latest release.
PiperOrigin-RevId: 423950848
2022-01-24 17:27:08 -08:00
Guice TeamandGuice Team 6925c5c253 bump snapshot version, update README & prior API xml after 5.1.0 release.
closes #1536

PiperOrigin-RevId: 423946861
2022-01-24 17:05:16 -08:00
Sam BerlinandGuice Team bcc9fe45e3 Fix JDK17+ assistedinject private lookup behavior by catching InaccessibleObjectException (as Throwable) when attempting to reflect on private JDK internals.
Rewrite the way we iterate through method handle lookups. Don't cache fallback behavior. Instead, eagerly discover what the JDK supports & cache that. On use, if it fails (likely because a proper lookups wasn't supplied), then fallback (but do not cache the fallback).

All these shenanigans are only necessary if javac generated a default method that Guice needs to invoke. Because AssistedInject uses a JDK Proxy, which also proxies default interface methods, we need to use invokespecial to target the proxy (otherwise proxying the method will end up with a stack overflow due to infinite recursion). Note that if we implemented this by code generation, we wouldn't need these hacks... so we take some pains to allow non-public factories without *requiring* the user to call withLookups(..). But the workarounds don't always work, so we still need the withLookups(..) method.

PiperOrigin-RevId: 423822309
2022-01-24 08:32:03 -08:00
Guice TeamandGuice Team 6d503098ff upgrade easy mock versions and enable tests against Java 17.
PiperOrigin-RevId: 423400922
2022-01-21 14:01:55 -08:00
Xiaoming Jia 64522c1d3d change easymock version. 2022-01-21 13:49:18 -08:00
Xiaoming Jia ee2f2e25a1 update easymock version. 2022-01-21 13:41:51 -08:00
Xiaoming Jia b6f7751dd7 Test against java 17. 2022-01-21 13:10:18 -08:00
Xiaoming JiaandGitHub 2f95d985a8 Merge branch 'google:master' into master 2022-01-21 13:09:33 -08:00
Guice TeamandGuice Team c4854d5cf5 Fix tests that break with Java 17 base on suggestions from @mcculls https://github.com/google/guice/issues/1536#issuecomment-1017894441
- skip reflection fallback test that only works for java version < 17
- add required jvm flags to mirror maven setup
- upgrade mockito version

PiperOrigin-RevId: 423389524
2022-01-21 13:07:56 -08:00
Sam BerlinandGuice Team 02c4687594 Mark javadoc_library as manual, so test //... doesn't build it.
PiperOrigin-RevId: 423155378
2022-01-20 14:11:46 -08:00
Xiaoming Jia ef39ef8e48 useless commit to trigger action. 2022-01-20 14:02:53 -08:00