command line arguments - Gradle build: does someone tried alternative build script with alternative setting.gradle? -
i using gradle 1.4, , renamed build.gradle buildexpr.gradle , settings.gradle settingexpr.gradle, both files in project root, , using following command run gradle build.
'gradle c:\myproject>gradle -i -b buildexpr.gradle -c settingsexpr.gradle project'
it seems command line option '-c' not being honored , gradle not picking settingsexpr.gradle file, hence not able display modules defined in settings.gradle file while executing project task.
i getting following log -------------------------------------log---------------------------------------------------- c:\asm\asm_workspace\asm71\autolab>gradle -i -c settingsexpr.gradle -b buildexpr.gradle project starting build settings evaluated using empty settings script. projects loaded. root project using build file 'c:\asm\asm_workspace\asm71\autolab\buildexpr.gradle'. included projects: [root project 'autolab'] evaluating root project 'autolab' using build file 'c:\asm\asm_workspace\asm71\autolab\buildexpr.gradle'. projects evaluated. selected primary task 'projects' tasks executed: [task ':projects'] :projects
root project
root project 'autolab' no sub-projects
it strange behavior gradle command line shows. if change buildexpr.gradle build.gradle , settingsexpr.gradle settings.gradle, executes , shows sub-modules in log
-b
, -c
can't used together. when using settings file, else (e.g. locations of build files) determined settings file.
Comments
Post a Comment