[Git][java-team/error-prone-java][master] Initial packaging

Olek Wojnar gitlab at salsa.debian.org
Fri Jun 12 17:38:04 BST 2020



Olek Wojnar pushed to branch master at Debian Java Maintainers / error-prone-java


Commits:
af0c1ee8 by Olek Wojnar at 2020-06-12T12:38:42-04:00
Initial packaging

- - - - -


14 changed files:

- + debian/changelog
- + debian/control
- + debian/copyright
- + debian/examples
- + debian/liberror-prone-java.poms
- + debian/maven.ignoreRules
- + debian/maven.properties
- + debian/patches/only-build-required-modules.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 @@
+error-prone-java (2.3.2+ds-1) unstable; urgency=medium
+
+  * Initial release (Closes: #959835, #958537)
+
+ -- Olek Wojnar <olek at debian.org>  Fri, 12 Jun 2020 12:06:02 -0400


=====================================
debian/control
=====================================
@@ -0,0 +1,23 @@
+Source: error-prone-java
+Section: java
+Priority: optional
+Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
+Uploaders: Olek Wojnar <olek at debian.org>,
+           Andreas Tille <tille at debian.org>,
+Build-Depends: debhelper-compat (= 13),
+               default-jdk,
+               jdupes,
+               maven-debian-helper,
+Standards-Version: 4.5.0
+Rules-Requires-Root: no
+Vcs-Git: https://salsa.debian.org/java-team/error-prone-java.git
+Vcs-Browser: https://salsa.debian.org/java-team/error-prone-java
+Homepage: https://github.com/google/error-prone
+
+Package: liberror-prone-java
+Architecture: all
+Depends: ${misc:Depends}, ${maven:Depends}
+Suggests: ${maven:OptionalDepends}
+Description: Catch common Java mistakes as compile-time errors
+ Static analysis tool for Java that catches common programming mistakes at
+ compile-time.


=====================================
debian/copyright
=====================================
@@ -0,0 +1,29 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: error-prone
+Source: https://github.com/google/error-prone
+Files-Excluded: */*.jar
+Comment: Exclude pre-built jar files
+
+Files: *
+Copyright: 2014-2020 Google, 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/examples
=====================================
@@ -0,0 +1 @@
+examples/*


=====================================
debian/liberror-prone-java.poms
=====================================
@@ -0,0 +1,4 @@
+pom.xml --no-parent --java-lib
+annotation/pom.xml --java-lib --usj-name=error-prone-annotation
+annotations/pom.xml --java-lib --usj-name=error-prone-annotations
+type_annotations/pom.xml --java-lib --usj-name=error-prone-type-annotations


=====================================
debian/maven.ignoreRules
=====================================
@@ -0,0 +1,7 @@
+com.google.truth truth
+junit junit
+org.apache.maven.plugins maven-checkstyle-plugin
+org.apache.maven.plugins maven-javadoc-plugin
+org.apache.maven.plugins maven-source-plugin
+org.jacoco jacoco-maven-plugin
+org.sonatype.plugins nexus-staging-maven-plugin


=====================================
debian/maven.properties
=====================================
@@ -0,0 +1,7 @@
+project.build.sourceEncoding=UTF-8
+maven.test.skip=true
+maven.compiler.source=1.7
+maven.compiler.target=1.7
+maven.compiler.verbose=true
+org.slf4j.simpleLogger.defaultLogLevel=debug
+trimStackTrace=false


=====================================
debian/patches/only-build-required-modules.patch
=====================================
@@ -0,0 +1,26 @@
+Description: Only build required modules
+ Currently, most Debian packages only use the annotations from this package.
+ Eliminating modules not needed for that purpose vastly simplifies the
+ dependencies. It should be simple to reenable additional modules if that
+ is necessary in the future.
+Author: Olek Wojnar <olek at debian.org>
+Last-Update: 2020-06-12
+
+--- a/pom.xml
++++ b/pom.xml
+@@ -41,15 +41,9 @@
+   </properties>
+ 
+   <modules>
+-    <module>check_api</module>
+-    <module>test_helpers</module>
+-    <module>core</module>
+     <module>annotation</module>
+     <module>annotations</module>
+     <module>type_annotations</module>
+-    <module>docgen</module>
+-    <module>docgen_processor</module>
+-    <module>refaster</module>
+   </modules>
+ 
+   <scm>


=====================================
debian/patches/series
=====================================
@@ -0,0 +1,2 @@
+verbose-build.patch
+only-build-required-modules.patch


=====================================
debian/patches/verbose-build.patch
=====================================
@@ -0,0 +1,15 @@
+Description: Enable verbose build messages
+Author: Olek Wojnar <olek at debian.org>
+Last-Update: 2020-06-12
+
+--- a/pom.xml
++++ b/pom.xml
+@@ -122,6 +122,8 @@
+         <configuration>
+           <source>1.8</source>
+           <target>1.8</target>
++          <compilerArgument>-Xlint:all</compilerArgument>
++          <compilerArgument>-Xdiags:verbose</compilerArgument>
+           <parameters />
+           <testExcludes>
+             <exclude>**/testdata/**</exclude>


=====================================
debian/rules
=====================================
@@ -0,0 +1,12 @@
+#!/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_link:
+	jdupes -rl debian/liberror-prone-java/usr
+	dh_link


=====================================
debian/source/format
=====================================
@@ -0,0 +1 @@
+3.0 (quilt)


=====================================
debian/upstream/metadata
=====================================
@@ -0,0 +1,3 @@
+Bug-Database: https://github.com/google/error-prone/issues
+Repository: https://github.com/google/error-prone
+Repository-Browse: https://github.com/google/error-prone


=====================================
debian/watch
=====================================
@@ -0,0 +1,5 @@
+version=4
+
+opts="repack, repacksuffix=+ds, dversionmangle=s/\+ds\d*$//" \
+  https://github.com/google/error-prone/releases \
+  .*/v(\d[\d\.]*)\.tar\.gz debian uupdate



View it on GitLab: https://salsa.debian.org/java-team/error-prone-java/-/commit/af0c1ee86a5d56c4b7f773df340d5d652369736e

-- 
View it on GitLab: https://salsa.debian.org/java-team/error-prone-java/-/commit/af0c1ee86a5d56c4b7f773df340d5d652369736e
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/f57ac3f2/attachment.html>


More information about the pkg-java-commits mailing list