diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
new file mode 100644
index 0000000..9eb957c
--- /dev/null
+++ b/.github/workflows/maven.yml
@@ -0,0 +1,27 @@
+name: Publish to Github Packages
+
+on:
+ push:
+ branches:
+ - master
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v1
+ - name: Set up JDK 1.8
+ uses: actions/setup-java@v1
+ with:
+ java-version: 1.8
+ - name: Build with Maven
+ run: mvn -B package --file pom.xml -pl '!brouter-routing-app'
+ - name: Deploy to Github Package Registry
+ env:
+ GITHUB_USERNAME: x-access-token
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ GITHUB_REPOSITORY: ${{ github.repository }}
+ run:
+ mvn --settings settings.xml deploy -pl '!brouter-routing-app'
diff --git a/pom.xml b/pom.xml
index fe2bfff..8e92396 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,158 +1,166 @@
- 4.0.0
- org.btools
- brouter
- 1.5.5
- pom
- http://brouter.de/brouter/
- brouter
- configurable OSM offline router with elevation awareness, Java + Android
+ 4.0.0
+ org.btools
+ brouter
+ 1.5.5
+ pom
+ http://brouter.de/brouter/
+ brouter
+ configurable OSM offline router with elevation awareness, Java + Android
-
- brouter-util
- brouter-codec
- brouter-expressions
- brouter-mapaccess
- brouter-core
- brouter-map-creator
- brouter-server
- brouter-routing-app
-
+
+ brouter-util
+ brouter-codec
+ brouter-expressions
+ brouter-mapaccess
+ brouter-core
+ brouter-map-creator
+ brouter-server
+ brouter-routing-app
+
-
-
- arndt.brenschede
- Arndt Brenschede
- Arndt.Brenschede@web.de
-
-
- norbert.truchsess
- Norbert Truchsess
- norbert.truchsess@t-online.de
-
-
+
+
+ arndt.brenschede
+ Arndt Brenschede
+ Arndt.Brenschede@web.de
+
+
+ norbert.truchsess
+ Norbert Truchsess
+ norbert.truchsess@t-online.de
+
+
-
- UTF-8
- UTF-8
- 1.6
-
+
+ UTF-8
+ UTF-8
+ 1.6
+
-
-
-
-
- com.jayway.maven.plugins.android.generation2
- android-maven-plugin
- 3.6.0
- true
-
- gen
- gen
- true
-
- 28
-
-
-
- -Xmn16m
- -Xms256m
- -Xmx512m
-
-
-
-
+
+
+
+
+ com.jayway.maven.plugins.android.generation2
+ android-maven-plugin
+ 3.6.0
+ true
+
+ gen
+ gen
+ true
+
+ 28
+
+
+
+ -Xmn16m
+ -Xms256m
+ -Xmx512m
+
+
+
+
-
- org.apache.maven.plugins
- maven-assembly-plugin
- 2.4
-
-
- jar-with-dependencies
-
-
-
+
+ org.apache.maven.plugins
+ maven-assembly-plugin
+ 2.4
+
+
+ jar-with-dependencies
+
+
+
-
- org.apache.maven.plugins
- maven-compiler-plugin
- 3.1
-
- ${targetJdk}
- ${targetJdk}
- -Xlint:unchecked
-
-
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+ 3.1
+
+ ${targetJdk}
+ ${targetJdk}
+ -Xlint:unchecked
+
+
-
- org.apache.maven.plugins
- maven-javadoc-plugin
- 2.9
-
- false
- brensche.de/brouter]]>
- true
- protected
- false
-
-
+
+ org.apache.maven.plugins
+ maven-javadoc-plugin
+ 2.9
+
+ false
+ brensche.de/brouter]]>
+ true
+ protected
+ false
+
+
-
- org.apache.maven.plugins
- maven-resources-plugin
- 2.6
-
+
+ org.apache.maven.plugins
+ maven-resources-plugin
+ 2.6
+
-
- org.apache.maven.plugins
- maven-source-plugin
- 2.2.1
-
-
-
+
+ org.apache.maven.plugins
+ maven-source-plugin
+ 2.2.1
+
+
+
-
-
- org.apache.maven.plugins
- maven-javadoc-plugin
-
-
- attach-javadoc
- package
-
- jar
-
-
-
-
+
+
+ org.apache.maven.plugins
+ maven-javadoc-plugin
+
+
+ attach-javadoc
+ package
+
+ jar
+
+
+
+
-
- org.apache.maven.plugins
- maven-source-plugin
-
-
- attach-sources
- package
-
- jar-no-fork
-
-
-
-
-
-
+
+ org.apache.maven.plugins
+ maven-source-plugin
+
+
+ attach-sources
+ package
+
+ jar-no-fork
+
+
+
+
+
+
-
-
-
- junit
- junit
- 4.12
- test
-
-
-
+
+
+
+ junit
+ junit
+ 4.12
+ test
+
+
+
+
+
+
+ github
+ GitHub brouter Apache Maven Packages
+ https://maven.pkg.github.com/${env.GITHUB_REPOSITORY}
+
+
diff --git a/settings.xml b/settings.xml
new file mode 100644
index 0000000..3ecb113
--- /dev/null
+++ b/settings.xml
@@ -0,0 +1,39 @@
+
+
+
+ github
+
+
+
+
+ github
+
+
+ central
+ https://repo1.maven.org/maven2
+
+ true
+
+
+ true
+
+
+
+ github
+ GitHub Cyface Apache Maven Packages
+ https://maven.pkg.github.com/${env.GITHUB_REPOSITORY}
+
+
+
+
+
+
+
+ github
+ ${env.GITHUB_USERNAME}
+ ${env.GITHUB_TOKEN}
+
+
+