We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
kotlin_version
1 parent 39d87bb commit 1901e94Copy full SHA for 1901e94
docker-image-build.sh
@@ -1,5 +1,7 @@
1
#!/bin/sh
2
3
-kotlin_version=$(awk '{ if ($1=="systemProp.kotlinVersion") { print $2; } }' FS='=' ./gradle.properties)
+kotlinVersion=$(awk '{ if ($1 == "kotlin") { gsub(/"/, "", $2); print $2; } }' FS=' = ' ./gradle/libs.versions.toml)
4
5
-docker build . --file Dockerfile --tag my-image-name:$(date +%s) --build-arg KOTLIN_VERSION=$kotlin_version
+echo "Kotlin Version for the docker: $kotlinVersion"
6
+
7
+docker build . --file Dockerfile --tag my-image-name:$(date +%s) --build-arg KOTLIN_VERSION=$kotlinVersion
0 commit comments