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

[pull] master from google:master #118

Open
wants to merge 262 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
262 commits
Select commit Hold shift + click to select a range
f00c32a
Generate missing-property checks in a way that is easier for null-ana…
eamonnmcmanus May 19, 2021
6688819
Clarify that `Optional` values can be set from `@Nullable` parameters.
eamonnmcmanus May 25, 2021
d4c865b
Continue rather than returning in the AutoService loop.
eamonnmcmanus May 25, 2021
123cc71
Use the return value of `addAll()` instead of making separate calls t…
netdpb May 25, 2021
c84e6af
Add the [JSpecify](http://jspecify.org) `@Nullable` to `equals(Object…
eamonnmcmanus May 25, 2021
54baeb3
Update an AutoValue test to the newer compile-testing API.
eamonnmcmanus May 25, 2021
31eeb67
Bump truth.version from 1.1.2 to 1.1.3 in /value
dependabot[bot] May 26, 2021
d482097
Bump truth from 1.1.2 to 1.1.3 in /service
dependabot[bot] May 26, 2021
7f8bd35
Bump truth from 1.1.2 to 1.1.3 in /common
dependabot[bot] May 26, 2021
acb0765
Bump truth from 1.1.2 to 1.1.3 in /factory
dependabot[bot] May 26, 2021
2b77e44
Bump kotlin.version from 1.5.0 to 1.5.10 in /value
dependabot[bot] May 26, 2021
7d3aa66
Implicitly exclude Kotlin `@Metadata` annotations from `@CopyAnnotati…
ZacSweers May 27, 2021
64b9ecc
Bump actions/cache from 2.1.5 to 2.1.6
dependabot[bot] May 31, 2021
15d49d9
Replace server Guava API usage with Android compatible alternatives.
bcorso Jun 1, 2021
de40332
Upgrade dependencies to auto-common 1.0.1 and replace Guava toImmutab…
bcorso Jun 1, 2021
57fdeb9
Reformat all the Auto projects using google-java-format. For now, jav…
eamonnmcmanus Jun 2, 2021
dec3bf0
Add String and TypeElement versions of auto-common APIs that currentl…
bcorso Jun 3, 2021
aae56b7
Apply a few automated suggestions.
eamonnmcmanus Jun 3, 2021
7ec6b28
Bump mockito-core from 3.10.0 to 3.11.0 in /value
dependabot[bot] Jun 7, 2021
59ec5e6
AutoFactory: Add error message for duplicate parameters
java-team-github-bot Jun 11, 2021
91b6bf1
Bump mockito-core from 3.11.0 to 3.11.1 in /value
dependabot[bot] Jun 14, 2021
e688dd7
Bump mockito-core from 3.11.1 to 3.11.2 in /value
dependabot[bot] Jun 22, 2021
05ea135
Ensure that AutoBuilder works with property builders.
eamonnmcmanus Jun 24, 2021
ba9f110
Bump kotlin.version from 1.5.10 to 1.5.20 in /value
dependabot[bot] Jun 28, 2021
c68b2ff
Use more fluent streams constructs.
eamonnmcmanus Jun 28, 2021
2ee7f62
Rewrite some references to JSpecify `@Nullable` to prevent their bein…
eamonnmcmanus Jun 30, 2021
9d79ce1
Annotate auto-common for nullness.
eamonnmcmanus Jun 30, 2021
3b1f449
Avoid wildcards, which confuse our nullness checker.
cpovirk Jun 30, 2021
4f6f782
Internal change
dependabot[bot] Jul 2, 2021
e72fc7b
Internal change
dependabot[bot] Jul 2, 2021
895a4d5
Internal change
dependabot[bot] Jul 2, 2021
f09743c
Annotate `com.google.auto.factory` for null hygiene.
eamonnmcmanus Jul 9, 2021
04ebf9c
Bump kotlin.version from 1.5.20 to 1.5.21 in /value
dependabot[bot] Jul 13, 2021
00cb81e
Add support for printing `AnnotationValue`s and `AnnotationMirror`s
cushon Jul 16, 2021
e3a8b2b
Mark non-static non-abstract methods as final in the examples.
java-team-github-bot Jul 21, 2021
22db69d
Bump auto-value-annotations from 1.8.1 to 1.8.2 in /factory
dependabot[bot] Jul 22, 2021
df56d18
Add explicit casts to deficient numeric types
cushon Jul 23, 2021
bc250f6
Simplify old GWT-handling code in AutoValue.
eamonnmcmanus Jul 24, 2021
3e1a318
Bump errorprone.version from 2.7.1 to 2.8.0 in /value
dependabot[bot] Jul 25, 2021
08fd0fb
Migrate from `AnnotationMirror#toString` to `auto-common`'s `Annotati…
cushon Jul 27, 2021
4c810b8
Bump auto-common from 1.1 to 1.1.2 in /service
dependabot[bot] Jul 28, 2021
703b733
Bump auto-common from 1.1 to 1.1.2 in /value
dependabot[bot] Jul 28, 2021
91d1ae9
Bump styfle/cancel-workflow-action from 0.9.0 to 0.9.1
dependabot[bot] Jul 30, 2021
ebfa3ff
Bump errorprone.version from 2.8.0 to 2.8.1 in /value
dependabot[bot] Aug 4, 2021
04b2353
Avoid `instanceof TypeElement` in Auto code.
eamonnmcmanus Aug 16, 2021
5853476
Bump mockito-core from 3.11.2 to 3.12.0 in /value
dependabot[bot] Aug 20, 2021
4e39de3
Bump errorprone.version from 2.8.1 to 2.9.0 in /value
dependabot[bot] Aug 23, 2021
3d8d97e
Bump mockito-core from 3.12.0 to 3.12.1 in /value
dependabot[bot] Aug 23, 2021
bbe8f4e
Bump plexus-java from 1.0.7 to 1.1.0 in /factory
dependabot[bot] Aug 24, 2021
63901aa
Bump plexus-java from 1.0.7 to 1.1.0 in /value
dependabot[bot] Aug 24, 2021
7444bd9
Bump plexus-java from 1.0.7 to 1.1.0 in /common
dependabot[bot] Aug 24, 2021
490d022
Bump plexus-java from 1.0.7 to 1.1.0 in /service
dependabot[bot] Aug 24, 2021
8ae16f6
Bump mockito-core from 3.12.1 to 3.12.3 in /value
dependabot[bot] Aug 25, 2021
1e50cb6
Bump kotlin.version from 1.5.21 to 1.5.30 in /value
dependabot[bot] Aug 25, 2021
874777b
Bump mockito-core from 3.12.3 to 3.12.4 in /value
dependabot[bot] Aug 26, 2021
97537a3
Upgrade Gradle Test Kit to 7.2
lacasseio Aug 26, 2021
02ff0f1
Correct a `pom.xml` problem that was failing CI builds.
eamonnmcmanus Sep 6, 2021
fb96c83
Use annotation default values with `@AutoBuilder` and `@AutoAnnotation`.
eamonnmcmanus Sep 6, 2021
aea6988
Bump kotlin.version from 1.5.30 to 1.5.31 in /value
dependabot[bot] Sep 21, 2021
4509e21
Bump guava.version from 30.1.1-jre to 31.0-jre in /service
dependabot[bot] Sep 25, 2021
3063b25
Bump guava.version from 30.1.1-jre to 31.0-jre in /common
dependabot[bot] Sep 25, 2021
70010b5
Bump guava.version from 30.1.1-jre to 31.0-jre in /value
dependabot[bot] Sep 25, 2021
4f4a588
Bump guava from 30.1.1-jre to 31.0-jre in /factory
dependabot[bot] Sep 27, 2021
07e4de8
Bump guava.version from 31.0-jre to 31.0.1-jre in /service
dependabot[bot] Sep 29, 2021
6564259
Bump guava.version from 31.0-jre to 31.0.1-jre in /common
dependabot[bot] Sep 29, 2021
d14fe8c
Bump guava.version from 31.0-jre to 31.0.1-jre in /value
dependabot[bot] Sep 29, 2021
781de86
Bump guava from 31.0-jre to 31.0.1-jre in /factory
dependabot[bot] Sep 29, 2021
206b673
Include type parameters of parent types in generated factory classes.
eamonnmcmanus Oct 1, 2021
8ad800e
Ensure the order of copied annotations is deterministic.
eamonnmcmanus Oct 5, 2021
c0ed322
Bump mockito-core from 3.12.4 to 4.0.0 in /value
dependabot[bot] Oct 8, 2021
d8c1934
Refine the check for overriding interface methods.
eamonnmcmanus Oct 15, 2021
80d62d3
Bump auto-common from 1.1.2 to 1.2 in /value
dependabot[bot] Oct 16, 2021
ea06725
Bump auto-common from 1.1.2 to 1.2 in /service
dependabot[bot] Oct 16, 2021
63b5ce5
Bump auto-common from 1.1.2 to 1.2 in /factory
dependabot[bot] Oct 16, 2021
80d19bd
fix typo ("implemention")
java-team-github-bot Oct 18, 2021
e66de80
Bump actions/checkout from 2.3.4 to 2.3.5
dependabot[bot] Oct 18, 2021
e074032
Handle missing type when copying annotations.
eamonnmcmanus Oct 19, 2021
8abfb9c
Use `Objects.requireNonNull(x)` instead of `x.getClass()` in no-ident…
eamonnmcmanus Oct 20, 2021
15c7619
Use Java 11's Optional.isEmpty() method in docs: `!optional.isPresent…
java-team-github-bot Oct 29, 2021
0820e2e
Make it easier to make a step-builder for AutoValue.
eamonnmcmanus Nov 2, 2021
ce31cc1
Bump actions/checkout from 2.3.5 to 2.4.0
dependabot[bot] Nov 2, 2021
d8083fd
Handle missing classes better in AutoService.
eamonnmcmanus Nov 3, 2021
27f3297
Bump auto-service-annotations from 1.0 to 1.0.1 in /value
dependabot[bot] Nov 4, 2021
c219995
Bump auto-service-annotations from 1.0 to 1.0.1 in /factory
dependabot[bot] Nov 4, 2021
66c620d
Bump auto-service from 1.0 to 1.0.1 in /value
dependabot[bot] Nov 4, 2021
d6d9657
Bump errorprone.version from 2.9.0 to 2.10.0 in /value
dependabot[bot] Nov 8, 2021
102506c
Remove usage of Guava 30 API (Comparators.min).
bcorso Nov 12, 2021
0c4828f
Bump kotlin.version from 1.5.31 to 1.6.0 in /value
dependabot[bot] Nov 16, 2021
c7abcf7
Bump auto-common from 1.2 to 1.2.1 in /value
dependabot[bot] Nov 17, 2021
83436cc
Bump auto-common from 1.2 to 1.2.1 in /factory
dependabot[bot] Nov 17, 2021
93875a7
Bump auto-common from 1.2 to 1.2.1 in /service
dependabot[bot] Nov 19, 2021
fe67d85
Set minimum Java version 1.7 in description
reugn Nov 21, 2021
bcc87cd
Bump gradle-test-kit from 7.2 to 7.3 in /value
dependabot[bot] Nov 30, 2021
7e1ec07
Bump mockito-core from 4.0.0 to 4.1.0 in /value
dependabot[bot] Dec 1, 2021
0b21d83
Bump actions/cache from 2.1.6 to 2.1.7
dependabot[bot] Dec 6, 2021
1f8d7f2
Make `@AutoBuilder` available unconditionally.
eamonnmcmanus Dec 6, 2021
a74508b
Validate that `@AutoValue` (etc) classes have appropriate constructors.
eamonnmcmanus Dec 7, 2021
8a1d726
Remove references to obsolete `AutoBuilderIsUnstable` option.
eamonnmcmanus Dec 7, 2021
07f37b2
Disallow `@AutoValue final class`.
eamonnmcmanus Dec 13, 2021
000b10c
Add a `<distributionManagement>` clause to the parent POM for AutoVal…
eamonnmcmanus Dec 14, 2021
7dfa541
Copy the `oss-parent` configuration into `value/pom.xml`.
eamonnmcmanus Dec 14, 2021
f7a8b80
Add a `<developers>` section to `auto/value/pom.xml`.
eamonnmcmanus Dec 15, 2021
8dfe0ff
Mention Dagger's assisted injection in the AutoFactory docs.
eamonnmcmanus Dec 18, 2021
03073be
Bump mockito-core from 4.1.0 to 4.2.0 in /value
dependabot[bot] Dec 20, 2021
e372a14
Bump auto-value-annotations from 1.8.2 to 1.9 in /factory
dependabot[bot] Dec 20, 2021
15caf76
Bump kotlin.version from 1.6.0 to 1.6.10 in /value
chaoren Jan 5, 2022
6dba06c
Bump gradle-test-kit from 7.3 to 7.3.3 in /value
dependabot[bot] Jan 7, 2022
ee741de
Fix documentation for using AutoValue with Gradle.
chaoren Jan 7, 2022
b5d3989
In builders, track unset primitive properties with bitmasks rather th…
eamonnmcmanus Jan 7, 2022
13bb49a
Bump maven-jar-plugin from 3.2.0 to 3.2.1 in /value
dependabot[bot] Jan 10, 2022
9eca56f
Bump maven-jar-plugin from 3.2.0 to 3.2.1 in /common
dependabot[bot] Jan 11, 2022
b946398
Bump maven-jar-plugin from 3.2.0 to 3.2.1 in /service
dependabot[bot] Jan 11, 2022
81c454c
Bump maven-jar-plugin from 3.2.0 to 3.2.1 in /factory
dependabot[bot] Jan 11, 2022
330653a
Bump maven-jar-plugin from 3.2.1 to 3.2.2 in /common
dependabot[bot] Jan 12, 2022
bb1bc64
Bump maven-compiler-plugin from 3.8.1 to 3.9.0 in /service
dependabot[bot] Jan 12, 2022
63611b9
Bump maven-jar-plugin from 3.2.1 to 3.2.2 in /service
dependabot[bot] Jan 12, 2022
2261c6b
Bump maven-compiler-plugin from 3.8.1 to 3.9.0 in /common
dependabot[bot] Jan 12, 2022
8de959a
Bump maven-jar-plugin from 3.2.1 to 3.2.2 in /value
dependabot[bot] Jan 13, 2022
cf55dc6
Remove the requirement for `@AutoAnnotation` methods to be static.
eamonnmcmanus Jan 13, 2022
9f613af
Bump maven-jar-plugin from 3.2.1 to 3.2.2 in /factory
dependabot[bot] Jan 13, 2022
fd6ade6
Bump maven-compiler-plugin from 3.8.1 to 3.9.0 in /value
dependabot[bot] Jan 14, 2022
15ff83a
Behave better when property builders collide with JavaBeans eccentric…
eamonnmcmanus Jan 14, 2022
e7e0234
Bump maven-compiler-plugin from 3.8.1 to 3.9.0 in /factory
dependabot[bot] Jan 20, 2022
be8a435
Bump mockito-core from 4.2.0 to 4.3.0 in /value
dependabot[bot] Jan 25, 2022
85957dd
Add information about mocking of AutoFactory-generated factory class.
java-team-github-bot Jan 27, 2022
e60b471
Bump mockito-core from 4.3.0 to 4.3.1 in /value
dependabot[bot] Jan 27, 2022
8175434
Bump errorprone.version from 2.10.0 to 2.11.0 in /value
dependabot[bot] Jan 27, 2022
9f01954
Use `buildOrThrow()` in preference to `build()` in property builders.
eamonnmcmanus Jan 28, 2022
34c3be5
Change AutoAnnotation to have CLASS retention.
eamonnmcmanus Feb 1, 2022
cd5c2e8
Bump plexus-java from 1.1.0 to 1.1.1 in /common
dependabot[bot] Feb 2, 2022
18d7e21
Bump plexus-java from 1.1.0 to 1.1.1 in /service
dependabot[bot] Feb 2, 2022
a0085ba
Bump plexus-java from 1.1.0 to 1.1.1 in /value
dependabot[bot] Feb 2, 2022
43530f5
Bump plexus-java from 1.1.0 to 1.1.1 in /factory
dependabot[bot] Feb 3, 2022
4a35aa3
Generate correct code even if someone has redefined `Double`.
eamonnmcmanus Feb 9, 2022
b6691aa
Bump maven-javadoc-plugin from 3.3.1 to 3.3.2 in /value
dependabot[bot] Feb 14, 2022
13ecec5
Bump maven-compiler-plugin from 3.9.0 to 3.10.0 in /common
dependabot[bot] Feb 14, 2022
ca7479b
Bump maven-compiler-plugin from 3.9.0 to 3.10.0 in /service
dependabot[bot] Feb 14, 2022
9c8f4a6
Bump maven-compiler-plugin from 3.9.0 to 3.10.0 in /factory
dependabot[bot] Feb 15, 2022
2e44a53
Remove text about instability of AutoBuilder.
eamonnmcmanus Feb 20, 2022
d11a8a7
Bump maven-compiler-plugin from 3.9.0 to 3.10.0 in /value
dependabot[bot] Feb 22, 2022
e01968d
Make Serializable and Memoized extensions work together.
eamonnmcmanus Feb 23, 2022
36553ad
Document modern alternatives to AutoValue.
eamonnmcmanus Feb 24, 2022
196c810
Allow AutoBuilder to build annotation implementations directly.
eamonnmcmanus Feb 25, 2022
f4770b4
Bump guava from 31.0.1-jre to 31.1-jre in /factory
dependabot[bot] Mar 1, 2022
3efc516
Bump guava.version from 31.0.1-jre to 31.1-jre in /common
dependabot[bot] Mar 1, 2022
13334c2
Bump guava.version from 31.0.1-jre to 31.1-jre in /service
dependabot[bot] Mar 1, 2022
a956376
Bump guava.version from 31.0.1-jre to 31.1-jre in /value
dependabot[bot] Mar 1, 2022
422dfb5
Bump actions/checkout from 2.4.0 to 3
dependabot[bot] Mar 1, 2022
b6f1051
Introduce an abstraction of `ExecutableElement` for AutoBuilder.
eamonnmcmanus Mar 7, 2022
c8c6f98
Bump gradle-test-kit from 7.3.3 to 7.4 in /value
dependabot[bot] Mar 9, 2022
1bc4020
Bump maven-compiler-plugin from 3.10.0 to 3.10.1 in /common
dependabot[bot] Mar 12, 2022
0400769
Bump maven-compiler-plugin from 3.10.0 to 3.10.1 in /service
dependabot[bot] Mar 12, 2022
9431cc1
Bump maven-compiler-plugin from 3.10.0 to 3.10.1 in /value
dependabot[bot] Mar 14, 2022
973dcbb
Bump maven-compiler-plugin from 3.10.0 to 3.10.1 in /factory
dependabot[bot] Mar 14, 2022
5382e45
Avoid using `instanceof` to determine the type of an `Element`.
eamonnmcmanus Mar 14, 2022
6303fd1
Bump gradle-test-kit from 7.4 to 7.4.1 in /value
dependabot[bot] Mar 14, 2022
6949317
Add a class that generates bytecode to call a constructor.
eamonnmcmanus Mar 17, 2022
5e42336
Bump mockito-core from 4.3.1 to 4.4.0 in /value
dependabot[bot] Mar 18, 2022
d2f91bf
AutoBuilder support for Kotlin default constructor parameters.
eamonnmcmanus Mar 24, 2022
c01c537
Document `@AutoBuilder` handling of Kotlin default parameters.
eamonnmcmanus Mar 24, 2022
00fe738
Bump actions/cache from 2.1.7 to 3
dependabot[bot] Mar 25, 2022
a2522e9
Bump maven-shade-plugin from 3.2.4 to 3.3.0 in /value
dependabot[bot] Mar 30, 2022
7569e39
Bump kotlin.version from 1.6.10 to 1.6.20 in /value
dependabot[bot] Apr 1, 2022
6a7ab5f
Bump asm from 9.2 to 9.3 in /value
dependabot[bot] Apr 5, 2022
160599e
Bump errorprone.version from 2.11.0 to 2.12.1 in /value
dependabot[bot] Apr 6, 2022
a561dfe
Fix a link in the AutoValue user guide.
eamonnmcmanus Apr 6, 2022
14ad919
Bump actions/setup-java from 2 to 3
dependabot[bot] Apr 8, 2022
a9efc78
MoreTypes fixes and improvements (Only functional)
AriaAdibi Apr 12, 2022
98b0538
Add missing return types to AutoBuilder example.
kluever Apr 12, 2022
8696de1
Insert a `var unused` ahead of an AutoBuilder getter call. This will …
kluever Apr 13, 2022
d81022e
Bump errorprone.version from 2.12.1 to 2.13.1 in /value
dependabot[bot] Apr 18, 2022
b230a57
Bump mockito-core from 4.4.0 to 4.5.0 in /value
dependabot[bot] Apr 20, 2022
b122414
Bump kotlin.version from 1.6.20 to 1.6.21 in /value
dependabot[bot] Apr 20, 2022
88f6da9
Bump maven-javadoc-plugin from 3.3.2 to 3.4.0 in /value
dependabot[bot] Apr 22, 2022
3e5bc98
Bump mockito-core from 4.5.0 to 4.5.1 in /value
dependabot[bot] Apr 22, 2022
6acce05
Bump gwt-maven-plugin from 1.0.0 to 1.0.1 in /value
dependabot[bot] Apr 27, 2022
e298d78
Fixed Readme of Auto and Auto/Common
AriaAdibi Apr 29, 2022
131bf18
Formatting fixes.
netdpb Apr 29, 2022
56f521e
Suggesting a rewording of `ElementName` Javadoc
AriaAdibi Apr 29, 2022
6492ba7
Small fixes for AnnotationValues
AriaAdibi Apr 29, 2022
26f073f
Enhanced `MoreTypesIsTypeOfTest`, and Fixed `MoreTypes.isType()` for …
AriaAdibi May 2, 2022
b3b53a3
For `@AutoBuilder` classes, generate a "copy constructor" if appropri…
eamonnmcmanus May 11, 2022
4815a71
Correctly handle `toBuilder()` when some but not all properties have …
eamonnmcmanus May 12, 2022
882d47f
Document the new AutoBuilder "copy constructor" feature.
eamonnmcmanus May 13, 2022
37308cb
Remove Apache Velocity dependency.
eamonnmcmanus May 16, 2022
2fe89df
Correctly handle the case of a missing AutoBuilder `build()` method.
eamonnmcmanus May 17, 2022
d04cd4a
Update AutoBuilder docs to use syntax highlighting
mgp May 23, 2022
9eb9244
Add a doc link target for optional getters.
eamonnmcmanus May 23, 2022
11bd873
Document FAQs for AutoValue.Builder
java-team-github-bot May 23, 2022
2a74004
Bump errorprone.version from 2.13.1 to 2.14.0 in /value
dependabot[bot] May 26, 2022
d4ff1da
Bump mockito-core from 4.5.1 to 4.6.0 in /value
dependabot[bot] May 28, 2022
775d464
Bump maven-invoker-plugin from 3.2.2 to 3.3.0 in /factory
dependabot[bot] Jun 1, 2022
1de6d00
Bump maven-invoker-plugin from 3.2.2 to 3.3.0 in /value
dependabot[bot] Jun 1, 2022
d080c8b
Bump mockito-core from 4.6.0 to 4.6.1 in /value
dependabot[bot] Jun 3, 2022
dac4ccd
Bump kotlin.version from 1.6.21 to 1.7.0 in /value
dependabot[bot] Jun 8, 2022
2a87ebe
Update Maven dependencies for the functional-test artifact.
eamonnmcmanus Jun 13, 2022
f3f871a
Bump ecj from 3.25.0 to 3.30.0 in /value
dependabot[bot] Jun 15, 2022
5aa9102
Revert #1334 because it broke on CI.
chaoren Jun 15, 2022
53cad21
Fix auto project to only test with ecj on JDK 11+.
chaoren Jun 16, 2022
fafd363
Bump kotlinx-metadata-jvm from 0.4.2 to 0.5.0 in /value
dependabot[bot] Jun 21, 2022
c70f569
Simplify link in SerializableAutoValue doc by making it relative.
java-team-github-bot Jun 23, 2022
ea31011
Bump gwt-user from 2.9.0 to 2.10.0 in /value
dependabot[bot] Jun 23, 2022
e0c031d
Migrate from legacy com.google.gwt to org.gwtproject.
cpovirk Jun 24, 2022
afc575c
Bump styfle/cancel-workflow-action from 0.9.1 to 0.10.0
dependabot[bot] Jun 28, 2022
95d6310
Bump kotlin.version from 1.7.0 to 1.7.10 in /value
dependabot[bot] Jul 15, 2022
5e7cd22
Bump gradle-test-kit from 7.4.1 to 7.5 in /value
dependabot[bot] Jul 21, 2022
96233f6
Bump maven-deploy-plugin from 2.8.2 to 3.0.0 in /value
dependabot[bot] Jul 21, 2022
50e81f7
Bump maven-resources-plugin from 3.2.0 to 3.3.0 in /value
dependabot[bot] Jul 26, 2022
775a986
Bump errorprone.version from 2.14.0 to 2.15.0 in /value
dependabot[bot] Aug 5, 2022
b83b2a1
Bump mockito-core from 4.6.1 to 4.7.0 in /value
dependabot[bot] Aug 22, 2022
ab084dc
Bump maven-javadoc-plugin from 3.4.0 to 3.4.1 in /value
dependabot[bot] Aug 22, 2022
3a15c88
Copy annotations to the generated AutoBuilder subclass if requested.
eamonnmcmanus Aug 30, 2022
de4299c
Internal change
java-team-github-bot Sep 1, 2022
01bf873
Use `java.util.Optional` instead of Guava `Optional`.
eamonnmcmanus Sep 6, 2022
b8eeac3
Bump mockito-core from 4.7.0 to 4.8.0 in /value
dependabot[bot] Sep 8, 2022
7be464d
Common:: Minor Improvements
AriaAdibi Sep 12, 2022
e6ca1f0
Bump ecj from 3.30.0 to 3.31.0 in /common
dependabot[bot] Sep 14, 2022
5b188f7
Bump ecj from 3.30.0 to 3.31.0 in /value
dependabot[bot] Sep 14, 2022
d7c90fd
Bump maven-shade-plugin from 3.3.0 to 3.4.0 in /value
dependabot[bot] Sep 14, 2022
aebf49b
Bump gradle-test-kit from 7.5 to 7.5.1 in /value
dependabot[bot] Sep 14, 2022
182dff1
Bump maven-jar-plugin from 3.2.2 to 3.3.0 in /common
dependabot[bot] Sep 17, 2022
35f9474
Bump maven-jar-plugin from 3.2.2 to 3.3.0 in /service
dependabot[bot] Sep 17, 2022
7504e92
Bump maven-jar-plugin from 3.2.2 to 3.3.0 in /value
dependabot[bot] Sep 17, 2022
14413dc
Bump maven-jar-plugin from 3.2.2 to 3.3.0 in /factory
dependabot[bot] Sep 19, 2022
c120217
Move the toBuilder and autoToBuilder from Foo.Builder to the Foo.
java-team-github-bot Sep 23, 2022
bd69264
Bump kotlin.version from 1.7.10 to 1.7.20 in /value
dependabot[bot] Sep 30, 2022
40284c7
Bump styfle/cancel-workflow-action from 0.10.0 to 0.10.1
dependabot[bot] Oct 4, 2022
0079f49
Bump asm from 9.3 to 9.4 in /value
dependabot[bot] Oct 4, 2022
2d0f049
Bump auto-value-annotations from 1.9 to 1.10 in /factory
dependabot[bot] Oct 11, 2022
ce33eaf
Bump errorprone.version from 2.15.0 to 2.16 in /value
dependabot[bot] Oct 11, 2022
dffe1f8
Minor cleanups for AutoFactory.
eamonnmcmanus Oct 13, 2022
4bb91ca
Propagate parameter annotations in generated factory code.
eamonnmcmanus Oct 14, 2022
b8f2bad
Bump styfle/cancel-workflow-action from 0.10.1 to 0.11.0
dependabot[bot] Oct 17, 2022
aeffb90
Bump mockito-core from 4.8.0 to 4.8.1 in /value
dependabot[bot] Oct 24, 2022
3659a0e
Fix an issue with builder getters.
eamonnmcmanus Oct 25, 2022
eea4094
Bump maven-shade-plugin from 3.4.0 to 3.4.1 in /value
dependabot[bot] Nov 7, 2022
d7218d5
Bump kotlin.version from 1.7.20 to 1.7.21 in /value
dependabot[bot] Nov 9, 2022
a91775b
Bump mockito-core from 4.8.1 to 4.9.0 in /value
dependabot[bot] Nov 14, 2022
61967ec
Fix the variable name in the example of "When parameter names are una…
java-team-github-bot Nov 16, 2022
6de325b
Ensure that `org.jetbrains.annotations` is shaded in the AutoValue jar.
eamonnmcmanus Nov 17, 2022
77c4d56
Bump auto-value-annotations from 1.10 to 1.10.1 in /factory
dependabot[bot] Nov 21, 2022
a7135e8
Use a narrowing cast with `|=` where appropriate.
eamonnmcmanus Nov 22, 2022
097f0ee
Suppress Android Lint errors from using the default package in a test.
eamonnmcmanus Nov 22, 2022
0e5d629
Fix typo in @Memoized Javadoc
java-team-github-bot Nov 23, 2022
2d5b3d1
Update documentation with a detailed comparison between AutoValue and…
eamonnmcmanus Nov 28, 2022
cf0b969
Bump kotlin.version from 1.7.21 to 1.7.22 in /value
dependabot[bot] Nov 29, 2022
050f0ac
Bump gradle-test-kit from 7.5.1 to 7.6 in /value
dependabot[bot] Nov 30, 2022
91d5f32
Include a `@Nullable` type annotation on appropriate builder fields i…
eamonnmcmanus Dec 1, 2022
c5b6223
Remove old release script.
cpovirk Dec 1, 2022
167a206
minor revisions to records.md
Dec 1, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,20 @@ jobs:
steps:
# Cancel any previous runs for the same branch that are still running.
- name: 'Cancel previous runs'
uses: styfle/cancel-workflow-action@0.9.0
uses: styfle/cancel-workflow-action@0.11.0
with:
access_token: ${{ github.token }}
- name: 'Check out repository'
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: 'Cache local Maven repository'
uses: actions/cache@v2.1.5
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
maven-
- name: 'Set up JDK ${{ matrix.java }}'
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: 'zulu'
Expand All @@ -49,16 +49,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Check out repository'
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: 'Cache local Maven repository'
uses: actions/cache@v2.1.5
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
maven-
- name: 'Set up JDK 11'
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
java-version: 11
distribution: 'zulu'
Expand All @@ -78,16 +78,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Check out repository'
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: 'Cache local Maven repository'
uses: actions/cache@v2.1.5
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
maven-
- name: 'Set up JDK 11'
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
java-version: 11
distribution: 'zulu'
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

A collection of source code generators for [Java][java].

## Auto‽
## Overview

[Java][java] is full of code that is mechanical, repetitive, typically untested
and sometimes the source of subtle bugs. _Sounds like a job for robots!_
Expand Down
88 changes: 26 additions & 62 deletions common/README.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,38 @@
Auto Common Utilities
========
# Auto Common Utilities

## Overview

The Auto project has a set of common utilities to help ease use of the annotation processing
environment.
The Auto project has a set of common utilities to help ease use of the
annotation processing environment.

## Utility classes of note

* MoreTypes - utilities and Equivalence wrappers for TypeMirror and related subtypes
* MoreElements - utilities for Element and related subtypes
* SuperficialValidation - very simple scanner to ensure an Element is valid and free from
distortion from upstream compilation errors
* Visibility - utilities for working with Elements' visibility levels (public, protected, etc.)
* BasicAnnotationProcessor/ProcessingStep - simple types that
- implement a validating annotation processor
- defer invalid elements until later
- break processor actions into multiple steps (which may each handle different annotations)
`MoreTypes`
: Utilities and `Equivalence` wrappers for `TypeMirror` and related subtypes

`MoreElements`
: Utilities for `Element` and related subtypes

`SuperficialValidation`
: Very simple scanner to ensure an `Element` is valid and free from distortion
from upstream compilation errors

`Visibility`
: Utilities for working with `Element`s' visibility levels (public, protected,
etc.)

