> I have 'gradle' aliased to 'gw' ( aka: 'gdub" => > https://github.com/gdubw/gdub ) ... which i thought was a recomendation I > had seen from Dawid but i'm not finidng it now, so i honestly have no idea > where I leaned about it.
I think it might have been Mark Miller's; I'm on Windows and so don't use gdub. Sorry I raised a false alarm - didn't suspect an alias. :) > >> Using gradle at '/home/hossman/lucene/dev/gradlew' to run buildfile > >> '/home/hossman/lucene/dev/solr/solr-ref-guide/build.gradle': > > ...but is that "enough" ? or is there context/options that may not be I think this is enough. I don't know gdub but I suspect it just looks up the folders tree for the wrapper, that's it. > help') but nothing that really jumps out at me at screams "It's really > important to use './gradlew' not 'gradle' (or 'gw') and here's why: ..." > -- should there be? Maybe you're right and there should be some kind of "gradle-newbie" introduction. I don't think I'm the right person to write it though since things seem trivial to me that probably aren't in general... There are two problems with running system-wide gradle: - gradle versions may differ (and this is a bad thing, sadly); we enforce gradle version to be exactly the same as the wrapper's but if you're unlucky, your build may not even get to that place and fail miserably with some cryptic exceptions... - we did add a few utility modifications to gradlew scripts - these are helpful to keep things neat and tidy. > Lastly: Is there anyway to make our 'build.gradle' files "fail" if someone > does *NOT* use our './gradlew' (ie: maybe set a special property in > gradlew that our build.gradle file can look for and fail if unset? We already do -- in "check-environment.gradle". Like I said, it may happen that your system-wide gradle will simply fail before it has a chance to run that snippet. This is the problem. Dawid --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
