You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently setting up a java project with the autoconfigure-gradle-plugin.
When building the application, the gradle task compileTestJava complains because it cannot find a class which is used in the test.
When I remove the autoconfigure-gradle-plugin, everything is working as expected
Error message
...\src\test\java\anytestpackage\DummyTest.java:4: error: package anypackage does not exist
import anypackage.DummyService;
^
Code
Test
in Folder server-app/src/test/java/anytestpackage
package anytestpackage;
import org.junit.jupiter.api.Test;
import anypackage.DummyService;
public class DummyTest {
@Test
void test(){
var x = DummyService.class;
}
}
Service
in Folder server-app/src/main/java/anypackage
package anypackage;
import org.springframework.stereotype.Service;
@Service
public class DummyService {
public void test(){
throw new RuntimeException("x");
}
}
Description
I'm currently setting up a java project with the autoconfigure-gradle-plugin.
When building the application, the gradle task
compileTestJava
complains because it cannot find a class which is used in the test.When I remove the autoconfigure-gradle-plugin, everything is working as expected
Error message
Code
Test
in Folder server-app/src/test/java/anytestpackage
Service
in Folder server-app/src/main/java/anypackage
build.gradle.kts
Environment
The text was updated successfully, but these errors were encountered: