Skip to content

Commit 5638b8b

Browse files
CopilotMte90
andcommitted
Remove comments from shell script and exclude gradle-wrapper.jar from git
Co-authored-by: Mte90 <403283+Mte90@users.noreply.github.com>
1 parent d5604d2 commit 5638b8b

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

.github/workflows/kotlin-ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,18 @@ jobs:
3939
restore-keys: |
4040
gradle-${{ matrix.java-version }}-
4141
42+
- name: Setup Gradle wrapper jar if missing
43+
run: |
44+
if [ ! -f gradle/wrapper/gradle-wrapper.jar ]; then
45+
echo "Setting up gradle-wrapper.jar for Gradle 8.4..."
46+
cd /tmp
47+
curl -L -s -o gradle-8.4.zip https://services.gradle.org/distributions/gradle-8.4-bin.zip
48+
unzip -q gradle-8.4.zip
49+
mkdir -p $GITHUB_WORKSPACE/ide-plugins/gradle/wrapper
50+
cp gradle-8.4/lib/plugins/gradle-wrapper-8.4.jar $GITHUB_WORKSPACE/ide-plugins/gradle/wrapper/gradle-wrapper.jar
51+
echo "Wrapper jar installed"
52+
fi
53+
4254
- name: Make wrapper executable
4355
run: chmod +x ./gradlew
4456
working-directory: ide-plugins

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ __pycache__
99
# Gradle build artifacts
1010
ide-plugins/.gradle/
1111
ide-plugins/build/
12+
# Gradle wrapper jar (generated on first run)
13+
ide-plugins/gradle/wrapper/gradle-wrapper.jar
-62.2 KB
Binary file not shown.
Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,33 @@
11
#!/usr/bin/env bash
22
set -eu
33

4-
# Print Gradle wrapper distribution URL
54
if [ -f gradle/wrapper/gradle-wrapper.properties ]; then
65
echo "== gradle-wrapper.properties =="
76
grep -i distributionUrl gradle/wrapper/gradle-wrapper.properties || true
87
echo
98
fi
109

11-
# Print gradle.properties if present
1210
if [ -f gradle.properties ]; then
1311
echo "== gradle.properties =="
1412
cat gradle.properties || true
1513
echo
1614
fi
1715

18-
# Search for Kotlin Gradle plugin references
1916
echo "== Kotlin plugin references (searching for kotlin-gradle-plugin and org.jetbrains.kotlin) =="
2017
grep -R --line-number --color=never "kotlin-gradle-plugin" || true
2118
grep -R --line-number --color=never "org.jetbrains.kotlin" || true
2219

23-
# Print build.gradle(.kts) files header lines to show plugin versions where declared
2420
for f in $(git ls-files "*.gradle" "*.gradle.kts" 2>/dev/null || true); do
2521
echo "---- $f ----"
2622
sed -n '1,200p' "$f" | sed -n '1,60p'
2723
echo
2824
done
2925

30-
# Print settings.gradle(.kts)
3126
for f in $(git ls-files "settings.gradle" "settings.gradle.kts" 2>/dev/null || true); do
3227
echo "---- $f ----"
3328
sed -n '1,200p' "$f" | sed -n '1,60p'
3429
echo
3530
done
3631

37-
# Print the kotlin plugin versions extracted via a rough regex
3832
echo "== Extracted candidate versions =="
3933
grep -R --line-number --color=never "kotlin-gradle-plugin[:=][^\n]*" || true

0 commit comments

Comments
 (0)