I intend to generalize the use of gradle for my projects and would like to reuse the same build file everywhere. Unfortunately, I am at a loss to define the properties specified in $ subject in one file to facilitate transfer.
This is gradle 1.6.
What I tried failed on any attempts:
gradle.properties : it is impossible to change the name (read-only, you need to use settings.gradle and redefine the name of the root project!); {source,target}Compatibility not taken into account;settings.gradle : {source,target}Compatibility not taken into account!
So what is the right method to achieve this? What I have tried so far in gradle.properties :
group = something name = whatever
And in settings.gradle :
sourceCompatibility = "whatever";
EDIT Well, the problem of "name" simply cannot be solved; for the rest, I used a different file, which I use in the assembly file. "Name management" is really wrong: /
EDIT 2 Now it's 2014 and gradle 1.12, and the problem is still not resolved ...
java gradle
fge Jun 23 '13 at 16:31 2013-06-23 16:31
source share