Skip to content

Commit c047308

Browse files
committed
Update Gradle build command in Kotlin starter and solution templates
- Changed the build command from 'gradle build' to 'gradle distTar' in multiple files to ensure the correct distribution packaging process is followed.
1 parent 0493443 commit c047308

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

compiled_starters/kotlin/.codecrafters/compile.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
set -e # Exit on failure
1010

11-
gradle build
11+
gradle distTar
1212
cd /tmp/codecrafters-build-redis-kotlin/distributions
1313
rm -rf app
1414
tar -xvf app.tar

compiled_starters/kotlin/your_program.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ set -e # Exit early if any commands fail
1414
# - Edit .codecrafters/compile.sh to change how your program compiles remotely
1515
(
1616
cd "$(dirname "$0")" # Ensure compile steps are run within the repository directory
17-
gradle build
17+
gradle distTar
1818
cd /tmp/codecrafters-build-redis-kotlin/distributions
1919
rm -rf app
2020
tar -xvf app.tar

solutions/kotlin/01-jm1/code/.codecrafters/compile.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
set -e # Exit on failure
1010

11-
gradle build
11+
gradle distTar
1212
cd /tmp/codecrafters-build-redis-kotlin/distributions
1313
rm -rf app
1414
tar -xvf app.tar

solutions/kotlin/01-jm1/code/your_program.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ set -e # Exit early if any commands fail
1414
# - Edit .codecrafters/compile.sh to change how your program compiles remotely
1515
(
1616
cd "$(dirname "$0")" # Ensure compile steps are run within the repository directory
17-
gradle build
17+
gradle distTar
1818
cd /tmp/codecrafters-build-redis-kotlin/distributions
1919
rm -rf app
2020
tar -xvf app.tar

starter_templates/kotlin/code/.codecrafters/compile.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
set -e # Exit on failure
1010

11-
gradle build
11+
gradle distTar
1212
cd /tmp/codecrafters-build-redis-kotlin/distributions
1313
rm -rf app
1414
tar -xvf app.tar

0 commit comments

Comments
 (0)