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

Popular posts from this blog

php - How to pass multiple values from url -

php - Laravel not returning controller -

c# - Confused on how to specify a Platform and Version while using ChromeOptions for RemoteWebDriver with Selenium donNet since recent updates -