Skip to content

Commit

Permalink
1.6.2: Fix Docker env command.
Browse files Browse the repository at this point in the history
Fixes #15
  • Loading branch information
gdude2002 committed Feb 18, 2025
1 parent b1225bf commit 7d008e6
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
5 changes: 5 additions & 0 deletions changes/1.6.2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Gradle Plugins 1.6.2

This version fixes a bug in the Docker plugin.

- The `env` command function/builder now actually adds the variables to the Dockerfile; they were previously missing.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ class EnvCommand(val variables: Map<String, String>) : DockerfileCommand() {
override fun toString(): String = buildString {
append("$keyword ")

variables.toList().joinToString(" ") { (key, value) ->
"$key=\"${value.replace("\"", "\\\"")}\""
}
append(
variables.toList().joinToString(" ") { (key, value) ->
"$key=\"${value.replace("\"", "\\\"")}\""
}
)
}
}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ kotlin.incremental=true
org.gradle.jvmargs=-XX:MaxMetaspaceSize=1024m
org.gradle.parallel=true

projectVersion=1.6.1
projectVersion=1.6.2
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-all.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down

0 comments on commit 7d008e6

Please sign in to comment.