java - gradle: Skipping task ':compileJava' as it has no source files -
java - gradle: Skipping task ':compileJava' as it has no source files -
i seek gradle -d compilejava
in my seek project, , gradle raise "skipping task ':compilejava' has no source files.". worse thing can't see created in build/. create project running gradle init
, creating "src/ex.java".
my question is:
how load default "compilejava" or define "compilejava" prepare warning.
by default, java source files need go src/main/java
(or src/test/java
test sources). either adapt directory construction accordingly, or reconfigure source directory follows:
sourcesets { main { java { srcdirs = ["src"] } } }
java build compiler-errors gradle
Comments
Post a Comment