Skip to content

Commit

Permalink
Deploy to Maven Central
Browse files Browse the repository at this point in the history
  • Loading branch information
simon04 committed Oct 19, 2020
1 parent 78381f3 commit 7a05c39
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ include/osmpbf/*.pb.h
src/*.pb.h
src/*.pb.o
src/libosmpbf.a
target
*.swp
obj-x86_64-linux-gnu
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,20 @@ For more information see https://wiki.openstreetmap.org/wiki/PBF_Format .

## Java Version

To build the osmpbf.jar file run:
We publish the Java library to [Maven Central](https://search.maven.org/):

```xml
<dependency>
<groupId>org.openstreetmap.pbf</groupId>
<artifactId>osmpbf</artifactId>
<version>1.4.0</version>
</dependency>
```

To build the Java library run:

```sh
ant
mvn package
```

For a Java usage example, see src.java/crosby/binary/test/ReadFileExample.java
Expand Down
71 changes: 67 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
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>crosby.binary</groupId>
<groupId>org.openstreetmap.pbf</groupId>
<artifactId>osmpbf</artifactId>
<packaging>jar</packaging>
<version>1.4.0</version>
<name>OSM-Binary</name>
<description>Library for the OpenStreetMap PBF format</description>
<url>https://github.com/scrosby/OSM-binary</url>
<url>https://github.com/openstreetmap/OSM-binary</url>
<licenses>
<license>
<name>GNU General Lesser Public License (LGPL) version 3.0</name>
Expand All @@ -18,9 +18,16 @@
</license>
</licenses>
<scm>
<url>https://github.com/scrosby/OSM-binary</url>
<connection>https://github.com/scrosby/OSM-binary.git</connection>
<url>https://github.com/openstreetmap/OSM-binary</url>
<connection>https://github.com/openstreetmap/OSM-binary.git</connection>
</scm>
<developers>
<developer>
<id>osm-dev</id>
<name>OpenStreetMap developers</name>
<email>dev@openstreetmap.org</email>
</developer>
</developers>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down Expand Up @@ -67,6 +74,50 @@
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.2.0</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<failOnError>false</failOnError>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand All @@ -91,4 +142,16 @@
<version>3.13.0</version>
</dependency>
</dependencies>

<distributionManagement>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
</repository>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>

</project>

0 comments on commit 7a05c39

Please sign in to comment.