├── .buildscript
├── deploy_snapshot.sh
└── settings.xml
├── .gitignore
├── .travis.yml
├── README.md
└── pom.xml
/.buildscript/deploy_snapshot.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | #
3 | # Deploy a jar, source jar, and javadoc jar to Sonatype's snapshot repo.
4 | #
5 | # Adapted from https://coderwall.com/p/9b_lfq and
6 | # http://benlimmer.com/2013/12/26/automatically-publish-javadoc-to-gh-pages-with-travis-ci/
7 |
8 | SLUG="JakeWharton/AutoValueAnnotations"
9 | JDK="oraclejdk8"
10 | BRANCH="master"
11 |
12 | set -e
13 |
14 | if [ "$TRAVIS_REPO_SLUG" != "$SLUG" ]; then
15 | echo "Skipping snapshot deployment: wrong repository. Expected '$SLUG' but was '$TRAVIS_REPO_SLUG'."
16 | elif [ "$TRAVIS_JDK_VERSION" != "$JDK" ]; then
17 | echo "Skipping snapshot deployment: wrong JDK. Expected '$JDK' but was '$TRAVIS_JDK_VERSION'."
18 | elif [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
19 | echo "Skipping snapshot deployment: was pull request."
20 | elif [ "$TRAVIS_BRANCH" != "$BRANCH" ]; then
21 | echo "Skipping snapshot deployment: wrong branch. Expected '$BRANCH' but was '$TRAVIS_BRANCH'."
22 | else
23 | echo "Deploying snapshot..."
24 | mvn clean source:jar javadoc:jar deploy --settings=".buildscript/settings.xml" -Dmaven.test.skip=true
25 | echo "Snapshot deployed!"
26 | fi
27 |
--------------------------------------------------------------------------------
/.buildscript/settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | sonatype-nexus-snapshots
5 | ${env.CI_DEPLOY_USERNAME}
6 | ${env.CI_DEPLOY_PASSWORD}
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Eclipse
2 | .classpath
3 | .project
4 | .settings
5 | eclipsebin
6 |
7 | # Ant
8 | bin
9 | gen
10 | build
11 | out
12 | lib
13 |
14 | # Maven
15 | target
16 | pom.xml.*
17 | release.properties
18 | dependency-reduced-pom.xml
19 |
20 | # IntelliJ
21 | .idea
22 | *.iml
23 | *.iws
24 | *.ipr
25 | classes
26 |
27 | .DS_Store
28 |
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | language: java
2 |
3 | jdk:
4 | - oraclejdk7
5 | - oraclejdk8
6 |
7 | after_success:
8 | - .buildscript/deploy_snapshot.sh
9 |
10 | env:
11 | global:
12 | - secure: "jRMV0uLkAMiSw6IHgXHGVboX/jDS1qWRgaj0AuQNuSnwJBuqVeztlUPyvIa3fdAxo8/K6L2PW7agZJGmr+owPzMYydy3ap8VHgOvsWsM940wG2jRe0Mvqb0LgDnZmwLrI4Ipso+iNBYE1OgzL53gD6Cr9HC+GoVk4sUCy3/H8A/SDk3jiUxoQOQFX9KSCh9i6pLOIk80+Hve2OShPEsPE02UXpWUsCf6oDxVvW+s0M5dctawV6O1nvPbFcqbQPNYIF/0a/hsFaAwBJExar0pc/RBD7oiV4scb66NtlVQaYxkVoEh23WByIgy9gPfn60rQKM/hm/4efYiadZKsjgWvZWnERK1puEvXaKKuhEQXkiL/KzEiYkfAWI6U47WcpfmCrM7Ht1FaT2+PDN+kvsiaVOAHr/y9nl7MocpkMvRyMQSJnRYEcWe4b0HLnruQ0SsOtmkhsQflzbRnvyKWomHCSaurFmDtZEWDdmBrjt876zTg6iO7QZHmSx1YZC+Gpiv4dChz5JV6KkWzI4cWNT8A4Zmp6Lj4SL5FIHgf1g1zdv0VQOMsH4SG6znkEAmJIzptbhm5QW4/CIDtuLFNfV0Nx71TWe5ODOJm2gC7f4a5wYYX5XK48M757ltNgx+Yw6BWnaP7LUiaBiJ7gZ9dpBrkv6UycwljUuzPYbeqiuZUjM="
13 | - secure: "cnVaDKcUfZaTSeQZqXRxzgvzKkVku4G1Xlw12iwjrwiHS4gkSaBqOywmVX4UqaKH8/3qFNs4yBq6y4C4ssmEqW92KwC23Uzog/D0eTp1FgvIkZmp8yVR5FzsuENwjvZLqf4wwXUrkLJGM8JI6hcntthDR7frCmsqSCS4xQRVLgzrcfiCthRUY12SPifMaDYLxXb9cS2qsOtOhA3OjN5mGjvWiXgSkkaDBsMtNdbkfL+vxmIbNEdSyUL3DTyiYSolBbrMP9QVPMgBQhdm0EUydEjI4+Ipy96rQComGK69qVtO2F6NbS2gPJJp872PtIqAl1Su6WrMBMkYWRBMXbv2AsqS0MqegDPH905LJyzxKhgO0iHhBBPeDiNwTkmaRTnTa4sJHgMNutQdbtjaXDAt41mZ+NL5j9G7+6QkqHqnD4J022JGQiyE1lsim/4DFel1kg++LinzjW4E17zUgpcd2VsuOnhmWmt/QOAiFvv3Qb+rJgYyXLqtLYouBk6xQfSpaTMwcl4/dhY0q5+22Yi/Twvejn20qaeROdgKOsuSd+Rsblx8R/n4aZgJJN87fGiXiAD+EHuLz8Xlg49qddNhAYg6jjpE8trwBvy2vG5vjalp5CSgu/N38l34Xw+LQLJBU+tzim9KthFTBRuh6n3Ygu4stebDaA4e+li9fFYxa6k="
14 |
15 | branches:
16 | except:
17 | - gh-pages
18 |
19 | notifications:
20 | email: false
21 |
22 | sudo: false
23 |
24 | cache:
25 | directories:
26 | - $HOME/.m2
27 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | AutoValue Annotations
2 | =====================
3 |
4 | **Deprecated!**
5 |
6 | As of AutoValue 1.6 a separate auto-value-annotations artifact is available.
7 |
8 | ----
9 |
10 | A standalone packaging of the annotations from [Google's AutoValue library][1].
11 |
12 | When using AutoValue with Gradle it is _highly_ inconvenient to specify the dependency both as
13 | `annotationProcessor` and `provided`. Doing so leaks all of AutoValue's annotation processor code and its
14 | shaded dependencies into your classpath. This project allows you to only depend on the annotations
15 | as `provided` and specify the processor only as an `annotationProcessor` dependency.
16 |
17 | With any luck, [AutoValue issue #268][4] will be implemented sometime in the future obviating the
18 | need for this repacking.
19 |
20 |
21 | Download
22 | --------
23 |
24 | ```groovy
25 | annotationProcessor 'com.google.auto.value:auto-value:1.5'
26 | provided 'com.jakewharton.auto.value:auto-value-annotations:1.5'
27 | ```
28 |
29 |
30 | Change Log
31 | ----------
32 |
33 | This project contains no code. See [AutoValue's change log][2] instead.
34 |
35 |
36 | License
37 | -------
38 |
39 | This project contains no code. See [AutoValue's license][3] instead.
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 | [1]: https://github.com/google/auto/
48 | [2]: https://github.com/google/auto/blob/master/value/CHANGES.md
49 | [3]: https://github.com/google/auto/blob/master/LICENSE.txt
50 | [4]: https://github.com/google/auto/issues/268
51 |
--------------------------------------------------------------------------------
/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 4.0.0
5 |
6 |
7 | org.sonatype.oss
8 | oss-parent
9 | 7
10 |
11 |
12 | com.jakewharton.auto.value
13 | auto-value-annotations
14 | 1.6-SNAPSHOT
15 |
16 | AutoValue Annotations
17 | A standalone packaging of the annotations from Google's AutoValue library.
18 |
19 |
20 | http://github.com/JakeWharton/AutoValueAnnotations
21 | scm:git:git://github.com/JakeWharton/AutoValueAnnotations.git
22 | scm:git:git@github.com:JakeWharton/AutoValueAnnotations.git
23 |
24 |
25 |
26 |
27 | Apache License Version 2.0
28 | http://www.apache.org/licenses/LICENSE-2.0.txt
29 | repo
30 |
31 |
32 |
33 |
34 | UTF-8
35 | 1.6
36 |
37 |
38 |
39 |
40 | com.google.auto.value
41 | auto-value
42 | 1.5
43 |
44 |
45 |
46 |
47 |
48 |
49 | org.apache.maven.plugins
50 | maven-compiler-plugin
51 | 3.3
52 |
53 | ${java.version}
54 | ${java.version}
55 |
56 |
57 |
58 | org.apache.maven.plugins
59 | maven-shade-plugin
60 | 2.4.3
61 |
62 |
63 |
64 | com.google.auto.value:auto-value
65 |
66 | com/google/auto/value/Auto*.class
67 | com/google/auto/value/extension/memoized/Memoized.class
68 |
69 |
70 |
71 |
72 |
73 |
74 | package
75 |
76 | shade
77 |
78 |
79 |
80 |
81 |
82 | org.apache.maven.plugins
83 | maven-jar-plugin
84 |
85 |
86 | empty-javadoc-jar
87 | package
88 |
89 | jar
90 |
91 |
92 | javadoc
93 | ${basedir}/javadoc
94 |
95 |
96 |
97 | empty-source-jar
98 | package
99 |
100 | jar
101 |
102 |
103 | sources
104 | ${basedir}/sources
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
--------------------------------------------------------------------------------