Thanks a lot! I think the workaround will not help in my situation.
I wanted to put the parts of the artifactory related configuration into the init script to avoid having access/credentials related information in the build script (submitted to SVN). I.e. I want to have this line
username = “${artifactory_publish_username}”
in the init script, not in the build.gradle. This is only possible if I apply the plugin in init.gradle.
The reason is that this script should be executed on a CI server (teamcity) that has its own credentials. It does not know the variables (like artifactory_publish_username) defined to execute the script locally. Therefore it fails.
Luke, now that gradle 1.6 is out I tried out the old configuration assuming that this should work by now. However, having an empty build.gradle file and having the following init.gradle file I am getting an error: