Hi there,
I have a multiproject build.gradle as follows:
configure(javaProjects()) {
apply plugin: 'java'
apply plugin: 'maven'
[...]
group = 'my.group'
vendorName = 'ACME'
[...]
uploadArchives {
repositories.mavenDeployer {
repository(url: 'http://repository.url.here')
pom.project {
name projectName
description projectDescription
[...]
}
}
}
}
But that does not work since I get:
Cause: No such property: projectName for class:
org.gradle.api.internal.artifacts.publish.maven.pombuilder.CustomModelBuilder
All subprojects have a "projectName" property. How can I get access to
it?
I tried something like the following:
afterEvaluate { Project project ->
project.task('uploadArchives') << { [...] } }
But then I get the error, that the subproject has already a
'uploadArchives' task. I think, it's the one, which was added by the
Maven plugin automatically.
Best regards,
Lars
--
Semagia
<http://www.semagia.com>
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email