Why are no gradlew scripts generated by the wrapper task?


(stephen.friedrich) #1

I am quite new at gradle and now try to use the wrapper with gradle 1.4 like described in http://www.gradle.org/docs/current/userguide/gradle_wrapper.html

I added this to my build.gradle: task wrapper(type: Wrapper) {

gradleVersion = ‘1.4’ }

After executing “gradle wrapper” (on Windows 7) I have these new directories/files:

gradle

wrapper

gradle-wrapper.jar

gradle-wrapper.properties

Where are the scripts gradlew and gradlew.bat?


(Peter Niederwieser) #2

I assume you mean:

projectDir
    gradle
        wrapper
            gradle-wrapper.jar
             gradle-wrapper.properties

Here, ‘gradlew’ and ‘gradlew.bat’ should be located in ‘projectDir’, next to the ‘gradle’ directory.