Skip to content

Fix plugin descriptor loading and change default port to 8080 #47

Fix plugin descriptor loading and change default port to 8080

Fix plugin descriptor loading and change default port to 8080 #47

Workflow file for this run

name: 'CI — Build Kotlin plugin on PR commits'
on:
pull_request:
types: [opened, synchronize, reopened]
paths:
- 'ide-plugins/**'
push:
branches: [ "main" ]
paths:
- 'ide-plugins/**'
jobs:
build-kotlin-plugin:
name: 'Build (Java 17)'
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: Cache Gradle
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
ide-plugins/.gradle
key: gradle-17-${{ hashFiles('ide-plugins/**/*.gradle*','ide-plugins/**/gradle-wrapper.properties') }}
restore-keys: |
gradle-17-
- name: Setup Gradle wrapper if missing
run: |
if [ ! -f gradlew ] || [ ! -f gradle/wrapper/gradle-wrapper.jar ]; then
echo "Setting up Gradle wrapper for Gradle 9.2.0..."
cd /tmp
curl -L -s -o gradle-9.2.0.zip https://services.gradle.org/distributions/gradle-9.2.0-bin.zip
unzip -q gradle-9.2.0.zip
cd $GITHUB_WORKSPACE/ide-plugins
/tmp/gradle-9.2.0/bin/gradle wrapper --gradle-version 9.2.0
chmod +x gradlew
echo "Wrapper installed"
fi
working-directory: ide-plugins
- name: Print Gradle info (for debugging)
run: ./gradlew --no-daemon --version
working-directory: ide-plugins
- name: Full build with stacktrace (capture to file)
env:
GRADLE_OPTS: "-Dorg.gradle.jvmargs=-Xmx3g"
run: |
set -o pipefail
./gradlew build --no-daemon --stacktrace 2>&1 | tee ../gradle-build.log || true
working-directory: ide-plugins
- name: Upload build log
uses: actions/upload-artifact@v4
with:
name: gradle-build-log-java-17
path: gradle-build.log
- name: Build Kotlin plugin subproject if present
run: |
set -o pipefail
if ./gradlew :kotlin:tasks --dry-run &>/dev/null; then
echo "Detected :kotlin subproject -> building it"
./gradlew :kotlin:build --no-daemon --stacktrace 2>&1 | tee ../kotlin-subproject-build.log || true
echo "Uploading kotlin-subproject-build.log"
ls -la ../kotlin-subproject-build.log || true
elif ./gradlew :plugin:kotlin:tasks --dry-run &>/dev/null; then
echo "Detected :plugin:kotlin subproject -> building it"
./gradlew :plugin:kotlin:build --no-daemon --stacktrace 2>&1 | tee ../kotlin-subproject-build.log || true
else
echo "No explicit kotlin plugin subproject found; running assemble on all projects"
./gradlew assemble --no-daemon --stacktrace 2>&1 | tee ../assemble.log || true
fi
working-directory: ide-plugins
- name: Upload kotlin-subproject/build logs if present
uses: actions/upload-artifact@v4
with:
name: kotlin-subproject-logs-java-17
path: |
kotlin-subproject-build.log
assemble.log
if: always()