Skip to content

Export maven dependencies from a gradle project to the file system

Notifications You must be signed in to change notification settings

newnewcoder/gradle-dependency-export

 
 

Repository files navigation

gradle-dependency-export Build Status Coverage Status

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
}

About

Export maven dependencies from a gradle project to the file system

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Groovy 83.2%
  • Java 16.8%