|
2 | 2 | set -eu |
3 | 3 |
|
4 | 4 | # Print Gradle wrapper distribution URL |
5 | | -if [ -f ide-plugins/gradle/wrapper/gradle-wrapper.properties ]; then |
| 5 | +if [ -f gradle/wrapper/gradle-wrapper.properties ]; then |
6 | 6 | echo "== gradle-wrapper.properties ==" |
7 | | - grep -i distributionUrl ide-plugins/gradle/wrapper/gradle-wrapper.properties || true |
| 7 | + grep -i distributionUrl gradle/wrapper/gradle-wrapper.properties || true |
8 | 8 | echo |
9 | 9 | fi |
10 | 10 |
|
11 | 11 | # Print gradle.properties if present |
12 | | -if [ -f ide-plugins/gradle.properties ]; then |
| 12 | +if [ -f gradle.properties ]; then |
13 | 13 | echo "== gradle.properties ==" |
14 | | - cat ide-plugins/gradle.properties || true |
| 14 | + cat gradle.properties || true |
15 | 15 | echo |
16 | 16 | fi |
17 | 17 |
|
18 | 18 | # Search for Kotlin Gradle plugin references |
19 | 19 | echo "== Kotlin plugin references (searching for kotlin-gradle-plugin and org.jetbrains.kotlin) ==" |
20 | | -grep -R --line-number --color=never "kotlin-gradle-plugin" ide-plugins/ || true |
21 | | -grep -R --line-number --color=never "org.jetbrains.kotlin" ide-plugins/ || true |
| 20 | +grep -R --line-number --color=never "kotlin-gradle-plugin" || true |
| 21 | +grep -R --line-number --color=never "org.jetbrains.kotlin" || true |
22 | 22 |
|
23 | 23 | # Print build.gradle(.kts) files header lines to show plugin versions where declared |
24 | | -for f in $(git ls-files "ide-plugins/*.gradle" "ide-plugins/*.gradle.kts" 2>/dev/null || true); do |
| 24 | +for f in $(git ls-files "*.gradle" "*.gradle.kts" 2>/dev/null || true); do |
25 | 25 | echo "---- $f ----" |
26 | 26 | sed -n '1,200p' "$f" | sed -n '1,60p' |
27 | 27 | echo |
28 | 28 | done |
29 | 29 |
|
30 | 30 | # Print settings.gradle(.kts) |
31 | | -for f in $(git ls-files "ide-plugins/settings.gradle" "ide-plugins/settings.gradle.kts" 2>/dev/null || true); do |
| 31 | +for f in $(git ls-files "settings.gradle" "settings.gradle.kts" 2>/dev/null || true); do |
32 | 32 | echo "---- $f ----" |
33 | 33 | sed -n '1,200p' "$f" | sed -n '1,60p' |
34 | 34 | echo |
35 | 35 | done |
36 | 36 |
|
37 | 37 | # Print the kotlin plugin versions extracted via a rough regex |
38 | 38 | echo "== Extracted candidate versions ==" |
39 | | -grep -R --line-number --color=never "kotlin-gradle-plugin[:=][^\n]*" ide-plugins/ || true |
| 39 | +grep -R --line-number --color=never "kotlin-gradle-plugin[:=][^\n]*" || true |
0 commit comments