Unable to publish to local maven repo when using Gradle and Spring Boot

前端 未结 4 1036
忘了有多久
忘了有多久 2021-01-02 08:09

I have a very simple spring-boot (1.0.2) example (based on http://spring.io/guides/gs/rest-service/) using Gradle (1.12) to create a jar file.

I\'m trying to build

4条回答
  •  生来不讨喜
    2021-01-02 08:31

    When the Spring Boot Gradle Plugin without dependency versions in the dependency{...} section, the pom is generated without version for Spring Boot etc.

    So at the moment it's required to create the relation to the parent pom by yourself for all maven realted tasks parent { groupId 'org.springframework.boot' artifactId 'spring-boot-starter-parent' version "${project.bootVersion}" }

    See https://github.com/spring-projects/spring-boot/issues/1716

提交回复
热议问题