Hi

I'd like to set the repository URL used by the mavenDeployer of the 
uploadArchives task at the time the DAG is ready and not when the 
uploadArchives task is configured. Does anyone have an idea how I can achieve 
this?

gradle.taskGraph.whenReady { taskGraph ->
    if (!taskGraph.hasTask(':release')) {
        version += '-SNAPSHOT'
        // --> calculate the deploymentRepoUrl here based on the tasks 
available in the DAG
    }
}

…

uploadArchives {
    repositories {
        mavenDeployer { 
            repository(url: deploymentRepoUrl) {
                authentication(...)
            }
       }
    }
}

Regards, Etienne


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to