Add instructions for using Planetiler with gradle (#274)

pull/277/head
Brian Sperlongano 2022-06-19 17:32:35 -04:00 zatwierdzone przez GitHub
rodzic df6c803ad6
commit e2f7cc2bfa
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 33 dodań i 0 usunięć

Wyświetl plik

@ -190,6 +190,39 @@ download regularly-updated tilesets.
finished ([boundary layer example](https://github.com/onthegomap/planetiler/blob/9e9cf7c413027ffb3ab5c7436d11418935ae3f6a/planetiler-basemap/src/main/java/com/onthegomap/planetiler/basemap/layers/Boundary.java#L294))
- Planetiler only does full imports from `.osm.pbf` snapshots, there is no way to incorporate real-time updates.
## Use as a library
Planetiler can be used as a maven-style dependency in a Java project using the settings below:
### Maven
Add this dependency to your java project:
```xml
<dependency>
<groupId>com.onthegomap.planetiler</groupId>
<artifactId>planetiler-core</artifactId>
<version>0.5.0</version>
</dependency>
```
### Gradle
Set up your repositories block as follows:
```groovy
mavenCentral()
maven {
url "https://repo.osgeo.org/repository/release/"
}
```
Set up your dependencies block as follows:
```groovy
implementation 'com.onthegomap.planetiler:planetiler-core:<version>'
```
## Contributing
Pull requests are welcome! See [CONTRIBUTING.md](CONTRIBUTING.md) for details.