[Git][java-team/google-auto-value-java][master] Initial packaging
Olek Wojnar
gitlab at salsa.debian.org
Fri Jun 12 19:44:26 BST 2020
Olek Wojnar pushed to branch master at Debian Java Maintainers / google-auto-value-java
Commits:
4e33c87a by Olek Wojnar at 2020-06-12T14:45:34-04:00
Initial packaging
- - - - -
18 changed files:
- + debian/changelog
- + debian/control
- + debian/copyright
- + debian/docs
- + debian/libgoogle-auto-value-java.poms
- + debian/maven.ignoreRules
- + debian/maven.properties
- + debian/patches/move-parent-pom.patch
- + debian/patches/no-gwt.patch
- + debian/patches/no-shade.patch
- + debian/patches/remove-errorprone.patch
- + debian/patches/remove-incap.patch
- + debian/patches/series
- + debian/patches/verbose-build.patch
- + debian/rules
- + debian/source/format
- + debian/upstream/metadata
- + debian/watch
Changes:
=====================================
debian/changelog
=====================================
@@ -0,0 +1,5 @@
+google-auto-value-java (1.7.2-1) unstable; urgency=medium
+
+ * Initial release (Closes: #960989)
+
+ -- Olek Wojnar <olek at debian.org> Wed, 27 May 2020 18:23:27 -0400
=====================================
debian/control
=====================================
@@ -0,0 +1,36 @@
+Source: google-auto-value-java
+Section: java
+Priority: optional
+Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
+Uploaders: Andreas Tille <tille at debian.org>,
+ Olek Wojnar <olek at debian.org>,
+Build-Depends: debhelper-compat (= 13),
+ default-jdk,
+ libescapevelocity-java,
+ libgoogle-auto-common-java,
+ libgoogle-auto-service-java,
+ libguava-java,
+ libjavapoet-java,
+ libmaven-invoker-plugin-java,
+ libplexus-languages-java,
+ libsurefire-java,
+ maven-debian-helper,
+ velocity,
+Standards-Version: 4.5.0
+Rules-Requires-Root: no
+Vcs-Git: https://salsa.debian.org/java-team/google-auto-value-java.git
+Vcs-Browser: https://salsa.debian.org/java-team/google-auto-value-java
+Homepage: https://github.com/google/auto
+
+Package: libgoogle-auto-value-java
+Architecture: all
+Depends: ${misc:Depends}, ${maven:Depends}
+Suggests: ${maven:OptionalDepends}
+Description: Generated immutable value classes for Java 7+
+ Java is full of code that is mechanical, repetitive, typically untested, and
+ sometimes the source of subtle bugs. Sounds like a job for robots! The Auto
+ subprojects are a collection of code generators that automate those types of
+ tasks. They create the code you would have written, but without the bugs. Save
+ time. Save code. Save sanity.
+ .
+ This package contains the immutable value classes.
=====================================
debian/copyright
=====================================
@@ -0,0 +1,32 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: auto-value
+Source: https://github.com/google/auto
+
+Files: *
+Copyright: 2008-2020 Google, Inc.
+License: Apache-2.0
+
+Files: common/src/main/java/com/google/auto/common/MoreElements.java
+Copyright: 2013 Google, Inc.
+ 2013 Square, Inc.
+License: Apache-2.0
+
+Files: debian/*
+Copyright: 2020 Olek Wojnar <olek at debian.org>
+License: Apache-2.0
+
+License: Apache-2.0
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+ .
+ http://www.apache.org/licenses/LICENSE-2.0
+ .
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied..
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ .
+ On Debian systems, the complete text of the Apache version 2.0 license
+ can be found in "/usr/share/common-licenses/Apache-2.0".
=====================================
debian/docs
=====================================
@@ -0,0 +1 @@
+README.md
=====================================
debian/libgoogle-auto-value-java.poms
=====================================
@@ -0,0 +1,4 @@
+pom.xml --no-parent
+value/annotations/pom.xml
+value/processor/pom.xml
+value/src/it/functional/pom.xml --usj-name=auto-value-functional
=====================================
debian/maven.ignoreRules
=====================================
@@ -0,0 +1,15 @@
+com.google.errorprone error_prone_annotations
+com.google.guava guava-gwt
+com.google.guava guava-testlib
+com.google.gwt gwt
+com.google.gwt gwt-dev
+com.google.gwt gwt-user
+com.google.testing.compile compile-testing
+com.google.truth truth
+com.google.truth.extensions truth-java8-extension
+junit junit
+net.ltgt.gradle.incap incap
+net.ltgt.gradle.incap incap-processor
+net.ltgt.gwt.maven gwt-maven-plugin
+org.eclipse.jdt ecj
+org.mockito mockito-core
=====================================
debian/maven.properties
=====================================
@@ -0,0 +1,3 @@
+project.build.sourceEncoding=UTF-8
+maven.test.skip=true
+maven.compiler.verbose=true
=====================================
debian/patches/move-parent-pom.patch
=====================================
@@ -0,0 +1,60 @@
+Description: Move parent POM to root package directory
+ Allows Maven to find it and correctly build the package
+Author: Olek Wojnar <olek at debian.org>
+Last-Update: 2020-06-03
+
+--- a/value/pom.xml
++++ b/value/pom.xml
+@@ -66,9 +66,9 @@
+ </organization>
+
+ <modules>
+- <module>annotations</module>
+- <module>processor</module>
+- <module>src/it/functional</module>
++ <module>value/annotations</module>
++ <module>value/processor</module>
++ <module>value/src/it/functional</module>
+ </modules>
+
+ <dependencyManagement>
+@@ -167,7 +167,7 @@
+ <addTestClassPath>true</addTestClassPath>
+ <cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo>
+ <pomIncludes>
+- <pomInclude>*/pom.xml</pomInclude>
++ <pomInclude>value/*/pom.xml</pomInclude>
+ </pomIncludes>
+ <streamLogs>true</streamLogs>
+ </configuration>
+--- a/value/src/it/functional/pom.xml
++++ b/value/src/it/functional/pom.xml
+@@ -23,7 +23,7 @@
+ <groupId>com.google.auto.value</groupId>
+ <artifactId>auto-value-parent</artifactId>
+ <version>1.7.2</version>
+- <relativePath>../../../pom.xml</relativePath>
++ <relativePath>../../../../pom.xml</relativePath>
+ </parent>
+ <url>https://github.com/google/auto/tree/master/value</url>
+
+--- a/value/annotations/pom.xml
++++ b/value/annotations/pom.xml
+@@ -22,6 +22,7 @@
+ <groupId>com.google.auto.value</groupId>
+ <artifactId>auto-value-parent</artifactId>
+ <version>1.7.2</version>
++ <relativePath>../../pom.xml</relativePath>
+ </parent>
+
+ <groupId>com.google.auto.value</groupId>
+--- a/value/processor/pom.xml
++++ b/value/processor/pom.xml
+@@ -22,6 +22,7 @@
+ <groupId>com.google.auto.value</groupId>
+ <artifactId>auto-value-parent</artifactId>
+ <version>1.7.2</version>
++ <relativePath>../../pom.xml</relativePath>
+ </parent>
+
+ <groupId>com.google.auto.value</groupId>
=====================================
debian/patches/no-gwt.patch
=====================================
@@ -0,0 +1,15 @@
+Description: Do not build GWT package
+ GWT not currently packaged for Debian
+Author: Olek Wojnar <olek at debian.org>
+Last-Update: 2020-06-03
+
+--- a/value/pom.xml
++++ b/value/pom.xml
+@@ -69,7 +69,6 @@
+ <module>annotations</module>
+ <module>processor</module>
+ <module>src/it/functional</module>
+- <module>src/it/gwtserializer</module>
+ </modules>
+
+ <dependencyManagement>
=====================================
debian/patches/no-shade.patch
=====================================
@@ -0,0 +1,73 @@
+Description: Do not build shade
+ We don't want an uber-jar in the Debian package
+Author: Olek Wojnar <olek at debian.org>
+Last-Update: 2020-06-03
+
+--- a/value/pom.xml
++++ b/value/pom.xml
+@@ -182,11 +182,6 @@
+ </execution>
+ </executions>
+ </plugin>
+- <plugin>
+- <groupId>org.immutables.tools</groupId>
+- <artifactId>maven-shade-plugin</artifactId>
+- <version>4</version>
+- </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+--- a/value/processor/pom.xml
++++ b/value/processor/pom.xml
+@@ -160,51 +160,6 @@
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-invoker-plugin</artifactId>
+ </plugin>
+- <plugin>
+- <groupId>org.immutables.tools</groupId>
+- <artifactId>maven-shade-plugin</artifactId>
+- <executions>
+- <execution>
+- <phase>package</phase>
+- <goals>
+- <goal>shade</goal>
+- </goals>
+- <configuration>
+- <minimizeJar>true</minimizeJar>
+- <artifactSet>
+- <excludes>
+- <exclude>com.google.code.findbugs:jsr305</exclude>
+- </excludes>
+- </artifactSet>
+- <relocations>
+- <relocation>
+- <pattern>org.objectweb</pattern>
+- <shadedPattern>autovalue.shaded.org.objectweb$</shadedPattern>
+- </relocation>
+- <relocation>
+- <pattern>com.google</pattern>
+- <shadedPattern>autovalue.shaded.com.google$</shadedPattern>
+- <excludes>
+- <exclude>com.google.auto.value.**</exclude>
+- </excludes>
+- </relocation>
+- <relocation>
+- <pattern>com.squareup.javapoet</pattern>
+- <shadedPattern>autovalue.shaded.com.squareup.javapoet$</shadedPattern>
+- </relocation>
+- <relocation>
+- <pattern>net.ltgt.gradle.incap</pattern>
+- <shadedPattern>autovalue.shaded.net.ltgt.gradle.incap$</shadedPattern>
+- </relocation>
+- <relocation>
+- <pattern>org.checkerframework</pattern>
+- <shadedPattern>autovalue.shaded.org.checkerframework$</shadedPattern>
+- </relocation>
+- </relocations>
+- </configuration>
+- </execution>
+- </executions>
+- </plugin>
+ </plugins>
+ </build>
+ <profiles>
=====================================
debian/patches/remove-errorprone.patch
=====================================
@@ -0,0 +1,49 @@
+Description: Remove errorprone references
+ Not currently packaged for Debian (although should be soon)
+Author: Olek Wojnar <olek at debian.org>
+Last-Update: 2020-06-03
+
+--- a/value/src/main/java/com/google/auto/value/extension/memoized/processor/MemoizeExtension.java
++++ b/value/src/main/java/com/google/auto/value/extension/memoized/processor/MemoizeExtension.java
+@@ -53,7 +53,6 @@
+ import com.google.common.base.Joiner;
+ import com.google.common.collect.ImmutableList;
+ import com.google.common.collect.ImmutableSet;
+-import com.google.errorprone.annotations.FormatMethod;
+ import com.squareup.javapoet.AnnotationSpec;
+ import com.squareup.javapoet.ClassName;
+ import com.squareup.javapoet.CodeBlock;
+@@ -463,7 +462,6 @@
+ }
+ }
+
+- @FormatMethod
+ private void printMessage(Kind kind, String format, Object... args) {
+ if (kind.equals(ERROR)) {
+ hasErrors = true;
+--- a/value/src/main/java/com/google/auto/value/processor/AutoAnnotationProcessor.java
++++ b/value/src/main/java/com/google/auto/value/processor/AutoAnnotationProcessor.java
+@@ -26,7 +26,6 @@
+ import com.google.common.collect.ImmutableMap;
+ import com.google.common.collect.ImmutableSet;
+ import com.google.common.primitives.Primitives;
+-import com.google.errorprone.annotations.FormatMethod;
+ import java.io.IOException;
+ import java.io.Writer;
+ import java.util.Collection;
+@@ -80,7 +79,6 @@
+ * Issue a compilation error. This method does not throw an exception, since we want to continue
+ * processing and perhaps report other errors.
+ */
+- @FormatMethod
+ private void reportError(Element e, String msg, Object... msgParams) {
+ String formattedMessage = String.format(msg, msgParams);
+ processingEnv.getMessager().printMessage(Diagnostic.Kind.ERROR, formattedMessage, e);
+@@ -90,7 +88,6 @@
+ * Issue a compilation error and return an exception that, when thrown, will cause the processing
+ * of this class to be abandoned. This does not prevent the processing of other classes.
+ */
+- @FormatMethod
+ private AbortProcessingException abortWithError(Element e, String msg, Object... msgParams) {
+ reportError(e, msg, msgParams);
+ return new AbortProcessingException();
=====================================
debian/patches/remove-incap.patch
=====================================
@@ -0,0 +1,111 @@
+Description: Remove incap references
+ Not currently packaged for Debian
+Author: Olek Wojnar <olek at debian.org>
+Last-Update: 2020-06-03
+
+--- a/value/src/main/java/com/google/auto/value/extension/memoized/processor/MemoizedValidator.java
++++ b/value/src/main/java/com/google/auto/value/extension/memoized/processor/MemoizedValidator.java
+@@ -33,15 +33,12 @@
+ import javax.lang.model.element.Element;
+ import javax.lang.model.element.ExecutableElement;
+ import javax.lang.model.element.TypeElement;
+-import net.ltgt.gradle.incap.IncrementalAnnotationProcessor;
+-import net.ltgt.gradle.incap.IncrementalAnnotationProcessorType;
+
+ /**
+ * An annotation {@link Processor} that reports errors for {@link Memoized @Memoized} methods that
+ * are not inside {@code AutoValue}-annotated classes.
+ */
+ @AutoService(Processor.class)
+- at IncrementalAnnotationProcessor(IncrementalAnnotationProcessorType.ISOLATING)
+ @SupportedAnnotationTypes(MEMOIZED_NAME)
+ public final class MemoizedValidator extends AbstractProcessor {
+ @Override
+--- a/value/src/main/java/com/google/auto/value/processor/AutoAnnotationProcessor.java
++++ b/value/src/main/java/com/google/auto/value/processor/AutoAnnotationProcessor.java
+@@ -59,8 +59,6 @@
+ import javax.lang.model.util.Types;
+ import javax.tools.Diagnostic;
+ import javax.tools.JavaFileObject;
+-import net.ltgt.gradle.incap.IncrementalAnnotationProcessor;
+-import net.ltgt.gradle.incap.IncrementalAnnotationProcessorType;
+
+ /**
+ * Javac annotation processor (compiler plugin) to generate annotation implementations. User code
+@@ -69,7 +67,6 @@
+ * @author emcmanus at google.com (Éamonn McManus)
+ */
+ @AutoService(Processor.class)
+- at IncrementalAnnotationProcessor(IncrementalAnnotationProcessorType.ISOLATING)
+ @SupportedAnnotationTypes(AUTO_ANNOTATION_NAME)
+ public class AutoAnnotationProcessor extends AbstractProcessor {
+ public AutoAnnotationProcessor() {}
+--- a/value/src/main/java/com/google/auto/value/processor/AutoOneOfProcessor.java
++++ b/value/src/main/java/com/google/auto/value/processor/AutoOneOfProcessor.java
+@@ -45,8 +45,6 @@
+ import javax.lang.model.type.DeclaredType;
+ import javax.lang.model.type.TypeKind;
+ import javax.lang.model.type.TypeMirror;
+-import net.ltgt.gradle.incap.IncrementalAnnotationProcessor;
+-import net.ltgt.gradle.incap.IncrementalAnnotationProcessorType;
+
+ /**
+ * Javac annotation processor (compiler plugin) for {@linkplain com.google.auto.value.AutoOneOf
+@@ -57,7 +55,6 @@
+ */
+ @AutoService(Processor.class)
+ @SupportedAnnotationTypes(AUTO_ONE_OF_NAME)
+- at IncrementalAnnotationProcessor(IncrementalAnnotationProcessorType.ISOLATING)
+ public class AutoOneOfProcessor extends AutoValueOrOneOfProcessor {
+ public AutoOneOfProcessor() {
+ super(AUTO_ONE_OF_NAME);
+--- a/value/src/main/java/com/google/auto/value/processor/AutoValueBuilderProcessor.java
++++ b/value/src/main/java/com/google/auto/value/processor/AutoValueBuilderProcessor.java
+@@ -30,8 +30,6 @@
+ import javax.lang.model.element.Element;
+ import javax.lang.model.element.TypeElement;
+ import javax.tools.Diagnostic;
+-import net.ltgt.gradle.incap.IncrementalAnnotationProcessor;
+-import net.ltgt.gradle.incap.IncrementalAnnotationProcessorType;
+
+ /**
+ * Annotation processor that checks that the type that {@code AutoValue.Builder} is applied to is
+@@ -41,7 +39,6 @@
+ * @author Éamonn McManus
+ */
+ @AutoService(Processor.class)
+- at IncrementalAnnotationProcessor(IncrementalAnnotationProcessorType.ISOLATING)
+ @SupportedAnnotationTypes(AUTO_VALUE_BUILDER_NAME)
+ public class AutoValueBuilderProcessor extends AbstractProcessor {
+ @Override
+--- a/value/src/main/java/com/google/auto/value/processor/AutoValueProcessor.java
++++ b/value/src/main/java/com/google/auto/value/processor/AutoValueProcessor.java
+@@ -51,8 +51,6 @@
+ import javax.lang.model.element.TypeElement;
+ import javax.lang.model.type.TypeKind;
+ import javax.lang.model.type.TypeMirror;
+-import net.ltgt.gradle.incap.IncrementalAnnotationProcessor;
+-import net.ltgt.gradle.incap.IncrementalAnnotationProcessorType;
+
+ /**
+ * Javac annotation processor (compiler plugin) for value types; user code never references this
+@@ -63,7 +61,6 @@
+ */
+ @AutoService(Processor.class)
+ @SupportedAnnotationTypes(AUTO_VALUE_NAME)
+- at IncrementalAnnotationProcessor(IncrementalAnnotationProcessorType.DYNAMIC)
+ public class AutoValueProcessor extends AutoValueOrOneOfProcessor {
+ private static final String OMIT_IDENTIFIERS_OPTION = "com.google.auto.value.OmitIdentifiers";
+
+@@ -147,9 +144,9 @@
+ AutoValueExtension.IncrementalExtensionType incrementalType) {
+ switch (incrementalType) {
+ case ISOLATING:
+- return ImmutableSet.of(IncrementalAnnotationProcessorType.ISOLATING.getProcessorOption());
++ return ImmutableSet.of();
+ case AGGREGATING:
+- return ImmutableSet.of(IncrementalAnnotationProcessorType.AGGREGATING.getProcessorOption());
++ return ImmutableSet.of();
+ case UNKNOWN:
+ return ImmutableSet.of();
+ }
=====================================
debian/patches/series
=====================================
@@ -0,0 +1,6 @@
+verbose-build.patch
+remove-incap.patch
+remove-errorprone.patch
+no-shade.patch
+no-gwt.patch
+move-parent-pom.patch
=====================================
debian/patches/verbose-build.patch
=====================================
@@ -0,0 +1,14 @@
+Description: Enable verbose build messages
+Author: Olek Wojnar <olek at debian.org>
+Last-Update: 2020-05-31
+
+--- a/value/pom.xml
++++ b/value/pom.xml
+@@ -143,6 +143,7 @@
+ <source>${java.version}</source>
+ <target>${java.version}</target>
+ <compilerArgument>-Xlint:all</compilerArgument>
++ <compilerArgument>-Xdiags:verbose</compilerArgument>
+ <showWarnings>true</showWarnings>
+ <showDeprecation>true</showDeprecation>
+ </configuration>
=====================================
debian/rules
=====================================
@@ -0,0 +1,16 @@
+#!/usr/bin/make -f
+
+# Ensure packages build with no Internet access
+export http_proxy=127.0.0.1:9
+export https_proxy=127.0.0.1:9
+
+%:
+ dh $@
+
+override_dh_auto_configure:
+ [ ! -f value/pom.xml ] || mv value/pom.xml pom.xml
+ dh_auto_configure
+
+override_dh_auto_clean:
+ [ ! -f pom.xml ] || mv pom.xml value/pom.xml
+ dh_auto_clean
=====================================
debian/source/format
=====================================
@@ -0,0 +1 @@
+3.0 (quilt)
=====================================
debian/upstream/metadata
=====================================
@@ -0,0 +1,3 @@
+Bug-Database: https://github.com/google/auto/labels/Component%3A%20value
+Repository: https://github.com/google/auto
+Repository-Browse: https://github.com/google/auto
=====================================
debian/watch
=====================================
@@ -0,0 +1,5 @@
+version=4
+
+opts="repack" \
+ https://github.com/google/auto/tags \
+ .*/auto-value-(\d[\d\.]*)\.tar\.gz debian uupdate
View it on GitLab: https://salsa.debian.org/java-team/google-auto-value-java/-/commit/4e33c87ac621d953f0605fa03907cc825215ba49
--
View it on GitLab: https://salsa.debian.org/java-team/google-auto-value-java/-/commit/4e33c87ac621d953f0605fa03907cc825215ba49
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-commits/attachments/20200612/6fbc28a0/attachment.html>
More information about the pkg-java-commits
mailing list