-
Notifications
You must be signed in to change notification settings - Fork 41.6k
Closed
Labels
status: invalidAn issue that we don't feel is validAn issue that we don't feel is valid
Description
We encountered an issue about two weeks ago while using SpringBoot 2.0.0 Snapshot.
Seems recent changes break multi project dependencies.
The line
compile project(':somemodule') seems to be validated for project existence but not for setting the classpath. Meaning, if I change somemodule to any text that does not relate to a mobule in my multi module project, it will complain. But nevertheless it does not find the classes that were successfully compiled on the exiting related module.
To make sure it is not related to our specific build I have taken
https://github.com/spring-guides/gs-multi-module
And converted it to use 2.0.0.BUILD-SNAPSHOT
I am getting the same errors:
:library:compileJava UP-TO-DATE
:library:processResources NO-SOURCE
:library:classes UP-TO-DATE
:library:jar SKIPPED
/Users/yuval/dev/gs-multi-module/complete/application/src/main/java/hello/app/DemoApplication.java:10: error: package hello.service does not exist
import hello.service.Service;
^
/Users/yuval/dev/gs-multi-module/complete/application/src/main/java/hello/app/DemoApplication.java:11: error: package hello.service does not exist
import hello.service.ServiceConfiguration;
^
/Users/yuval/dev/gs-multi-module/complete/application/src/main/java/hello/app/DemoApplication.java:18: error: cannot find symbol
private final Service service;
^
symbol: class Service
location: class DemoApplication
/Users/yuval/dev/gs-multi-module/complete/application/src/main/java/hello/app/DemoApplication.java:21: error: cannot find symbol
public DemoApplication(Service service) {
^
symbol: class Service
location: class DemoApplication
/Users/yuval/dev/gs-multi-module/complete/application/src/main/java/hello/app/DemoApplication.java:14: error: cannot find symbol
@Import(ServiceConfiguration.class)
^
symbol: class ServiceConfiguration
5 errors
:application:compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':application:compileJava'.
> Compilation failed; see the compiler error output for details.
Metadata
Metadata
Assignees
Labels
status: invalidAn issue that we don't feel is validAn issue that we don't feel is valid