[libclasslojure-clojure] 03/03: Add maven packaging

Elana Hashman ehashman-guest at moszumanska.debian.org
Tue May 9 03:35:57 UTC 2017


This is an automated email from the git hooks/post-receive script.

ehashman-guest pushed a commit to branch master
in repository libclasslojure-clojure.

commit 9c74a76835df22a048496042d1b30cc48438c06f
Author: Elana Hashman <debian at hashman.ca>
Date:   Mon May 8 23:04:00 2017 -0400

    Add maven packaging
---
 debian/changelog                |  6 ++++
 debian/control                  |  7 +++-
 debian/libclasslojure.classpath |  1 +
 debian/libclasslojure.doc-base  |  9 +++++
 debian/libclasslojure.docs      |  2 ++
 debian/libclasslojure.jlibs     |  1 +
 debian/libclasslojure.poms      | 28 +++++++++++++++
 debian/pom.xml                  | 80 +++++++++++++++++++++++++++++++++++++++++
 debian/rules                    |  2 +-
 9 files changed, 134 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 9a46c3b..f1fac33 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+libclasslojure-clojure (0.7.1-2) unstable; urgency=medium
+
+  * Add maven packaging.
+
+ -- Elana Hashman <debian at hashman.ca>  Sat, 22 Apr 2017 15:13:33 -0400
+
 libclasslojure-clojure (0.7.1-1) unstable; urgency=medium
 
   * Initial release. (Closes: #698693)
diff --git a/debian/control b/debian/control
index a7b9c0e..f62ef27 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,12 @@ Section: java
 Priority: optional
 Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
 Uploaders: Elana Hashman <debian at hashman.ca>,
-Build-Depends: debhelper (>= 10), javahelper (>= 0.32), clojure (>= 1.5), default-jdk
+Build-Depends:
+ debhelper (>= 10),
+ javahelper (>= 0.32),
+ maven-repo-helper (>= 1.7),
+ default-jdk,
+ clojure (>= 1.5)
 Standards-Version: 3.9.8
 Vcs-Git: https://anonscm.debian.org/git/pkg-java/libclasslojure-clojure.git
 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-java/libclasslojure-clojure.git;a=summary
diff --git a/debian/libclasslojure.classpath b/debian/libclasslojure.classpath
new file mode 100644
index 0000000..a36801d
--- /dev/null
+++ b/debian/libclasslojure.classpath
@@ -0,0 +1 @@
+/usr/share/java/clojure.jar
diff --git a/debian/libclasslojure.doc-base b/debian/libclasslojure.doc-base
new file mode 100644
index 0000000..78d1ac3
--- /dev/null
+++ b/debian/libclasslojure.doc-base
@@ -0,0 +1,9 @@
+Document: libclasslojure-clojure
+Title: classlojure
+Author: Nelson Morris
+Abstract: libclasslojure-clojure README
+Section: Programming
+
+Format: Text
+Index: /usr/share/doc/libclasslojure-clojure/README.md
+Files: /usr/share/doc/libclasslojure-clojure/README.md
diff --git a/debian/libclasslojure.docs b/debian/libclasslojure.docs
new file mode 100644
index 0000000..968f11e
--- /dev/null
+++ b/debian/libclasslojure.docs
@@ -0,0 +1,2 @@
+README.md
+doc/*
diff --git a/debian/libclasslojure.jlibs b/debian/libclasslojure.jlibs
new file mode 100644
index 0000000..10c1a66
--- /dev/null
+++ b/debian/libclasslojure.jlibs
@@ -0,0 +1 @@
+classlojure.jar
diff --git a/debian/libclasslojure.poms b/debian/libclasslojure.poms
new file mode 100644
index 0000000..93f9c2a
--- /dev/null
+++ b/debian/libclasslojure.poms
@@ -0,0 +1,28 @@
+# List of POM files for the package
+# Format of this file is:
+# <path to pom file> [option]*
+# where option can be:
+#   --ignore: ignore this POM and its artifact if any
+#   --ignore-pom: don't install the POM. To use on POM files that are created
+#     temporarily for certain artifacts such as Javadoc jars. [mh_install, mh_installpoms]
+#   --no-parent: remove the <parent> tag from the POM
+#   --package=<package>: an alternative package to use when installing this POM
+#      and its artifact
+#   --has-package-version: to indicate that the original version of the POM is the same as the upstream part
+#      of the version for the package.
+#   --keep-elements=<elem1,elem2>: a list of XML elements to keep in the POM
+#      during a clean operation with mh_cleanpom or mh_installpom
+#   --artifact=<path>: path to the build artifact associated with this POM,
+#      it will be installed when using the command mh_install. [mh_install]
+#   --java-lib: install the jar into /usr/share/java to comply with Debian
+#      packaging guidelines
+#   --usj-name=<name>: name to use when installing the library in /usr/share/java
+#   --usj-version=<version>: version to use when installing the library in /usr/share/java
+#   --no-usj-versionless: don't install the versionless link in /usr/share/java
+#   --dest-jar=<path>: the destination for the real jar.
+#     It will be installed with mh_install. [mh_install]
+#   --classifier=<classifier>: Optional, the classifier for the jar. Empty by default.
+#   --site-xml=<location>: Optional, the location for site.xml if it needs to be installed.
+#     Empty by default. [mh_install]
+#
+debian/pom.xml --usj-name=classlojure
diff --git a/debian/pom.xml b/debian/pom.xml
new file mode 100644
index 0000000..43950b2
--- /dev/null
+++ b/debian/pom.xml
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.flatland</groupId>
+  <artifactId>classlojure</artifactId>
+  <packaging>jar</packaging>
+  <version>0.7.1</version>
+  <name>classlojure</name>
+  <description>Advanced classloading for clojure.</description>
+  <url>https://github.com/flatland/classlojure</url>
+  <licenses>
+    <license>
+      <name>Eclipse Public License - v 1.0</name>
+      <url>http://www.eclipse.org/legal/epl-v10.html</url>
+    </license>
+  </licenses>
+  <build>
+    <sourceDirectory>src</sourceDirectory>
+    <testSourceDirectory>test</testSourceDirectory>
+    <resources>
+      <resource>
+        <directory>resources</directory>
+      </resource>
+    </resources>
+    <testResources>
+      <testResource>
+        <directory>resources</directory>
+      </testResource>
+    </testResources>
+    <directory>target</directory>
+    <outputDirectory>target/classes</outputDirectory>
+    <plugins/>
+  </build>
+  <repositories>
+    <repository>
+      <id>central</id>
+      <url>https://repo1.maven.org/maven2/</url>
+      <snapshots>
+        <enabled>false</enabled>
+      </snapshots>
+      <releases>
+        <enabled>true</enabled>
+      </releases>
+    </repository>
+    <repository>
+      <id>clojars</id>
+      <url>https://clojars.org/repo/</url>
+      <snapshots>
+        <enabled>true</enabled>
+      </snapshots>
+      <releases>
+        <enabled>true</enabled>
+      </releases>
+    </repository>
+    <repository>
+      <id>sonatype-snapshots</id>
+      <url>http://oss.sonatype.org/content/repositories/snapshots</url>
+      <snapshots>
+        <enabled>true</enabled>
+      </snapshots>
+      <releases>
+        <enabled>true</enabled>
+      </releases>
+    </repository>
+  </repositories>
+  <dependencyManagement>
+    <dependencies/>
+  </dependencyManagement>
+  <dependencies>
+    <dependency>
+      <groupId>org.clojure</groupId>
+      <artifactId>clojure</artifactId>
+      <version>1.5.0</version>
+    </dependency>
+  </dependencies>
+</project>
+
+<!-- This file was autogenerated by Leiningen.
+  Please do not edit it directly; instead edit project.clj and regenerate it.
+  It should not be considered canonical data. For more information see
+  https://github.com/technomancy/leiningen -->
diff --git a/debian/rules b/debian/rules
index 1a7d0d8..b01ea07 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,7 +11,7 @@ export CLASSPATH=/usr/share/java/clojure.jar
 PRODUCED_JAR=classlojure.jar
 
 %:
-	dh $@ --with javahelper
+	dh $@ --with javahelper --with jh_maven_repo_helper
 
 override_jh_build:
 	jar cf $(PRODUCED_JAR) -C src .

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/libclasslojure-clojure.git



More information about the pkg-java-commits mailing list