aboutsummaryrefslogtreecommitdiff
path: root/factory
AgeCommit message (Collapse)Author
2021-03-12Ensure compilation tests will run on JDK 16+.Éamonn McManus
As noted [here](https://github.com/google/compile-testing/issues/222), the change of the default `--illegal-access` from `permit` to `deny` will cause compile-testing tests to fail by default, with messages like this: ``` class com.google.testing.compile.Parser (in unnamed module @0x4114d843) cannot access class com.sun.tools.javac.api.JavacTool (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.api to unnamed module @0x4114d843 ``` We can work around that by supplying the necessary `--add-opens` flag to the JVM that runs the tests. RELNOTES=n/a PiperOrigin-RevId: 362531170
2021-02-22Bump maven-invoker-plugin from 3.2.1 to 3.2.2 in /factorydependabot[bot]
Bumps [maven-invoker-plugin](https://github.com/apache/maven-invoker-plugin) from 3.2.1 to 3.2.2. <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/apache/maven-invoker-plugin/commit/efe8ee0bc66068da1e4bbb4f80d74c8c0ba6ca4b"><code>efe8ee0</code></a> [maven-release-plugin] prepare release maven-invoker-plugin-3.2.2</li> <li><a href="https://github.com/apache/maven-invoker-plugin/commit/32eef92a247a12ab1686f0566f04ac53ddeda77d"><code>32eef92</code></a> [MINVOKER-277] Require Maven 3.1.1</li> <li><a href="https://github.com/apache/maven-invoker-plugin/commit/7fc141894986923dcca022e955bd52a236cb7407"><code>7fc1418</code></a> Bump maven-artifact-transfer from 0.11.0 to 0.13.1</li> <li><a href="https://github.com/apache/maven-invoker-plugin/commit/f1ea2c657408918b4af3e26a0a30e392376635ff"><code>f1ea2c6</code></a> [MINVOKER-276] Update maven-invoker from 3.0.1 to 3.1.0</li> <li><a href="https://github.com/apache/maven-invoker-plugin/commit/d2f5cb6bb831eefc51450baa7b981e6139834af3"><code>d2f5cb6</code></a> Bump actions/cache from v2 to v2.1.4</li> <li><a href="https://github.com/apache/maven-invoker-plugin/commit/9afab19b423494a5b666727a89f015c3fb81b01d"><code>9afab19</code></a> Update maven-site-plugin to 3.9.1 and use Fluido Skin 1.9</li> <li><a href="https://github.com/apache/maven-invoker-plugin/commit/ebe5c5ae69af7b7b17649a66769aa9d7124cb153"><code>ebe5c5a</code></a> [MINVOKER-254] Bump groovy-all from 2.4.20 to 2.4.21</li> <li><a href="https://github.com/apache/maven-invoker-plugin/commit/bfecb96f148d217d8765fcc6b7644c8fc57d4b24"><code>bfecb96</code></a> [MINVOKER-260] confirm streamLogs by IT tests</li> <li><a href="https://github.com/apache/maven-invoker-plugin/commit/a46bf19905ec0560c3119537836b4391e43f44ee"><code>a46bf19</code></a> [MINVOKER-272] use Java 7 Files.createTempDirectory(...) API</li> <li><a href="https://github.com/apache/maven-invoker-plugin/commit/c18d8e5a7a708abfcf9c11a5caef247e63b4ee38"><code>c18d8e5</code></a> Enable Dependabot v2</li> <li>Additional commits viewable in <a href="https://github.com/apache/maven-invoker-plugin/compare/maven-invoker-plugin-3.2.1...maven-invoker-plugin-3.2.2">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=org.apache.maven.plugins:maven-invoker-plugin&package-manager=maven&previous-version=3.2.1&new-version=3.2.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Fixes #991 COPYBARA_INTEGRATE_REVIEW=https://github.com/google/auto/pull/991 from google:dependabot/maven/factory/org.apache.maven.plugins-maven-invoker-plugin-3.2.2 4a6128d92e196ec21df905ccab631395fe07644a PiperOrigin-RevId: 358810355
2021-02-15Bump junit from 4.13.1 to 4.13.2 in /factorydependabot[bot]
Bumps [junit](https://github.com/junit-team/junit4) from 4.13.1 to 4.13.2. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/junit-team/junit4/releases">junit's releases</a>.</em></p> <blockquote> <h2>JUnit 4.13.2</h2> <p>Please refer to the <a href="https://github.com/junit-team/junit/blob/HEAD/doc/ReleaseNotes4.13.2.md">release notes</a> for details.</p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/junit-team/junit4/commit/05fe2a64f59127c02135be22f416e91260d6ede6"><code>05fe2a6</code></a> [maven-release-plugin] prepare release r4.13.2</li> <li><a href="https://github.com/junit-team/junit4/commit/ff57344f7171ea8b0935c4f842cacf1097266592"><code>ff57344</code></a> Add build for JDK 17-ea</li> <li><a href="https://github.com/junit-team/junit4/commit/02aaa01b8f74c0eb496d76685ec49fddeb311087"><code>02aaa01</code></a> Improve check that thread is stopped</li> <li><a href="https://github.com/junit-team/junit4/commit/e9a75f4be71a4d5a794ccd063522eea4b0f3194f"><code>e9a75f4</code></a> Merge test for exception type and message</li> <li><a href="https://github.com/junit-team/junit4/commit/d27ad5259228e84c235dac24cd62f974ac0a8e1d"><code>d27ad52</code></a> Rename DelegateStatement to DelegatingStatement</li> <li><a href="https://github.com/junit-team/junit4/commit/b83dc2e8c4ff06cf233cd347f1280bb417482985"><code>b83dc2e</code></a> Better name for test that stops statement</li> <li><a href="https://github.com/junit-team/junit4/commit/527f3a3d0d71ad6dc66ede6f68f6fc316904ed2a"><code>527f3a3</code></a> Replace InfiniteLoop with RunForASecond</li> <li><a href="https://github.com/junit-team/junit4/commit/2db63942882d91020b46d7333285e5c94f1d1e52"><code>2db6394</code></a> Tidy up FailOnTimeoutTest</li> <li><a href="https://github.com/junit-team/junit4/commit/64634e1c3e357251a84278c26b73b04fc3450ea3"><code>64634e1</code></a> Update 4.13.2 release notes to document pull 1654</li> <li><a href="https://github.com/junit-team/junit4/commit/f8ee412316b1a94d3dc35498359cc2f0ca273216"><code>f8ee412</code></a> Fix serialization of AssumptionViolatedException (<a href="https://github-redirect.dependabot.com/junit-team/junit4/issues/1654">#1654</a>)</li> <li>Additional commits viewable in <a href="https://github.com/junit-team/junit4/compare/r4.13.1...r4.13.2">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=junit:junit&package-manager=maven&previous-version=4.13.1&new-version=4.13.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Fixes #986 COPYBARA_INTEGRATE_REVIEW=https://github.com/google/auto/pull/986 from google:dependabot/maven/factory/junit-junit-4.13.2 40c3453ce0be3c92f04e1649ca00f33cd182184c PiperOrigin-RevId: 357654046
2021-01-26Bump truth from 1.1 to 1.1.2 in /factorydependabot[bot]
Bumps [truth](https://github.com/google/truth) from 1.1 to 1.1.2. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/google/truth/releases">truth's releases</a>.</em></p> <blockquote> <h2>1.1.2</h2> <p>This release completes the feature that I got wrong in <a href="https://github.com/google/truth/releases/tag/release_1_1_1">1.1.1</a> -- the ability to exclude our JUnit 4 dependency and still use standard Truth assertions.</p> <ul> <li>Made it possible for users to exclude our JUnit 4 dependency and still use standard Truth assertions -- <em>really</em> this time, even in cases in which excluding the dependency failed under <a href="https://github.com/google/truth/releases/tag/release_1_1_1">1.1.1</a>. (JUnit 4 is still required for some advanced features, like <code>Expect</code>, <code>ExpectFailure</code>, and <code>TruthJUnit.assume()</code>.) (948f3edca)</li> <li>When JUnit 4 is excluded from the classpath, the <code>AssertionError</code> Truth generates as a substitute for <code>ComparisonFailure</code> now includes the expected and actual values that were missing in <a href="https://github.com/google/truth/releases/tag/release_1_1_1">1.1.1</a>. (6b0140730)</li> </ul> <h2>1.1.1</h2> <p><strong>We recommend not trying to exclude our JUnit dependency even under this release. We will release 1.1.2 with better handling for the missing dependency shortly.</strong></p> <ul> <li><del>Made it possible for users to exclude our JUnit 4 dependency and still use standard Truth assertions. (JUnit 4 is still required for some advanced features, like <code>Expect</code>, <code>ExpectFailure</code>, and <code>TruthJUnit.assume()</code>.) (2d65326ec)</del> <ul> <li><strong>Update:</strong> This appears to let users exclude the dependency in some cases <a href="https://github-redirect.dependabot.com/google/truth/issues/333#issuecomment-765616282">but not all</a>. We are working on <a href="https://github-redirect.dependabot.com/google/truth/pull/806">a fix</a>.</li> <li><strong>Update 2:</strong> Also, even if you succeed in excluding the dependency in your environment, you will see failure messages that are missing information. We have <a href="https://github.com/google/truth/commit/6b0140730fa0e3ebb3056ddb0ae30863bbf95364">a fix</a> for this ready.</li> </ul> </li> </ul> <p>If you wish to exclude our JUnit dependency, you may wish to consider <a href="https://github-redirect.dependabot.com/google/truth/issues/333#issuecomment-765616282">this alternative approach</a>. That approach <a href="https://github-redirect.dependabot.com/google/truth/issues/333#issuecomment-765677646">may be worthwhile even after we fix the bugs described above</a>.</p> <p>I apologize for the trouble.</p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/google/truth/commits">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=com.google.truth:truth&package-manager=maven&previous-version=1.1&new-version=1.1.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Fixes #974 COPYBARA_INTEGRATE_REVIEW=https://github.com/google/auto/pull/974 from google:dependabot/maven/factory/com.google.truth-truth-1.1.2 bdefab4a7185f6bb526b5af38d589fe4c978850b PiperOrigin-RevId: 353866932
2021-01-15Bump plexus-java from 1.0.5 to 1.0.6 in /factorydependabot[bot]
Bumps [plexus-java](https://github.com/codehaus-plexus/plexus-languages) from 1.0.5 to 1.0.6. <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/codehaus-plexus/plexus-languages/commit/29371988cece5c37e2f6e661d249ca4a897e5988"><code>2937198</code></a> [maven-release-plugin] prepare release plexus-languages-1.0.6</li> <li><a href="https://github.com/codehaus-plexus/plexus-languages/commit/e24c11531a55e7e234b3b7e5208c0b9c01216321"><code>e24c115</code></a> manage maven-javadoc-plugin version in root pom</li> <li><a href="https://github.com/codehaus-plexus/plexus-languages/commit/695c2ca846dec90957d3b8c1b4881d60dfed32fa"><code>695c2ca</code></a> Update maven-shared-resources for maven-checkstyle-plugin</li> <li><a href="https://github.com/codehaus-plexus/plexus-languages/commit/6473afcd32bdab490a6f53367c9b0eb54c07bfbd"><code>6473afc</code></a> Bump guice from 4.1.0 to 4.2.3</li> <li><a href="https://github.com/codehaus-plexus/plexus-languages/commit/50a010b55f9c0e89a6e20c3a5b9e186c58d4e4de"><code>50a010b</code></a> Bump actions/cache from v2.1.2 to v2.1.3</li> <li><a href="https://github.com/codehaus-plexus/plexus-languages/commit/4c4cb8acd760c502dc4b74bc93ae3328f1e8ad02"><code>4c4cb8a</code></a> Bump release-drafter/release-drafter from v5.11.0 to v5.13.0</li> <li><a href="https://github.com/codehaus-plexus/plexus-languages/commit/93714422ea7ca907b1012930150ea3da3cd604d1"><code>9371442</code></a> Bump maven-enforcer-plugin from 3.0.0-M1 to 3.0.0-M3</li> <li><a href="https://github.com/codehaus-plexus/plexus-languages/commit/bf4bb5488dabb99411055abd5e023cba52ff774d"><code>bf4bb54</code></a> Bump plexus from 6.5 to 7</li> <li><a href="https://github.com/codehaus-plexus/plexus-languages/commit/1802e9fba5b48d96b6c17cdd13e76400edb56acb"><code>1802e9f</code></a> Bump sisu-maven-plugin from 0.3.3 to 0.3.4</li> <li><a href="https://github.com/codehaus-plexus/plexus-languages/commit/eaba96a1cbdf4ca2d9d3c79e017d993b9fa8d5a3"><code>eaba96a</code></a> Bump maven-failsafe-plugin from 2.21.0 to 2.22.2</li> <li>Additional commits viewable in <a href="https://github.com/codehaus-plexus/plexus-languages/compare/plexus-languages-1.0.5...plexus-languages-1.0.6">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=org.codehaus.plexus:plexus-java&package-manager=maven&previous-version=1.0.5&new-version=1.0.6)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Fixes #954 COPYBARA_INTEGRATE_REVIEW=https://github.com/google/auto/pull/954 from google:dependabot/maven/factory/org.codehaus.plexus-plexus-java-1.0.6 9ccd0f87dbd2d51ae45b5074605de6d41e407200 PiperOrigin-RevId: 352054890
2021-01-09Ensure that type annotations are placed correctly.Éamonn McManus
Treating them the same as other annotations leads to problems with nested types like `Map.Entry`. If a field or parameter is a `Map.Entry` that is `@Nullable`, and if `@Nullable` is a `TYPE_USE` annotation, then the declaration must use `Map.@Nullable Entry`. JavaPoet will do this correctly if the annotations are applied to the `TypeName` for the declaration. Also ensure that type annotations are included in the `T` of `Provider<T>` when that appears in field or parameter declarations. Fixes https://github.com/google/auto/issues/949. RELNOTES=AutoFactory type annotations are now placed correctly even for nested types. PiperOrigin-RevId: 350930373
2020-12-21Bump guava from 30.0-jre to 30.1-jre in /factorydependabot[bot]
Bumps [guava](https://github.com/google/guava) from 30.0-jre to 30.1-jre. - [Release notes](https://github.com/google/guava/releases) - [Commits](https://github.com/google/guava/commits) Signed-off-by: dependabot[bot] <support@github.com>
2020-12-15Handle `@AutoFactory` constructors that throw checked exceptions.Éamonn McManus
The generated `create` method needs to declare the same exceptions. Fixes https://github.com/google/auto/issues/90. RELNOTES=`@AutoFactory` constructors can now declare checked exceptions. The same exceptions will be declared on the generated `create` method. PiperOrigin-RevId: 347657308
2020-12-14Update AutoFactory compilation tests to use the more recent compile-testing API.Éamonn McManus
In a couple of places I changed `.onLine(M).atColumn(N)` into just `onLineContaining(S)`. I don't think we care that much about the column number of the error. Also move a test input file that was in the wrong place. PiperOrigin-RevId: 347454890
2020-10-26Modernize AutoFactory source.Éamonn McManus
* Replace `com.google.common.base.Optional` by `java.util.Optional`. * Use streams and lambdas where appropriate. * Use diamond operator where appropriate. * Remove type arguments made unnecessary by Java 8's improved type inference. * Apply some automated fixes. RELNOTES=n/a PiperOrigin-RevId: 339124210
2020-10-23Stop referencing google-java-format in build configurations.Éamonn McManus
Removing google-java-format from the code was an unannounced effect of https://github.com/google/auto/pull/856. We should have removed it from `pom.xml` at the same time. RELNOTES=google-java-format is no longer referenced in pom.xml. PiperOrigin-RevId: 338704185
2020-10-22Update versions of some plugins.cpovirk
Process: Just look at https://github.com/google/auto/pulls, grep for all files that contain the plugins mentioned, and edit them with Vim :) There might be other plugins that could be updated, too; I didn't check. Fixes #916 Fixes #913 Fixes #912 Fixes #910 Fixes #909 Fixes #907 Fixes #905 Fixes #902 Fixes #898 ...and, as with the previous CL, also "fixes" some PRs that Dependabot hasn't gotten around to submitting yet :) RELNOTES=n/a PiperOrigin-RevId: 338524539
2020-10-22Update a bunch of *deps* (though not *plugins*).cpovirk
Process: ( for F in common factory service value; do ( mvn org.codehaus.mojo:versions-maven-plugin:2.8.1:update-properties org.codehaus.mojo:versions-maven-plugin:2.8.1:use-latest-releases -f $F/pom.xml ); done && mvn org.codehaus.mojo:versions-maven-plugin:2.8.1:use-latest-versions -f value/src/it/gwtserializer/pom.xml ) Then undid the Compile-Testing update in value/pom.xml. It somehow breaks things. And I undid the google-java-format update in factory/pom.xml. It isn't compatible with JDK8/9, which is what Travis is set up for. (And then I flailed around for 15 minutes because Maven didn't rebuild some files when I changed JDKs, producing mystery failures. Argh. Perhaps we should set `<useIncrementalCompilation>` to `false` everywhere.) And *then* I undid the auto-service upgrade in value/processor/pom.xml. It causes problems but only under JDK9: https://travis-ci.org/github/google/auto/jobs/738096563 The error isn't in generated code, so I suspect a compiler bug. (But my quick search didn't find a filed OpenJDK issue.) (Someday I will remember -DgenerateBackupPoms=false....) For some reason, gwtserializer responds to use-latest-versions but not to use-latest-releases, even though it's updating GWT to a release (just as in one of the other POMs). We don't use use-latest-versions everywhere not just because it could theoretically pick a non-release versions but also because use-latest-versions replaces variable usages like ${guava-version} by inlining the value into them: https://github.com/mojohaus/versions-maven-plugin/issues/243 I would have updated the plugins in addition to the deps, but oddly the plugin does not support this: https://stackoverflow.com/q/34032262/28465 Fixes #919, #918, #917, #915, #914, #911, #908, #906, #904, #903, #901, #900, #899 RELNOTES=n/a PiperOrigin-RevId: 338507900
2020-08-27Automatic code cleanup.Google Java Core Libraries
PiperOrigin-RevId: 326930055
2020-06-22Tests related to e62e0abd2fbdfd2512c292ef95d4d152a5ca0691emcmanus
RELNOTES=n/a ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=317148258
2020-06-12Fix a problem with references to Factory classes in other packages.emcmanus
Detect references to not-yet-generated Factory classes, and associate them with the correct package name if the Factory is one of the ones currently being generated. Fixes https://github.com/google/auto/issues/297. RELNOTES=Fix a problem with references to Factory classes in other packages. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=316148042
2020-03-11Update auto-factory dependencies.emcmanus
Closes https://github.com/google/auto/pull/818. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=300120801
2020-03-04Omit java7_compat_test.sh from open-source codebase.cpovirk
It doesn't work there. Apparently ronshapiro@ noticed, as his in-progress Copybara config omits the file. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=298399027
2019-12-18Fix 1 ErrorProneStyle finding:clshepherd
* Constructors and methods with the same name should appear sequentially with no other code in between. Please re-order or re-name methods. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=286176935
2019-10-30Improved AutoFactory error messagemartinsimpson
RELNOTES=Better error message for failed factory write. One known cause of this error is using an impl class name that is the same as the declared interface (in which case this new message will tell you that you are attempting to recreate an existing file name). ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=277308587
2019-08-19Prevent stack overflow caused by self referencing types (ex: E extends Enum<E>).gsaul
RELNOTES="Prevent stack overflow caused by self referencing types (ex: E extends Enum<E>)." #AutoFactory ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=263631678
2019-08-19Add support for type parameters to @AutoFactory.gsaul
RELNOTES=Add support for generics to @AutoFactory #AutoFactory ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=263154977
2019-08-19Don't crash processing classes in the default packagescushon
Fixes https://github.com/google/auto/issues/745 RELNOTES=n/a ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=262160859
2019-08-19Actually include the Gradle Incap processor so that the right manifest files ↵ronshapiro
are written ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=259018995
2019-06-06Don't compare TypeMirrors using Object#equalscushon
RELNOTES=n/a ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=251731604
2019-05-27Make AutoFactory an isolating annotation processor in Gradleronshapiro
RELNOTES=Gradle: `@AutoFactory` is now an isolating annotation processor ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=248771150
2019-05-27Add an originating element for AutoFactory typesronshapiro
RELNOTES=n/a ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=248722215
2019-05-27Don't compare TypeMirrors using Object#equalscushon
They don't override Object#equals and are not interned, so reference equality is not useful. This was causing unnecessary duplication of Provider fields in AutoFactories. RELNOTES=n/a ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=248752047
2019-05-05Stop using auto-parent.cpovirk
It's released separately from all its children, so any updates we make there don't take effect until we make a release and update the child projects to use that. This requires pushing various configuration down into the child projects. Doing so makes the recent attempted update to Truth 0.44 actually take effect. Also, update Compile-Testing to the newly released version, which actually works with Truth 0.44. That upgrade exposes that AutoValue was relying on a transitive dependency on Truth8, which was removed in the latest Compile-Testing, so I've added explicit deps. https://github.com/google/compile-testing/commit/43a513ab14a5b4ab5810a13e14d8cb763546ab5d Also, I removed an explicit version for compile-testing in the AutoValue functional tests. That explicit version may or may not have been needed before, but it shouldn't be now. Likely it would make sense to remove more versions explicitly specified elsewhere. (Additional possible future work: Put deps on other Auto projects (like when AutoService depends on AutoCommon) into <dependencyManagement>.) Finally, I added some <url> values, since Maven has been generating bogus ones all along (by appending the subproject name to the parent URL, producing URLs something like "https://github.com/google/auto/auto-value"). ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=245779060
2019-04-29Update copyrights to say Google LLC instead of Google Inc.emcmanus
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=244250754
2019-01-30Use --release 7 for auto Java 7 tests, and don't run on JDK 7cushon
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=231288987
2018-12-03Update to auto-parent 7 to get the latest version of Guavaronshapiro
Along the way, also clean up some explicit versions that are set in auto-parent Fixes https://github.com/google/auto/issues/683 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=223540267
2018-02-01Fix handling of @Generated in tests after ↵cushon
715b8eb505649a4acaaa5889d4f4b51a91dd8a91, 0383c1cf7472d7444463353aa2ac956c9471130a RELNOTES=N/A ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=184065172
2018-01-29Choose @Generated based on the source version, not the classpath.cushon
RELNOTES=N/A ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=183442436
2018-01-25Add support for type-annotations and CheckerFramework nullable types to ↵ronshapiro
@AutoFactory RELNOTES=Add support for type-annotations and CheckerFramework nullable types to @AutoFactory ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=183251433
2018-01-24Use latest versions of auto-common (0.10) and auto-service (1.0-rc4).dpb
RELNOTES=n/a ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=182924975
2018-01-18Update references to auto-parent 6.dpb
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=182218347
2017-12-19Use auto-value 1.5.3.dpb
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=179463671
2017-12-15Write the correct @Generated annotation within auto-factory.dpb
RELNOTES=Use `@javax.annotation.processing.Generated` for Java 9. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=179187028
2017-12-14Update version of auto-common to 0.9.dpb
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=178808754
2017-12-04Use dependency and plugin management from auto-parent v5. Use latest ↵dpb
dependencies and plugins for the functional test poms (which don't use auto-parent). ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=177592315
2017-09-28Prepare AutoFactory for Java 9:ronshapiro
- don't assume javax.annotation.Generated is available - correctly find the simple names of a nested class's enclosing class(es) ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=170237944
2017-07-05Do not prepend outer classnames to the generated @AutoFactory class name if acwgordon
class name has been explicitly specified. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=160310315
2017-04-28Emit a checkNotNull method in all generated factories instead of packaging a ↵ronshapiro
runtime dependency for one method. Fixes https://github.com/google/auto/issues/436 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=154474844
2017-03-22Add a test that will ensure that AutoFactory continues to generate ↵emcmanus
Java7-compatible code, even if the processor itself is changed so it only runs on Java 8. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=150903705
2017-02-16Fix test which asserted the existence of a diagnostic on an annotation ↵ronshapiro
value, which was not correctly implemented by javac. This bug has been patched and will be in the next version of javac. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=146784756
2016-10-12Use google-java-format's FormattingFiler.ronshapiro
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=135354662
2016-08-29Update the integration test pom.xml files to use a version of ↵cgruber
maven-jar-plugin that isn't broken on ubuntu, causing multi-minute jar times. And while here, bump them all to 2.6 (2.5+ is fine, but may as well, and may as well be consistent.) ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=131537002
2016-08-29Allow varargs on @AutoFactory methodsronshapiro
Github: Fixes google/auto#326 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=130784801
2016-08-29Rename FactoryImplementingGenericInterfaceExtensionFactory file to match the ↵ronshapiro
name of the class ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=129673209