Conversation
Co-authored-by: Mte90 <403283+Mte90@users.noreply.github.com>
Co-authored-by: Mte90 <403283+Mte90@users.noreply.github.com>
Co-authored-by: Mte90 <403283+Mte90@users.noreply.github.com>
Co-authored-by: Mte90 <403283+Mte90@users.noreply.github.com>
Co-authored-by: Mte90 <403283+Mte90@users.noreply.github.com>
|
@copilot the action java 17 fails with Run chmod +x ./gradlew |
Co-authored-by: Mte90 <403283+Mte90@users.noreply.github.com>
Fixed! The |
|
@copilot Run actions/upload-artifact@v4 same ci |
Co-authored-by: Mte90 <403283+Mte90@users.noreply.github.com>
Fixed! The artifact names now include the Java version ( |
CI Workflow for Kotlin Plugin Build
This PR adds a comprehensive GitHub Actions workflow to build and test the Kotlin plugin on every PR commit, along with diagnostic tools to investigate the Gradle error (
org/gradle/api/internal/HasConvention) that appears in CI logs.Changes Made
✅ Created
.github/workflows/kotlin-ci.ymlworkflow that:ide-pluginsdirectory where gradlew is located✅ Created
ide-plugins/inspect_gradle_kotlin_versions.shdiagnostic script that:kotlin-gradle-pluginandorg.jetbrains.kotlinreferenceside-pluginsfolder for better organization✅ Fixed YAML syntax and security issues:
working-directory: ide-pluginsto all Gradle stepsGoals
This workflow helps capture the HasConvention failure details by:
Request to Maintainers
gradle-build-log-java-11/gradle-build-log-java-17- Full build output with stacktracesci-diagnostics-java-11/ci-diagnostics-java-17- Gradle and Kotlin version informationkotlin-subproject-logs-java-11/kotlin-subproject-logs-java-17- Subproject-specific build logsThese artifacts will help identify the root cause of the Gradle API compatibility issue and provide the diagnostic information needed to fix it.
Files Added
.github/workflows/kotlin-ci.ymlide-plugins/inspect_gradle_kotlin_versions.sh(moved fromscripts/ci/)Security Summary
✅ All CodeQL security checks passed with no vulnerabilities found.
Original prompt
Create a pull request that adds a GitHub Actions workflow to build the Kotlin plugin on every commit pushed to a PR and includes diagnostic steps to investigate the Gradle error shown in CI logs (org/gradle/api/internal/HasConvention). The PR should be created on a new branch named ci/add-kotlin-plugin-ci-and-diagnostics.
Objectives (high level):
Files to add (exact contents):
File: .github/workflows/kotlin-ci.yml
name: CI — Build Kotlin plugin on PR commits
on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches: [ "main" ]
jobs:
build-kotlin-plugin:
name: Build (matrix: Java ${{ matrix.java-version }})
runs-on: ubuntu-latest
strategy:
matrix:
java-version: [11, 17]
File: scripts/ci/inspect_gradle_kotlin_versions.sh
#!/usr/bin/env bash
set -eu
Print Gradle wrapper distribution URL
if [ -f gradle/wrapper/gradle-wrapper.properties ]; then
echo "== gradle-wrapper.properties =="
grep -i distributionUrl gradle/wrapper/gradle-wrapper.properties || true
echo
fi
Print gradle.properties if present
if [ -f gradle.properties ]; then
echo "== gradle.properties =="
cat gradle.properties || true
echo
fi
S...
This pull request was created as a result of the following prompt from Copilot chat.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.