Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
539 views
in Technique[技术] by (71.8m points)

Spring Boot JPA with Hibernate Spatial and an Oracle DB using gradle I can't get the dependency included

I'm trying to use Hibernate-spatial with a spring boot application. I'm upgrading existing code that was using the 1.1.1 version of the hibernate-spatial library and hibernate-spatial-oracle library. It "works" but brings in an older version of hibernate (3.2.2) in addition to the 5.3.9 version that spring-boot is using. This causes some other conflicts with dependencies. I want to upgrade to user the matching hibernate-spatial-5.3.9 but when I add it as a dependency gradle doesn't put it on the classpath and building the springboot jar fails saying it can't find the jar. The jar exists in the gradle cache but it never shows up on the eclipse classpath.

Seems that using: implementation 'org.springframework.boot:spring-boot-starter-data-jpa' brings in a lot dependencies not sure if there's an easier way to include the spatial dependency or why there seems to be a silent failure when I just declare it.

question from:https://stackoverflow.com/questions/65894564/spring-boot-jpa-with-hibernate-spatial-and-an-oracle-db-using-gradle-i-cant-get

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...