Subproject's build/install different distribution


(ZOSROTHKO) #1

Hi

I am wondering why gradlew install is different than gradlew build. Any idea why the install task is not distributed to subprojects as the build task

Z:\git\EGC>gradlew build
Starting a Gradle Daemon (subsequent builds will be faster)
:EG1:compileEG1ExecutableEG1Cpp
Ignoring value 'C:\OpenSSL-Win32\include;C:\Program Files (x86)\PostgreSQL\9.5\include;C:\mysql-5.7.11-win32\include;' set for envir
onment variable 'INCLUDE'.
Ignoring value 'C:\OpenSSL-Win32\lib;C:\OpenSSL-Win32\lib\VC;C:\OpenSSL-Win32\lib\VC\static;C:\Program Files (x86)\PostgreSQL\9.5\li
b;C:\mysql-5.7.11-win32\lib;' set for environment variable 'LIB'.
:EG1:compileEG1ExecutableEG1Cpp UP-TO-DATE
:EG1:linkEG1Executable UP-TO-DATE
:EG1:EG1Executable UP-TO-DATE
:EG1:assemble UP-TO-DATE
:EG1:check UP-TO-DATE
:EG1:build UP-TO-DATE
:EG2:compileEG2ExecutableEG2Cpp UP-TO-DATE
:EG2:compileEG2ExecutableEG2Generated UP-TO-DATE
:EG2:linkEG2Executable UP-TO-DATE
:EG2:EG2Executable UP-TO-DATE
:EG2:assemble UP-TO-DATE
:EG2:check UP-TO-DATE
:EG2:build UP-TO-DATE
:EG3:compileEG3ExecutableEG3Cpp UP-TO-DATE
:EG3:compileEG3ExecutableEG3Generated UP-TO-DATE
:EG3:linkEG3Executable UP-TO-DATE
:EG3:EG3Executable UP-TO-DATE
:EG3:assemble UP-TO-DATE
:EG3:check UP-TO-DATE
:EG3:build UP-TO-DATE
:EG4:compileEG4ExecutableEG4Cpp UP-TO-DATE
:EG4:compileEG4ExecutableEG4Generated UP-TO-DATE
:EG4:linkEG4Executable UP-TO-DATE
:EG4:EG4Executable UP-TO-DATE
:EG4:assemble UP-TO-DATE
:EG4:check UP-TO-DATE
:EG4:build UP-TO-DATE

BUILD SUCCESSFUL

Total time: 33.764 secs
Z:\git\EGC>gradlew install

FAILURE: Build failed with an exception.

* What went wrong:
Task 'install' is ambiguous in root project 'EGC'. Candidates are: 'installEG1Executable', 'installEG2Executable', 'installEG3Execut
able', 'installEG4Executable'.

* Try:
Run gradlew tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.

BUILD FAILED

Total time: 3.043 secs