`BasicAnnotationProcessor`/`Step`
: Simple types that
- implement a validating annotation processor
- defer invalid elements until later
- break processor actions into multiple steps (which may each handle
different annotations)

## Usage/Setup

Auto common utilities have a standard [Maven](http://maven.apache.org) setup which can also be
used from Gradle, Ivy, Ant, or other systems which consume binary artifacts from the central Maven
binary artifact repositories.
Auto common utilities have a standard [Maven](http://maven.apache.org) setup
which can also be used from Gradle, Ivy, Ant, or other systems which consume
binary artifacts from the central Maven binary artifact repositories.

```xml
<dependency>
Expand All @@ -31,49 +41,3 @@ binary artifact repositories.
<version>1.0-SNAPSHOT</version> <!-- or use a known release version -->
</dependency>
```

## Processor Resilience

Auto Common Utilities is used by a variety of annotation processors in Google and new versions
may have breaking changes. Users of auto-common are urged to use
[shade](https://maven.apache.org/plugins/maven-shade-plugin/) or
[jarjar](https://code.google.com/p/jarjar/) (or something similar) in packaging their processors
so that conflicting versions of this library do not adversely interact with each other.

For example, in a Maven build you can repackage `com.google.auto.common` into
`your.processor.shaded.auto.common` like this:

```xml
<project>
<!-- your other config -->
<build>
<plugins>
<plugin>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<artifactSet>
<excludes>
<!-- exclude dependencies you don't want to bundle in your processor -->
</excludes>
</artifactSet>
<relocations>
<relocation>
<pattern>com.google.auto.common</pattern>
<shadedPattern>your.processor.shaded.auto.common</shadedPattern>
</relocation>
</relocations>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
```

54 changes: 43 additions & 11 deletions common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>1.8</java.version>
<guava.version>30.1.1-jre</guava.version>
<truth.version>1.1.2</truth.version>
<guava.version>31.1-jre</guava.version>
<truth.version>1.1.3</truth.version>
</properties>

<scm>
Expand Down Expand Up @@ -104,39 +104,71 @@
<version>${truth.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.eclipse.jdt</groupId>
<artifactId>ecj</artifactId>
<version>3.25.0</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<version>3.10.1</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
<compilerArgument>-Xlint:all</compilerArgument>
<showWarnings>true</showWarnings>
<showDeprecation>true</showDeprecation>
<testExcludes combine.children="append" />
</configuration>
<dependencies>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-java</artifactId>
<version>1.0.7</version>
<version>1.1.1</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.2.0</version>
<version>3.3.0</version>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>test-with-ecj</id>
<activation>
<jdk>[11,)</jdk>
</activation>
<dependencies>
<!-- test dependencies -->
<dependency>
<groupId>org.eclipse.jdt</groupId>
<artifactId>ecj</artifactId>
<version>3.31.0</version>
<scope>test</scope>
</dependency>
</dependencies>
</profile>

<profile>
<id>test-without-ecj</id>
<activation>
<jdk>(,11)</jdk>
</activation>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<testExcludes>
<exclude>**/OverridesTest.java</exclude>
</testExcludes>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
Loading