Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/check-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
cache: 'gradle'

- name: Build
run: ./gradlew build buildPlugin --info
run: ./gradlew build buildPlugin --info --stacktrace

- name: Try upload test reports when failure occurs
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -95,7 +95,7 @@ jobs:
cache: 'gradle'

- name: Run Checkstyle
run: ./gradlew checkstyleMain checkstyleTest -PcheckstyleEnabled
run: ./gradlew checkstyleMain checkstyleTest -PcheckstyleEnabled --stacktrace

pmd:
runs-on: ubuntu-latest
Expand All @@ -118,7 +118,7 @@ jobs:
cache: 'gradle'

- name: Run PMD
run: ./gradlew pmdMain pmdTest -PpmdEnabled
run: ./gradlew pmdMain pmdTest -PpmdEnabled --stacktrace

- name: Upload report
if: always()
Expand Down
54 changes: 54 additions & 0 deletions .github/workflows/check-ide-compatibility.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Check IDE Compatibility

on:
schedule:
- cron: '55 2 * * 1'
workflow_dispatch:

jobs:
check-ide-compatibility:
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- name: Free up disk space
run: |
sudo df -h
sudo docker system prune -af || true
sudo rm -rf /usr/share/dotnet \
/usr/local/.ghcup \
/usr/local/swift \
/usr/share/swift \
/usr/lib/jvm \
/usr/local/lib/android \
/usr/lib/google-cloud-sdk \
/usr/local/share/boost \
/usr/local/share/powershell \
/usr/local/share/chromium \
/usr/local/lib/node_modules \
/usr/lib/mono \
/usr/lib/heroku \
/usr/lib/firefox \
/usr/share/miniconda \
/opt/microsoft \
/opt/chrome \
/opt/pipx \
"$AGENT_TOOLSDIRECTORY" || true
sudo df -h

- uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 21

- name: Check compatibility
run: ./gradlew verifyPlugin --info --stacktrace

- name: Upload report
uses: actions/upload-artifact@v4
with:
name: plugin-verifier-reports
path: build/reports/pluginVerifier/**
if-no-files-found: warn
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
cache: 'gradle'

- name: Build
run: ./gradlew build buildPlugin --info
run: ./gradlew build buildPlugin --info --stacktrace

- name: Check for uncommited changes
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:

- name: Build
run: |
./gradlew build sonarqube -x test --info \
./gradlew build sonar -x test --info --stacktrace \
-Dsonar.projectKey=${{ env.SONARCLOUD_ORG }}_${{ github.event.repository.name }} \
-Dsonar.organization=${{ env.SONARCLOUD_ORG }} \
-Dsonar.host.url=${{ env.SONARCLOUD_HOST }}
Expand Down
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ dependencies {
checkstyle "com.puppycrawl.tools:checkstyle:${checkstyleVersion}"
pmd "net.sourceforge.pmd:pmd-ant:${pmdVersion}",
"net.sourceforge.pmd:pmd-java:${pmdVersion}"
testImplementation platform('org.junit:junit-bom:5.12.0'),
testImplementation platform('org.junit:junit-bom:5.12.1'),
'org.junit.jupiter:junit-jupiter',
'org.junit.jupiter:junit-jupiter-engine',
'org.assertj:assertj-core:3.27.3'
Expand Down Expand Up @@ -104,8 +104,8 @@ intellijPlatform {

checkstyle {
configDirectory = file("$rootProject.projectDir/.config/checkstyle")
ignoreFailures false
showViolations true
ignoreFailures = false
showViolations = true
toolVersion = checkstyleVersion
}

Expand Down
6 changes: 4 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,17 @@ pluginName=OpenRewriter X
pluginVersion=1.0.4-SNAPSHOT
# IntelliJ Platform Properties -> https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#configuration-intellij-extension
platformType=IC
platformVersion=2024.3
platformVersion=2024.3.5
platformSinceBuild=243
# Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html
# Example: platformBundledPlugins = com.intellij.java, com.jetbrains.php:203.4449.22
platformBundledPlugins=org.jetbrains.idea.maven,org.jetbrains.plugins.gradle
platformPlugins=
# Gradle Releases -> https://github.com/gradle/gradle/releases
gradleVersion=8.10.1
gradleVersion=8.13
# Enable Gradle Configuration Cache -> https://docs.gradle.org/current/userguide/configuration_cache.html
org.gradle.configuration-cache=true
# Enable Gradle Build Cache -> https://docs.gradle.org/current/userguide/build_cache.html
org.gradle.caching=true
# Increase default gradle heap size
org.gradle.jvmargs=-Xmx2g
Loading