Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade GraphHopper to newest version #1

Open
wants to merge 1,113 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1113 commits
Select commit Hold shift + click to select a range
e5cc510
Properly use encoded value in turn cost storage, removes update limit…
easbar Aug 25, 2023
fcabf8a
Remove no-longer failing tests, #1574
easbar Aug 28, 2023
f06a00d
Remove unclear test, #1582
easbar Aug 28, 2023
3a7c564
Github packages cleanup try
rokcarl Aug 28, 2023
2ee7e88
Change last 30 to last 300 packages
rokcarl Aug 29, 2023
b44267f
Merge pull request #2871 from graphhopper/github-packages-cleanup-v2
rokcarl Aug 29, 2023
e685c4f
Stop using DefaultTurnCostProvider and some access flags for low-leve…
easbar Aug 29, 2023
890ba82
Remove edgeHasNoAccess from Weighting interface (#2872)
easbar Aug 29, 2023
e439a45
encoded value name a bit stricter
karussell Aug 31, 2023
c92ab78
Remove shortest weighting from DefaultWeightingFactory class (#2865)
karussell Aug 31, 2023
f62d419
minor docs improvement
karussell Sep 4, 2023
8ccf586
Use a different action (#2876)
rokcarl Sep 7, 2023
4d8f1e8
Fix error logging for RouteResource (#2837)
karussell Sep 7, 2023
fe2ce71
Remove fastest weighting from DefaultWeightingFactory class (#2866)
karussell Sep 7, 2023
0d7cc4e
Resolve custom model files and areas in core, close #2874
easbar Sep 11, 2023
dc127a7
Remove more access flags from tests
easbar Sep 12, 2023
80cbfa7
No more access for buildRandomGraph
easbar Sep 12, 2023
50b3c93
Revert "firefox sends that it needs this header" due to https://githu…
karussell Sep 13, 2023
44835f3
Remove max_turn_costs encoder parameter (#2880)
easbar Sep 13, 2023
51acef0
isochrone: fix wrong termination condition
michaz Sep 12, 2023
622fe6b
Fix deprecated usage of Maven Antrun plugin
easbar Sep 18, 2023
841cb9e
Remove turn cost storage optimization for edge-based CH
easbar Sep 18, 2023
b4750c1
Use int instead of byte storage for turn costs
easbar Sep 18, 2023
30aa296
Add external boolean EV
easbar Sep 18, 2023
c437847
Add getter for encoded values string
easbar Sep 18, 2023
90fda0a
include osm date in response, replaces #2818 (#2877)
karussell Sep 25, 2023
97125c2
Use boolean turn restriction enc instead of decimal turn cost enc (#2…
easbar Sep 25, 2023
fae1ea5
LM: minor cleanup
karussell Sep 26, 2023
5eaf885
Separate turn cost and edge EncodedValues (#2884)
karussell Sep 26, 2023
e53d88b
update GH maps
karussell Sep 26, 2023
479caac
i18n: added uz
karussell Oct 4, 2023
18e4976
i18n: updated fa, he, hu_HU, sk
karussell Oct 4, 2023
13b3a61
i18n: updated translation keys
karussell Oct 4, 2023
1e224ae
8.0 release - change readme
karussell Oct 17, 2023
c4fcb40
9.0-SNAPSHOT
karussell Oct 17, 2023
aa2ffd4
changelog: set release date
karussell Oct 17, 2023
c721fa3
move to JDK17 (#2827)
karussell Oct 18, 2023
2fc9f19
appveyor should use jdk17 too, #2827
karussell Oct 18, 2023
d2b8596
Remove hidden evs (#2891)
easbar Oct 19, 2023
4be9ffc
Allow querying for arbitrary geometry in location index (#2890)
easbar Oct 19, 2023
ac29196
update legal-default-speeds lib to version 1.4
karussell Oct 22, 2023
7e0d17a
try jdk 21 and 22-ea; update ubuntu 22
karussell Oct 22, 2023
a5ac0e4
dont throw up when 0 timesteps
michaz Oct 26, 2023
49c456d
Fix indentation (#2896)
otbutz Oct 26, 2023
aa00539
Unsychronized MMapDataAccess (#2889)
karussell Nov 1, 2023
c8e03ab
Custom max_speed_calculator (#2903)
karussell Nov 3, 2023
2b606d2
removed wheelchair vehicle (#2900)
karussell Nov 5, 2023
ec2b1ab
remove deprecated PMap.put
karussell Nov 5, 2023
714bcee
profile.hints should be duplicated in GraphHopperConfig ctor
karussell Nov 5, 2023
b53d8e7
Add encoded value for mountainbike route relation handling (#2904)
ratrun Nov 8, 2023
265e8b5
custom model: lower max value for value expression; consistent with '…
karussell Nov 9, 2023
dd485c8
Pass original edge ids from virtual edges to encoded values
easbar Nov 14, 2023
f5ff6e7
build failed
easbar Nov 14, 2023
1ece31d
Avoid deprecated constructor (#2892)
otbutz Nov 16, 2023
ce45a0b
fix bug, reported by @NicholasRasi, #2908
karussell Nov 20, 2023
3f741a7
minor test fix
karussell Nov 20, 2023
0748dcc
matrix with status code in response
karussell Nov 22, 2023
09c1013
fix another problem with config duplication
karussell Nov 24, 2023
63f7114
Calculate min weight only when necessary (#2909)
karussell Dec 1, 2023
e019cf7
workaround for #2914
karussell Dec 12, 2023
71d2de0
never modify the server-side CustomModel
karussell Dec 21, 2023
8b9ded1
new translation file
karussell Dec 30, 2023
5794d88
i18n: some more keys
karussell Dec 30, 2023
fc21f01
Update comment
easbar Jan 3, 2024
6c5c5e6
i18n: fix link
karussell Jan 3, 2024
cbef7cb
Simplify import hooks (#2917)
karussell Jan 3, 2024
43079c4
remove graph sorting (#2919)
karussell Jan 4, 2024
e7dacb8
remove state.country as unused and always null
karussell Jan 6, 2024
ea16b73
fix state bug
karussell Jan 6, 2024
d4e9ef3
Ignore via-way restrictions that share the same via-way in the same d…
easbar Jan 8, 2024
f358f21
No longer allow built-in custom model file names (#2922)
easbar Jan 9, 2024
cda612d
accept external EncodedValues in custom model (#2923)
karussell Jan 10, 2024
531c8c1
upgrade to dropwizard 2.1.11 (#2926)
karussell Jan 11, 2024
a12ee81
Create leg_time/distance entries for duplicate via-points (#2924)
easbar Jan 11, 2024
ddb0471
Crossing create
easbar Jan 18, 2024
1046bae
Remove the name property from vehicle parsers (#2931)
easbar Jan 19, 2024
c4c07cc
replaced BitUtil.toUnsignedLong with Integer.toUnsignedLong
karussell Jan 22, 2024
b92bc8f
Let profiles determine turn_cost flag of vehicles
easbar Jan 30, 2024
d18ccf5
alternative_route: pass PathExtractorSupplier to sub-routers
michaz Feb 2, 2024
2d2b568
bus access (#2913)
karussell Feb 8, 2024
8f2916d
added 'hov' encoded value
karussell Feb 8, 2024
94638fa
Revert "added 'hov' encoded value"
karussell Feb 8, 2024
96d7217
Automatically add encoded values and tag parsers used in custom model…
easbar Feb 8, 2024
fa9cb01
import unit sorter test
easbar Feb 8, 2024
da7d080
introduce hov_access (#2939)
karussell Feb 8, 2024
b76f823
EV sort index
easbar Feb 10, 2024
8996c25
fix
easbar Feb 10, 2024
b4f8590
update apache compress
karussell Feb 21, 2024
99e9ba3
Fix #2915 when first point is duplicated
easbar Feb 22, 2024
7b75ad6
getValue: fix bug when using reverse direction
karussell Feb 23, 2024
47f0178
trigger build
karussell Feb 26, 2024
85f5b4b
Rename: Profile.isTurnCosts -> Profile.hasTurnCosts
easbar Mar 5, 2024
74ba675
Make conditional access restrictions configurable (#2863)
karussell Mar 6, 2024
0b14c61
minor fix for #2863
karussell Mar 7, 2024
4948c48
graph.dataaccess.default_type: empty string should default to RAM_STO…
karussell Mar 7, 2024
6905ff4
Update GH Maps version after a long time
easbar Mar 8, 2024
a0758b7
ModeAccessParser: consider ignoring oneway restriction
karussell Mar 12, 2024
d15babd
ModeAccessParser: consider order
karussell Mar 12, 2024
b5a27c1
mapmatching: change default gpc_accuracy; this should be better for l…
michaz Mar 12, 2024
93cf366
ModeAccessParser: remove private by default and make restriction valu…
karussell Mar 13, 2024
f70116c
i18n: updated
karussell Mar 13, 2024
e765323
Better instructions for motorway junctions (#2947)
karussell Mar 13, 2024
4a5dbeb
encoded polyline algorithm: closer to Google spec
karussell Mar 16, 2024
d87656f
mapmatching: request body must not be null
michaz Mar 17, 2024
d699ead
remove unnecessary netbeans config
karussell Mar 18, 2024
c96ef1d
bike_elevation fix for big slopes
karussell Mar 18, 2024
03ece58
enable network parsers even if there is no vehicle
easbar Mar 19, 2024
c9aff13
Use turn restriction EV per profile, not per vehicle
easbar Mar 19, 2024
4567ac3
Update maps (avoid issues introduced with OL9)
easbar Mar 19, 2024
8a98f93
Calculate weight checksums during import
easbar Mar 20, 2024
10fc68c
Write properties to a proper text file
easbar Mar 20, 2024
bee3fc8
minor
easbar Mar 20, 2024
4998718
Move vehicle encoded values into custom model (#2938)
karussell Mar 20, 2024
5dad94f
minor typo
easbar Mar 20, 2024
4ce223b
Make GraphHopper#encodingManager protected
easbar Mar 21, 2024
e7f1189
add warning to migration guide
karussell Mar 21, 2024
6d75510
ignore instructions if directions of a road are switching between exp…
karussell Mar 21, 2024
c64febe
fix test for #2953
karussell Mar 21, 2024
13a71e8
proper warn message if turn_costs.vehicle_types is empty from incorre…
karussell Mar 23, 2024
8c6e3df
bike: paving_stones are better than compacted but not fine_gravel; ot…
karussell Mar 24, 2024
340e845
fix Arrival Polyline (#2958)
OlafFlebbeBosch Mar 25, 2024
d13f9e1
show file name, fixes #2933
karussell Mar 25, 2024
710b821
move copyrights to config
michaz Apr 1, 2024
a40845c
i18n: updated zn_CH and zn_HK, @gg1229505432, #2962
karussell Apr 2, 2024
413ec9c
do not allow via_ferrata, closes #1326
karussell Apr 2, 2024
2a1468b
fix pt example config
karussell Apr 4, 2024
322be2a
polyline multiplier (#2951)
karussell Apr 4, 2024
0f1df14
Difference between bad highways for foot (#2956)
karussell Apr 4, 2024
4597fff
move hike_rating into custom model to make accessibility for hike mor…
karussell Apr 8, 2024
ae41168
Improve conditional access handling (#2965)
karussell Apr 9, 2024
3f309f7
bug fix
karussell Apr 9, 2024
e335932
make custom model of foot more similar to hike
karussell Apr 9, 2024
3f9b3bd
include foot.json custom model in tests
karussell Apr 9, 2024
e849f94
API client: header information
karussell Apr 11, 2024
6f56fc3
fix bike conditional, #2863
karussell Apr 11, 2024
efce482
Add missing setup call of finish time in DijkstraOneToMany (#2968)
otbutz Apr 15, 2024
eef5775
Disable automatic addition of encoded values (#2966)
karussell Apr 15, 2024
3199b52
max_slope should be able to get negative, fixes #2937
jessLryan Apr 15, 2024
115bab2
ups
karussell Apr 15, 2024
60405c4
Add support tag combinations cycleway:left and cycleway:right, fixes …
ratrun Apr 15, 2024
474251f
fix measurement, #2966
karussell Apr 15, 2024
f7ef630
Restrict access to "destination" for living streets in Hungary (by la…
Yogurt4 Apr 15, 2024
328e3d2
benchmark: another fix
karussell Apr 15, 2024
2d431f5
update GH maps
karussell Apr 16, 2024
1165861
test against jdk 22 and 23-ea
karussell Apr 16, 2024
5eb8563
Use Leipzig map as default value in benchmark.sh
easbar Apr 18, 2024
251684e
fix example configs
karussell Apr 17, 2024
df92c15
alternative route: bug fix for when using turn costs
karussell Apr 18, 2024
4c21dd6
fix: support Barrier Nodes for NavigateResponse (#2975)
OlafFlebbeBosch Apr 18, 2024
307db95
higher default precision for way geometry (#2950)
karussell Apr 18, 2024
600781f
update GH maps
karussell Apr 18, 2024
1c2f22e
Use eight bytes for the geo ref (#2978)
karussell Apr 20, 2024
959ccbe
release 9.0, update of links
karussell Apr 22, 2024
f7886b3
use 10.0-SNAPSHOT
karussell Apr 23, 2024
ff8f2b2
changelog: set release date
karussell Apr 23, 2024
2fab873
Parse maxweightrating (#2991)
otbutz Apr 26, 2024
5740852
reuse EdgeIntAccess and do not create per EdgeIteratorState call
karussell Apr 25, 2024
ad4e798
avoid uninitialized EncodedValue
karussell Apr 27, 2024
a8bb901
use Map instead of List for KVStorage API (#2994)
karussell Apr 30, 2024
c10aa18
Use 9 bits to store max_weight (#2989)
otbutz Apr 30, 2024
ee68d2b
Use byte-based storage for edges (#2993)
karussell May 1, 2024
98f108a
Update README.md
karussell May 2, 2024
431b897
Update README.md
karussell May 2, 2024
ef73fd7
a bit stricter
karussell May 2, 2024
7337411
fix for #2993
karussell May 2, 2024
81d7fc4
Support negative georefs (#2998)
karussell May 4, 2024
c5296ca
instruction bug fix (#3000)
karussell May 4, 2024
42e0c6a
Remove georef factor 4 now that there are 5 bytes for georef (#2999)
easbar May 5, 2024
7ddf6cc
Use geo ref to identify copied edges (#2985)
easbar May 5, 2024
1341ded
bug fix release 9.1
karussell May 5, 2024
f6c7fbd
Fix turn restriction handling at virtual via edges (#3001)
easbar May 5, 2024
0bcb2cf
Replace AtomicReference with a wrapper (#3003)
otbutz May 6, 2024
6eeeae1
use 3 bytes for elevation and pillar count (#3002)
karussell May 7, 2024
72196f7
AbstractBidirCHAlgo#getInEdgeWeight unsupported
easbar May 9, 2024
7c3204d
enable slow routing for 'very_custom' measurement
easbar May 10, 2024
34b333a
CustomModel.toString is used for caching and so it must differentiate…
karussell May 12, 2024
10b0b97
Minor speed up using MethodHandles in DataAccess (#3005)
karussell May 15, 2024
5518a7c
Fix constant path details like leg_distance for very short routes wit…
easbar May 16, 2024
4acd99e
Update snap.closestNode when an edge snap gets converted to a tower s…
easbar May 16, 2024
7c74a93
Round elevation and degrees before casting to int, fix barrier edge a…
easbar May 16, 2024
78c6743
Increase maximum number of base graph edges for edge-based CH (#3010)
easbar May 16, 2024
c888b64
fix test
easbar May 16, 2024
6603fbb
Do not store elevation if NaN (#3012)
karussell May 16, 2024
b25e4c6
Speed up turn cost calculation at virtual edges (#3013)
easbar May 21, 2024
d985f79
Update README.md
karussell May 28, 2024
cf2cfbe
case fix to get info.road_data_timestamp in JSON
karussell May 28, 2024
b9a5544
fix: tests fail suddenly
karussell May 30, 2024
d1e61ef
simplify bike models: the case for roundabout is already inaccessible
karussell May 30, 2024
35c2290
make a few custom models more prominent
karussell May 30, 2024
7d70e9f
utils: getCommonNode, getTurnCostsCount
easbar Jun 4, 2024
5eb09e7
Update GH maps
easbar Jun 5, 2024
835f2a2
add CONSTRUCTION to RoadClass enum (#3017)
caspg Jun 10, 2024
1fad178
Fix for #2982 (#3018)
ratrun Jun 11, 2024
82e0668
fix some links (#3020)
christophsturm Jun 14, 2024
43af296
Fix for #2980, block highway=cycleway with access=no (#2981)
ratrun Jun 14, 2024
73a0ea2
simple protection from certain vandalism, see e.g. ways 4674756, 6018…
karussell Jun 16, 2024
c00c089
Rename GraphRestriction -> RestrictionTopology, RestrictionConverter …
easbar Jun 17, 2024
d946022
support BlockStatement in custom model (#3004)
karussell Jun 17, 2024
db87593
use curbside_strictness instead force_curbside (#3024)
karussell Jun 18, 2024
b3c4607
ModeAccessParser improvements (#3026)
karussell Jun 21, 2024
1ce56e2
Fix toll rule for Switzerland (#3025)
easbar Jun 21, 2024
4731966
Remove tertiary highways from preferred and increase speed on footway…
caspg Jun 21, 2024
f280340
Slightly increase bicycle priority classification on "good" highway=t…
ratrun Jun 21, 2024
16b5afb
clean up bike speed parser (#3028)
karussell Jun 21, 2024
666dbca
Delete unused RomaniaSpatialRule
easbar Jun 25, 2024
98b3cb2
fix docs, fixes #3034
karussell Jul 3, 2024
72a91e4
Count turn cost entries
easbar Jul 4, 2024
6b1995c
minor correction
karussell Jul 5, 2024
0f8eff3
De-prioritize ways tagged with foot=use_sidepath (#3035)
ratrun Jul 6, 2024
45c0b62
Handle turn restrictions with multiple via ways and overlapping restr…
easbar Jul 9, 2024
ab14f37
Remove temporary EdgeIntAccess in TurnCostStorage
easbar Jul 10, 2024
f5f2b77
do not limit custom model size at this level
karussell Jul 14, 2024
0c08599
fix test
karussell Jul 18, 2024
46fe3ae
minor cleanup
karussell Jul 19, 2024
90acd49
Update README.md
karussell Jul 26, 2024
c54a883
Remove extra lm.disable check (#3040)
easbar Aug 14, 2024
da748e6
Set the default u-turn time to zero
easbar Aug 15, 2024
f474257
add encoded values to info about custom model usage, fixes #3041
karussell Aug 17, 2024
2182ff8
Assume Toll.HGV for all roads in CH/LI (#3043)
otbutz Aug 22, 2024
a506df8
Add `ave` synonym to name similarity filter (#3044)
samruston Aug 23, 2024
19aea02
Remove AbstractWeighting
easbar Aug 27, 2024
7eec7d2
Update api-doc.md
karussell Aug 27, 2024
b523200
minor
easbar Aug 27, 2024
02eb9a3
Use actual turn times at virtual edges
easbar Aug 27, 2024
20b15d0
Delay creation of PrepareContractionHierarchies
easbar Aug 28, 2024
954f507
Use surface speed at bridgleways for bicycle profiles (#3046)
ratrun Aug 29, 2024
eb1cbd9
TurnCostsConfig package change for #2957
karussell Aug 29, 2024
87cd0f3
again refactor
karussell Aug 29, 2024
aade9fa
consider tracktype speed for ways designated for bikes (#3047)
ratrun Aug 29, 2024
0a66c35
Improve warning message for turn restrictions
easbar Aug 30, 2024
d303f73
bug fix regarding date_range_parser_day parameter
karussell Sep 2, 2024
f19175c
update NOTICE and copyright year
karussell Sep 2, 2024
3610786
move custom_model.internal check a bit higher
karussell Sep 5, 2024
7f79bbd
configure turn cost calculation (#2957)
karussell Sep 9, 2024
737a597
Update dropwizard to 2.1.12
easbar Sep 17, 2024
05b2db5
Stop using javax.annotation.Nullable
easbar Sep 17, 2024
88f99c2
Upgrade to dropwizard 3.0.8 (#2920)
karussell Sep 20, 2024
ce78f53
Update api-doc.md
karussell Sep 21, 2024
4113169
Update api-doc.md
karussell Sep 21, 2024
fe879f8
i18n: update and added mn
karussell Sep 23, 2024
0356771
Close Response when status 200 is expected
easbar Sep 24, 2024
1b2b5be
Always close Response
easbar Sep 24, 2024
a9e0706
update GH maps
karussell Sep 25, 2024
597c185
more consistent turn_costs config naming, #2957
karussell Sep 25, 2024
c0ad6b0
Add experimental weighting
easbar Oct 2, 2024
97fd564
Allow decimal speeds to be parsed (#3059)
pantsleftinwash Oct 11, 2024
136309c
fix: Mapbox Arrival and Destinations assumptions (#3062)
OlafFlebbeBosch Oct 15, 2024
24df953
Add support for bike mtb:scale accessibility (#3048)
ratrun Oct 16, 2024
cc45cf0
fix to be able to import and run as server on different machines (#3071)
IldarKhayrutdinov Oct 21, 2024
49139dd
Isochrones: Reduce number of different sites for edge-based routing
easbar Oct 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
29 changes: 29 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
root = true

# https://github.com/graphhopper/graphhopper/blob/master/CONTRIBUTING.md#code-formatting

[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
max_line_length = 100
tab_width = 4

[*.java]
ij_continuation_indent_size = 8
ij_formatter_off_tag = @formatter:off
ij_formatter_on_tag = @formatter:on
ij_formatter_tags_enabled = true
ij_smart_tabs = false
ij_visual_guides = none
ij_wrap_on_typing = false

[*.json]
indent_size = 2
indent_style = space

[*.{yml,yaml}]
indent_size = 2
indent_style = space
32 changes: 17 additions & 15 deletions .github/workflows/push-packages.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,39 @@
name: Publish to GitHub Packages
name: Build and Test
on: push
jobs:
publish:
runs-on: ubuntu-18.04
build:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
java-version: [ 22, 23-ea ]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: 1.8
java-version: ${{ matrix.java-version }}
distribution: temurin
- name: Cache Maven artifacts
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Cache node
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: web-bundle/node
key: ${{ runner.os }}-node-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os}}-node-
- name: Cache node_modules
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: web-bundle/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/pom.xml', '**/package.json') }}
restore-keys: |
${{ runner.os}}-node_modules-
- name: Build and publish package
run: |
mvn -B versions:set -DnewVersion=$GITHUB_SHA -DgenerateBackupPoms=false
mvn -B -DskipTests -Pskip-shaded-web-jar -Pskip-tools-jar source:jar deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build ${{ matrix.java-version }}
run: mvn -B clean test

49 changes: 49 additions & 0 deletions .github/workflows/publish-github-packages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Publish to GitHub Packages

# ignore tags as the untagged commit has the same GITHUB_SHA and would conflict
on:
push:
branches:
- '**'

jobs:
publish:
if: github.repository_owner == 'graphhopper'
runs-on: ubuntu-22.04
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin
- name: Cache Maven artifacts
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Cache node
uses: actions/cache@v3
with:
path: web-bundle/node
key: ${{ runner.os }}-node-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os}}-node-
- name: Cache node_modules
uses: actions/cache@v3
with:
path: web-bundle/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/pom.xml', '**/package.json') }}
restore-keys: |
${{ runner.os}}-node_modules-
- name: Build and publish package ${{ matrix.java-version }}
# special 'wagon' option due to https://github.com/orgs/community/discussions/49001
run: |
mvn -B versions:set -DnewVersion=$GITHUB_SHA -DgenerateBackupPoms=false
mvn -Dmaven.resolver.transport=wagon -B -DskipTests -Pskip-shaded-web-jar -Pskip-tools-jar source:jar deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
58 changes: 58 additions & 0 deletions .github/workflows/publish-maven-central.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Publish to Maven Central

on:
push:
tags:
- '**'

jobs:
maven-central-publish:
if: github.repository_owner == 'graphhopper'
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
# feed directly as multi line value
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: GPG_PASSPHRASE

- name: Cache Maven artifacts
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Cache node
uses: actions/cache@v3
with:
path: web-bundle/node
key: ${{ runner.os }}-node-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os}}-node-
- name: Cache node_modules
uses: actions/cache@v3
with:
path: web-bundle/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/pom.xml', '**/package.json') }}
restore-keys: |
${{ runner.os}}-node_modules-
- name: clean install
run: |
mvn -Dkey=$API_KEY clean install -B

- name: Build and publish package to maven central ${{ matrix.java-version }}
run: |
echo "release to maven central"
mvn -B versions:set -DnewVersion=$GITHUB_REF_NAME -DgenerateBackupPoms=false
mvn deploy -P release -DskipTests=true -Dpgp.secretkey=keyring:id=0E2FBADB -B
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
50 changes: 48 additions & 2 deletions .github/workflows/remove-old-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,60 @@ on:
workflow_dispatch:
jobs:
remove-old-artifacts:
if: github.repository_owner == 'graphhopper'
name: Remove old artifacts
runs-on: ubuntu-latest
timeout-minutes: 10 # stop the task if it takes longer

steps:
- name: Remove old artifacts
uses: c-hive/gha-remove-artifacts@v1
uses: c-hive/gha-remove-artifacts@v1.3.0
with:
age: '11 months'
skip-tags: true
skip-recent: 10
skip-recent: 300

remove-old-artifacts-2:
if: github.repository_owner == 'graphhopper'
name: Remove old artifacts
runs-on: ubuntu-latest
timeout-minutes: 10 # stop the task if it takes longer

steps:
- name: Remove old artifacts 2.1
uses: actions/delete-package-versions@v4.1.1
with:
package-name: matrix
package-type: maven
min-versions-to-keep: 300

- name: Remove old artifacts 2.2
uses: actions/delete-package-versions@v4.1.1
with:
package-name: com.graphhopper.graphhopper-matrix
package-type: maven
min-versions-to-keep: 300

- name: Remove old artifacts 2.3
uses: actions/delete-package-versions@v4.1.1
with:
package-name: graphhopper-matrix
package-type: maven
min-versions-to-keep: 300

remove-old-artifacts-3:
if: github.repository_owner == 'graphhopper'
name: Remove old artifacts 3
runs-on: ubuntu-latest
timeout-minutes: 10 # stop the task if it takes longer

steps:
- name: Remove old artifacts 3.1
uses: SmartsquareGmbH/delete-old-packages@v0.7.0
with:
names: |
matrix
com.graphhopper.graphhopper-matrix
graphhopper-matrix
type: maven
keep: 300
14 changes: 14 additions & 0 deletions .github/workflows/trigger-benchmarks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Trigger Benchmarks
on: push
jobs:
trigger_measurement:
if: github.repository_owner == 'graphhopper'
runs-on: ubuntu-22.04
environment: benchmarks
steps:
- name: trigger
run: |
curl -X POST -H "Authorization: token ${{ secrets.BENCHMARKS_TOKEN }}" \
-H "Accept: application/vnd.github+json" \
"https://github.com/repos/${{ secrets.BENCHMARKS_REPO }}/dispatches" \
-d '{"event_type":"measurement_core","client_payload":{"core_commit": "'$GITHUB_SHA'", "core_branch": "${{ github.ref_name }}" }}'
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ android/.gradle
local/
local.properties
**/node_modules
*.zip
.DS_Store
/graph-cache
package-lock.json
36 changes: 0 additions & 36 deletions .gitlab-ci.yml

This file was deleted.

62 changes: 0 additions & 62 deletions .travis.yml

This file was deleted.

Loading