Skip to content

Instantly share code, notes, and snippets.

@xconnecting
Created November 8, 2012 06:30
Show Gist options
  • Star 12 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xconnecting/4037220 to your computer and use it in GitHub Desktop.
Save xconnecting/4037220 to your computer and use it in GitHub Desktop.
Gradle: print buildscript dependencies
apply plugin: 'eclipse'
apply plugin: 'maven'
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'org.apache.commons:commons-email:1.2'
}
}
task printBuildScriptClasspath << {
println project.buildscript.configurations.classpath.asPath
}
@lhotari
Copy link

lhotari commented Mar 19, 2015

I found out this way by looking at your way to do it:

task buildScriptDependencies(type: org.gradle.api.tasks.diagnostics.DependencyReportTask) {
    configurations = project.buildscript.configurations
}

@phatblat
Copy link

This is now built into gradle and can be invoked using the buildEnvironment task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment