Skip to content

Commit

Permalink
Add JTS core as a dependency (#20)
Browse files Browse the repository at this point in the history
Previously, this was added as a transitive dependency, which made
it susceptible to breaking whenever Presto would upgrade its JTS
library.  It's now included and shaded to make it resilient to Presto
upgrades.
  • Loading branch information
tdcmeehan committed Mar 28, 2024
1 parent 78a0387 commit cfb831d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@
<version>4.0.2</version>
</dependency>

<dependency>
<groupId>org.locationtech.jts</groupId>
<artifactId>jts-core</artifactId>
<version>1.17.0</version>
</dependency>

<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
Expand Down Expand Up @@ -182,6 +188,15 @@
<version>${maven-shade-plugin.version}</version>
<configuration>
<createDependencyReducedPom>false</createDependencyReducedPom>
<relocations>
<relocation>
<pattern>org.locationtech.jts</pattern>
<shadedPattern>com.foursquare.h3.shaded_relocated.org.locationtech.jts</shadedPattern>
<includes>
<include>org.locationtech.jts.**</include>
</includes>
</relocation>
</relocations>
</configuration>
<executions>
<execution>
Expand Down

0 comments on commit cfb831d

Please sign in to comment.