Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update to gradle action v4 #232

Merged
merged 6 commits into from
Nov 9, 2024
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
52 changes: 7 additions & 45 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,58 +25,20 @@ jobs:
distribution: 'corretto'
java-version: 21

- name: Setup Gradle and dependencies
uses: gradle/actions/setup-gradle@v3
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
gradle-version: wrapper
# with `true`, caches will only be created in `master` branch, and PRs will run read-only
cache-read-only: false
arguments: ":resolveDependencies -Pkotlin.incremental=false --no-daemon"
gradle-home-cache-cleanup: true
gradle-home-cache-excludes: |
caches/modules-2/files-2.1/com.jetbrains.intellij.pycharm
caches/modules-2/files-2.1/com.jetbrains.intellij.idea
caches/modules-2/files-2.1/com.jetbrains.intellij.clion

- name: Build
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: wrapper
arguments: "assemble testClasses -Pkotlin.incremental=false --no-daemon --stacktrace"
gradle-home-cache-cleanup: true
gradle-home-cache-excludes: |
caches/modules-2/files-2.1/com.jetbrains.intellij.pycharm
caches/modules-2/files-2.1/com.jetbrains.intellij.idea
caches/modules-2/files-2.1/com.jetbrains.intellij.clion
run: ./gradlew assemble --stacktrace -Pkotlin.incremental=false

- name: Tests
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: wrapper
arguments: ":test -Pkotlin.incremental=false --no-daemon --stacktrace"
gradle-home-cache-cleanup: true
gradle-home-cache-excludes: |
caches/modules-2/files-2.1/com.jetbrains.intellij.pycharm
caches/modules-2/files-2.1/com.jetbrains.intellij.idea
caches/modules-2/files-2.1/com.jetbrains.intellij.clion
run: ./gradlew test --stacktrace -Pkotlin.incremental=false

- name: Verify plugin.xml
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: wrapper
arguments: ":verifyPluginConfiguration -Pkotlin.incremental=false --no-daemon"
gradle-home-cache-cleanup: true
gradle-home-cache-excludes: |
caches/modules-2/files-2.1/com.jetbrains.intellij.pycharm
caches/modules-2/files-2.1/com.jetbrains.intellij.idea
caches/modules-2/files-2.1/com.jetbrains.intellij.clion
run: ./gradlew verifyPluginConfiguration

- name: Verify plugin
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: wrapper
arguments: ":verifyPlugin -Pkotlin.incremental=false --no-daemon"
gradle-home-cache-cleanup: true
gradle-home-cache-excludes: |
caches/modules-2/files-2.1/com.jetbrains.intellij.pycharm
caches/modules-2/files-2.1/com.jetbrains.intellij.idea
caches/modules-2/files-2.1/com.jetbrains.intellij.clion
run: ./gradlew verifyPlugin
2 changes: 1 addition & 1 deletion gradle-243-SNAPSHOT.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pluginUntilBuild = 243.*

# IntelliJ Platform Properties -> https://github.com/JetBrains/gradle-intellij-plugin#intellij-platform-properties
platformType = IC
platformVersion = 243.21155-EAP-CANDIDATE-SNAPSHOT
platformVersion = 243.21565-EAP-CANDIDATE-SNAPSHOT

# Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html
# Example: platformPlugins = com.intellij.java, com.jetbrains.php:203.4449.22
Expand Down