Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/viswaramamoorthy/gradle-util-plugins
Fix for windows gradle long classpath issue. Fixes JavaExec tasks that error out with message "CreateProcess error=206, The filename or extension is too long"
https://github.com/viswaramamoorthy/gradle-util-plugins
classpath gradle issue jar javaexec-task manifest manifestclasspath manifestclasspath-plugin plugin windows windows-gradle-long-classpath
Last synced: 4 months ago
JSON representation
Fix for windows gradle long classpath issue. Fixes JavaExec tasks that error out with message "CreateProcess error=206, The filename or extension is too long"
- Host: GitHub
- URL: https://github.com/viswaramamoorthy/gradle-util-plugins
- Owner: viswaramamoorthy
- License: mit
- Created: 2017-07-22T13:01:43.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-28T13:42:27.000Z (over 5 years ago)
- Last Synced: 2024-09-28T19:41:57.838Z (4 months ago)
- Topics: classpath, gradle, issue, jar, javaexec-task, manifest, manifestclasspath, manifestclasspath-plugin, plugin, windows, windows-gradle-long-classpath
- Language: Groovy
- Homepage:
- Size: 59.6 KB
- Stars: 90
- Watchers: 4
- Forks: 9
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gradle-util-plugins
When classpath for a Gradle JavaExec task is long, Windows command executions give error because of limitation to command line length greater than 32K.
With a number of classpath dependencies in a large project, typically JavaExec Gradle task fails with error "The filename or extension is too long" and this would be a stopping error. To solve this issue, use ManifestClasspath plugin.
ManifestClasspath plugin creates a manifest jar for jar files in the classpath of JavaExec task and sets the classpath with manifest jar.
### Usage
To use the plugin, define a dependency in build script and have plugin entry in Gradle project.
build.gradle snippet to use ManifestClasspath plugin
##### Build script snippet for plugins DSL for Gradle 2.1 and later
```
plugins {
id "com.github.ManifestClasspath" version "0.1.0-RELEASE"
}
```
##### Build script snippet for use in older Gradle versions or where dynamic configuration is required
```
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "gradle.plugin.com.github.viswaramamoorthy:gradle-util-plugins:0.1.0-RELEASE"
}
}apply plugin: "com.github.ManifestClasspath"
```### Build
./gradlew build