mmoayyed
(Misagh Moayyed)
January 1, 2016, 8:41am
5
The full build is here:
description = "Apereo Central Authentication Service $version"
defaultTasks "clean", "build"
ext {
publishSnapshots = Boolean.getBoolean("publishSnapshots")
publishReleases = Boolean.getBoolean("publishReleases")
sonatypeUsername = System.getProperty("sonatypeUsername")
sonatypePassword = System.getProperty("sonatypePassword")
forceBom = Boolean.getBoolean('forceBom')
enableRemoteDebugging = Boolean.getBoolean("enableRemoteDebugging")
continuousIntegrationBuild = Boolean.getBoolean("CI") || Boolean.getBoolean("TRAVIS") || Boolean.getBoolean("CONTINUOUS_INTEGRATION")
publishingRelease = publishReleases && rootProject.sonatypeUsername != null && rootProject.sonatypePassword != null
/*
Open the Git repository in the current directory.
Get commit id of HEAD.
*/
git = org.ajoberstar.grgit.Grgit.open(dir: file('.').canonicalPath)
def gitHead = git.head()
This file has been truncated. show original
What really confused me was that I was looking for an onlyIf predicate and there was none. I then realized uploadArchives has a dependsOn element in the build where the dependent-upon task attempts to enable/disable the uploadArchives. Removing that piece of code made it work.
The error message should definitely be clearer.