drughaa.blogg.se

Gradle not compiling java
Gradle not compiling java





gradle not compiling java gradle not compiling java

Here is my build file (took out all the dependencies for brevity): apply plugin: 'java'Ĭ = 'ISO-8859-1'Īll*.exclude group: 'org.springframework', module: 'spring-dao'Īll*.exclude group: 'org. I’m using the standard layout with absolutely nothing out of the ordinary (src/main/java and src/test/java). In case importing the project as gradle project, source counfiguration loaded as you can see on screenshot: two content roots are provided. If not, consider compileOnly or runtimeOnly. Rule two: use the implementation dependency configuration if you need the dependency to be on both the compile and runtime classpaths. I ran a gradle -q dependencies and it lists all the dependencies, but I’m baffled as to why it’s not compiling when it is working fine using the Eclipse plugin. Rule 1: you should always use implementation rather than compile for dependencies, as compile is now deprecated or removed in Gradle 7+. My Gradle project in Eclipse compiles fine with the Eclipse compile and Gradle plugin, however, when I run the gradle command-line, compilation is failing because it’s not finding classes that exist in the dependencies.







Gradle not compiling java