Skip to content

Commit d97c73b

Browse files
committed
fix(pipeline): Disable configuration cache for build and verification steps
1 parent dbccea2 commit d97c73b

3 files changed

Lines changed: 24 additions & 18 deletions

File tree

.github/actions/build/action.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,24 @@ runs:
1010
java-version: ${{ inputs.java_version }}
1111
cache: 'gradle'
1212

13+
- name: Debug Environment
14+
shell: bash
15+
run: |
16+
echo "Checking gradle.properties existence:"
17+
ls -la gradle.properties
18+
echo "Checking content of gradle.properties (sanitized):"
19+
grep -v "Token" gradle.properties
20+
1321
- name: Setup Gradle
1422
uses: gradle/actions/setup-gradle@v4
23+
with:
24+
cache-disabled: true
1525

16-
- name: Build PlugIn
17-
shell: bash
18-
run: ./gradlew buildPlugin -PpluginVersion=${{ inputs.version }}
19-
20-
- name: Tests and Verify Plugin
26+
- name: Build, Tests and Verify Plugin
2127
shell: bash
22-
run: ./gradlew verifyPlugin check -PpluginVersion=${{ inputs.version }}
28+
run: ./gradlew buildPlugin verifyPlugin check -PpluginVersion=${{ inputs.version }} --no-configuration-cache --no-build-cache
29+
env:
30+
GRADLE_OPTS: "-Dorg.gradle.configuration-cache=false -Dorg.gradle.caching=false"
2331

2432
inputs:
2533
version:

.github/workflows/buildRelease.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,6 @@ jobs:
5959
- name: Create IntelliJ's Marketplace Release
6060
# Publish only valid semantic (real) versions
6161
if: steps.check_version.outputs.valid == 'true'
62-
run: ./gradlew publishPlugin -PpluginVersion=${{ steps.versions.outputs.TAGGED_VERSION }}
62+
run: ./gradlew publishPlugin -PpluginVersion=${{ steps.versions.outputs.TAGGED_VERSION }} --no-configuration-cache --no-build-cache
6363
env:
6464
PUBLISH_TOKEN: ${{ secrets.JETBRAINS_MARKETPLACE_TOKEN }}

build.gradle.kts

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2-
import org.jetbrains.intellij.platform.gradle.TestFrameworkType
3-
import org.jetbrains.intellij.platform.gradle.IntelliJPlatformType
4-
51
fun properties(key: String) = providers.gradleProperty(key)
62

73
plugins {
@@ -15,6 +11,8 @@ version = properties("pluginVersion").get()
1511

1612
repositories {
1713
mavenCentral()
14+
maven("https://www.jetbrains.com/intellij-repository/releases")
15+
maven("https://cache-redirector.jetbrains.com/intellij-dependencies")
1816

1917
intellijPlatform {
2018
defaultRepositories()
@@ -23,11 +21,11 @@ repositories {
2321

2422
dependencies {
2523
intellijPlatform {
26-
val type = properties("platformType").get()
27-
val version = properties("platformVersion").get()
24+
val type = providers.gradleProperty("platformType").getOrElse("IU")
25+
val version = providers.gradleProperty("platformVersion").getOrElse("2025.3")
2826
create(type, version)
2927

30-
testFramework(TestFrameworkType.Platform)
28+
testFramework(org.jetbrains.intellij.platform.gradle.TestFrameworkType.Platform)
3129
bundledPlugin("JavaScript")
3230
}
3331

@@ -37,9 +35,9 @@ dependencies {
3735
intellijPlatform {
3836
pluginVerification {
3937
ides {
40-
ide(IntelliJPlatformType.IntellijIdeaCommunity, "2024.3.7")
41-
ide(IntelliJPlatformType.IntellijIdeaUltimate, "2024.3.7")
42-
ide(IntelliJPlatformType.IntellijIdeaUltimate, "2025.3.1")
38+
ide(org.jetbrains.intellij.platform.gradle.IntelliJPlatformType.IntellijIdeaCommunity, "2024.3")
39+
ide(org.jetbrains.intellij.platform.gradle.IntelliJPlatformType.IntellijIdeaUltimate, "2024.3")
40+
ide(org.jetbrains.intellij.platform.gradle.IntelliJPlatformType.IntellijIdeaUltimate, "2025.3.1")
4341
}
4442
}
4543
}
@@ -52,7 +50,7 @@ tasks {
5250
}
5351
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
5452
compilerOptions {
55-
jvmTarget.set(JvmTarget.fromTarget(properties("javaVersion").get()))
53+
jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.fromTarget(properties("javaVersion").get()))
5654
// Deactivate K2 to avoid SpillingKt problems during the verification phase
5755
freeCompilerArgs.add("-Xuse-k2=false")
5856
}

0 commit comments

Comments
 (0)