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
16 changes: 8 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ jobs:

# Validate wrapper
- name: Gradle Wrapper Validation
uses: gradle/actions/wrapper-validation@v3
uses: gradle/actions/wrapper-validation@v5

# Set up Java environment for the next steps
- name: Setup Java
uses: actions/setup-java@v5
with:
distribution: zulu
java-version: 21
java-version: 25

# Setup Gradle
- name: Setup Gradle
Expand Down Expand Up @@ -86,7 +86,7 @@ jobs:

# Store already-built plugin as an artifact for downloading
- name: Upload artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
with:
name: ${{ steps.artifact.outputs.filename }}
path: ./build/distributions/content/*/*
Expand All @@ -113,7 +113,7 @@ jobs:
uses: actions/setup-java@v5
with:
distribution: zulu
java-version: 21
java-version: 25

# Setup Gradle
- name: Setup Gradle
Expand All @@ -123,12 +123,12 @@ jobs:

# Run tests
- name: Run Tests
run: ./gradlew check
run: ./gradlew check --stacktrace

# Collect Tests Result of failed tests
- name: Collect Tests Result
if: ${{ failure() }}
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
with:
name: tests-result
path: ${{ github.workspace }}/build/reports/tests
Expand All @@ -155,7 +155,7 @@ jobs:
uses: actions/setup-java@v5
with:
distribution: zulu
java-version: 21
java-version: 25

# Setup Gradle
- name: Setup Gradle
Expand All @@ -165,7 +165,7 @@ jobs:

# Cache Plugin Verifier IDEs
- name: Setup Plugin Verifier IDEs Cache
uses: actions/cache@v4
uses: actions/cache@v5
with:
path: ${{ needs.build.outputs.pluginVerifierHomeDir }}/ides
key: plugin-verifier
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
uses: actions/setup-java@v5
with:
distribution: zulu
java-version: 21
java-version: 25
cache: gradle

# Setup Gradle
Expand Down
1 change: 1 addition & 0 deletions .java-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
25
33 changes: 17 additions & 16 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,22 +1,34 @@
plugins {
id("java")
id("org.jetbrains.kotlin.jvm") version "2.1.20"
id("org.jetbrains.intellij.platform") version "2.13.1"
id("org.jetbrains.intellij.platform") version "2.17.0"
}

group = "com.github.junkfactory"
version = providers.gradleProperty("pluginVersion").get()

java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(25))
}
}

tasks.withType<JavaCompile> {
options.release.set(25)
}

repositories {
mavenCentral()
maven("https://oss.sonatype.org/content/repositories/snapshots/")
intellijPlatform {
defaultRepositories();
defaultRepositories()
}
}

dependencies {
intellijPlatform {
create("IU", "2026.1")
create("IU", "LATEST-EAP-SNAPSHOT") {
useInstaller = false
}
testFramework(org.jetbrains.intellij.platform.gradle.TestFrameworkType.Platform)

// Add necessary plugin dependencies for compilation here, example:
Expand All @@ -28,7 +40,7 @@ intellijPlatform {
pluginConfiguration {
ideaVersion {
sinceBuild = "242"
untilBuild = "261.*"
untilBuild = "262.*"
}
}

Expand All @@ -42,17 +54,6 @@ intellijPlatform {
// Configure Gradle IntelliJ Plugin
// Read more: https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html
tasks {
// Set the JVM compatibility versions
withType<JavaCompile> {
sourceCompatibility = "21"
targetCompatibility = "21"
}
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
compilerOptions {
jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_21)
}
}

signPlugin {
certificateChain.set(System.getenv("CERTIFICATE_CHAIN"))
privateKey.set(System.getenv("PRIVATE_KEY"))
Expand Down