-
Notifications
You must be signed in to change notification settings - Fork 41.4k
Closed
Labels
status: declinedA suggestion or change that we don't feel we should currently applyA suggestion or change that we don't feel we should currently apply
Description
I'm using Gradle 5.2 on Java 11.0.1 with a very simple project that adds a controller and an entity package to the base starter created with Spring 2.1.2. The code in src/main/java
is setup as a Java module. He is my module definition (I only have one at this time)
module rja.price.main {
requires java.sql;
requires spring.beans;
requires spring.core;
requires spring.context;
requires spring.web;
requires spring.webflux;
requires spring.boot;
requires spring.boot.autoconfigure;
requires reactor.core;
opens rja.price to spring.core, spring.beans, spring.context;
exports rja.price.application.controller;
exports rja.price.domain.entity to com.fasterxml.jackson.databind;
}
Running gradlew build
breaks at compileTestJava
with 100 errors of the form:
error: the unnamed module reads package org.json from both jsonassert and android.json
error: the unnamed module reads package org.hamcrest from both hamcrest.core and hamcrest.library
error: module spring.boot reads package org.json from both jsonassert and android.json
error: module spring.boot reads package org.hamcrest from both hamcrest.core and hamcrest.library
Replacing the org.springframework.boot:spring-boot-starter-test
dependencies with individual imports of the following works. Importing the failing code into Intellij IDEA and running the SpringBootApplication in the IDE also works.
A sample project to replicate the issue is at:
https://github.com/rajeshja/springboot2.1-java11-gradle-bug
alan-wint
Metadata
Metadata
Assignees
Labels
status: declinedA suggestion or change that we don't feel we should currently applyA suggestion or change that we don't feel we should currently apply