gradle-dependency-export
gradle-dependency-export copied to clipboard
Export maven dependencies from a gradle project to the file system
gradle-dependency-export

Export maven dependencies from a gradle project to the file system
Usage (plugin DSL)
plugins {
id "com.lazan.dependency-export" version "0.5"
}
Usage (legacy)
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "com.lazan:gradle-dependency-export:0.5"
}
}
apply plugin: "com.lazan.dependency-export"
mavenDependencyExport task
Properties
Name | Type | Default Value |
---|---|---|
configurations | Collection<Configuration> | buildscript.configurations + project.configurations |
exportDir | File | ${buildDir}/maven-dependency-export |
systemProperties | Map<String, Object> | System.getProperties() |
exportSources | boolean | false |
exportJavadoc | boolean | false |
Sample task customisation
plugins {
id "com.lazan.dependency-export" version "0.4"
}
configurations {
foo
}
dependencies {
foo 'x:y:1.0'
}
mavenDependencyExport {
systemProperties = ['java.version': '1.8']
configuration 'foo'
configuration buildscript.configurations.classpath
exportSources = true
}