Gradle build created with 'gradle init --type pom' always says it is up-to-date


(Jordan Black) #1

I just converted a pom to a build.gradle with ‘gradle init --type pom’ using Gradle 1.11, and I can’t force it to actually build the project. Everytime I run ‘gradle clean build’, it says everything is UP-TO-DATE:

$ gradle clean build

:clean

:compileJava UP-TO-DATE

:processResources UP-TO-DATE

:classes UP-TO-DATE

:jar

:assemble

:compileTestJava UP-TO-DATE

:processTestResources UP-TO-DATE

:testClasses UP-TO-DATE

:test UP-TO-DATE

:check UP-TO-DATE

:build

BUILD SUCCESSFUL

Total time: 5.316 secs

It also never runs my tests if I run ‘gradle cleanTest test’. I’ve changed files, changed the build dependencies, etc, and can’t get anything to make it build with Gradle. I previously had built with Maven, so perhaps that has something to do with it? What can I do to make it actually build?


(Peter Niederwieser) #2

Looks like there might not be any source files, or they might not be in the right place.


(Jordan Black) #3

So, the issue was that ‘apply plugin: “groovy”’ wasn’t added. I added that, and it works fine now. Maybe it should be added to ‘gradle init’ to try to add the groovy plugin if necessary?