Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid hanging on projects with no resources #70

Merged
merged 1 commit into from
Aug 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Do not fall back to stdin file inputs in gradle plugin
jzbrooks committed Aug 21, 2024
commit c01642595344de97ac7ea2d0c260a86a8ca209c4
10 changes: 1 addition & 9 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -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

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/

Original file line number Diff line number Diff line change
@@ -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()))