On Jul 20, 2009, at 12:47 PM, Russel Winder wrote:
Gradle uses the terminlogy ( group , name , version ) to describe an
artifact. In a Gradle script group is a settable binding variable and
version is a settable binding variable. name however is not settable,
it is a read only binding variable. This seems somewhat inconsistent.
In particular, I wanted to use group, name and version to specify
these
attributes for my artifact:
type = 'jar'
group = 'org.devjavasoft'
// As as 2009-07-20 11:42:00+01:00 name is a read-only
property :-(
//name = 'ads'
version = '3.2.0-SNAPSHOT'
but the comment explains it all.
Is there a reason why name is read-only. Have I just missed the right
way of doing these things?
The project name is read only in the build.gradle file (you can change
it in the settings.gradle). This is because in multi-project files the
paths to the projects must be determined before the build scripts are
evaluated.
- Hans
--
Hans Dockter
Gradle Project Manager
http://www.gradle.org
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email