Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detached configurations support #15

Open
jk1 opened this issue Jun 10, 2016 · 0 comments
Open

Detached configurations support #15

jk1 opened this issue Jun 10, 2016 · 0 comments
Labels

Comments

@jk1
Copy link
Owner

jk1 commented Jun 10, 2016

Consider the following dynamic pattern:

task unpackDeps << {
   def (notation, closure) = tc("${buildTypeID}:${buildNumber}:${artifact}")
   def dependency = dependencies.create(notation, closure)
   def configuration = configurations.detachedConfiguration(dependency)
   def zipFile = configuration.resolvedConfiguration.firstLevelModuleDependencies.first().getAllModuleArtifacts().first().getFile()
   unzip(zipFile.getAbsolutePath(), targetFolder, 1)
}

Build pinning, tagging and dynamic version resolution don't work, as all these actions are performed in project#afterEvaluate callback. The artifact itself still can be resolved though.

@jk1 jk1 added the bug label Jun 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant