Skip to content

Commit

Permalink
Do not fall back to stdin file inputs in gradle plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
jzbrooks committed Aug 21, 2024
1 parent 434f2fd commit 596dafc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
10 changes: 1 addition & 9 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,9 @@

## Unreleased

### Added

### Changed

### Deprecated

### Removed

### Fixed

### Security
- Gradle plugin hangs for projects with no vector drawables

## 2.2.0 - 2024-08-13

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
org.gradle.jvmargs=-XX:+UseParallelGC

GROUP=com.jzbrooks
VERSION_NAME=2.2.0
VERSION_NAME=2.2.1

POM_URL=https://github.com/jzbrooks/vgo/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,12 @@ open class ShrinkVectorArtwork : DefaultTask() {

@TaskAction
fun shrink() {
val argList = mutableListOf<String>()
val argList = files.toMutableList()

argList.addAll(files)
if (argList.isEmpty()) {
logger.info("No files to shrink")
return
}

if (indent != 0.toByte()) {
argList.addAll(arrayOf("--indent", indent.toString()))
Expand Down

0 comments on commit 596dafc

Please sign in to comment.