Skip to content

Commit

Permalink
Require JDK 17 and fix test dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
popematt committed Sep 19, 2024
1 parent 0c20ff7 commit 6352326
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
import org.jetbrains.intellij.platform.gradle.IntelliJPlatformType
import org.jetbrains.intellij.platform.gradle.models.ProductRelease
import org.jetbrains.intellij.platform.gradle.TestFrameworkType
import plugin.PluginDescriptor
import plugin.PluginDescriptor.KotlinOptions
import plugin.PlatformType
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSet

buildscript {
repositories {
mavenCentral()
}
}

java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}

plugins {
kotlin("jvm")
id("org.jetbrains.intellij.platform") version "2.0.1"
Expand All @@ -22,7 +28,7 @@ repositories {

intellijPlatform {
defaultRepositories()
}
}
}

val plugins = listOf(
Expand Down Expand Up @@ -101,7 +107,12 @@ dependencies {
bundledPlugins(descriptor.bundledDependencies)
pluginVerifier()
instrumentationTools()

testFramework(TestFrameworkType.Platform)
}

testImplementation("org.junit.jupiter:junit-jupiter:5.7.1")
testRuntimeOnly("org.junit.vintage:junit-vintage-engine")
}

intellijPlatform {
Expand Down Expand Up @@ -142,8 +153,8 @@ intellijPlatform {

sourceSets {
main {
withConvention(KotlinSourceSet::class) {
kotlin.srcDir("src/${descriptor.sourceFolder}/kotlin")
kotlin {
srcDir("src/${descriptor.sourceFolder}/kotlin")
}

resources {
Expand Down

0 comments on commit 6352326

Please sign in to comment.