Skip to content
This repository was archived by the owner on Mar 9, 2026. It is now read-only.

Latest commit

 

History

History
32 lines (23 loc) · 1.19 KB

File metadata and controls

32 lines (23 loc) · 1.19 KB

Railroad Download Sources Gradle Plugin

Downloads sources and Javadoc for all resolvable dependency configurations, similar to IntelliJ's "Download Sources" action. Both sources and Javadoc downloads can be toggled.

Usage

Apply the plugin in your build:

plugins {
    id 'dev.railroadide.download-sources' version '0.1.0'
}

Configure what to download (defaults: both enabled):

railroadDownload {
    downloadSources = true
    downloadJavadoc = false
    configurations = ['compileClasspath', 'runtimeClasspath', 'testCompileClasspath']
    logResolvedFiles = true
}

Available tasks:

  • downloadDependencySources – downloads *-sources artifacts (skipped if disabled).
  • downloadDependencyJavadoc – downloads *-javadoc artifacts (skipped if disabled).
  • downloadDependencyDocumentation – downloads both (skipped if both disabled).

By default the tasks scan common classpaths (compileClasspath, runtimeClasspath, testCompileClasspath) and resolve sources/Javadoc for external modules only. Adjust configurations to narrow or expand the search, and set logResolvedFiles = false to reduce INFO noise in large builds (successful resolutions then log at DEBUG).