From 88c1d4b4bd5f717871fe5539d093f81d12035158 Mon Sep 17 00:00:00 2001 From: Nebojsa Vuksic Date: Thu, 31 Jul 2025 14:12:51 +0200 Subject: [PATCH] Add test dependencies and update libraries in build files --- build.gradle.kts | 5 +++++ gradle/libs.versions.toml | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/build.gradle.kts b/build.gradle.kts index 2e3b6db..798f1dc 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -26,11 +26,16 @@ repositories { intellijPlatform { defaultRepositories() } + // Needed for tests + google() } dependencies { testImplementation(libs.junit) testImplementation(libs.opentest4j) + testImplementation(libs.hamcrest) + testImplementation(libs.composeuitest) + testImplementation(libs.jewelstandalone) intellijPlatform { create(providers.gradleProperty("platformType"), providers.gradleProperty("platformVersion")) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index deeb2f0..bdac41e 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -2,6 +2,10 @@ # libraries junit = "4.13.2" opentest4j = "1.3.0" +hamcrest = "2.2" +# Has to be in sync with IntelliJ Platform +composeuitest="1.8.0-alpha04" +jewelstandalone="0.29.0-251.27828" # plugins changelog = "2.2.1" @@ -13,6 +17,9 @@ qodana = "2024.3.4" [libraries] junit = { group = "junit", name = "junit", version.ref = "junit" } opentest4j = { group = "org.opentest4j", name = "opentest4j", version.ref = "opentest4j" } +hamcrest = { group = "org.hamcrest", name = "hamcrest", version.ref = "hamcrest" } +composeuitest = { group = "org.jetbrains.compose.ui", name ="ui-test-junit4-desktop", version.ref="composeuitest" } +jewelstandalone = { group = "org.jetbrains.jewel", name ="jewel-int-ui-standalone", version.ref="jewelstandalone" } [plugins] changelog = { id = "org.jetbrains.changelog", version.ref = "changelog" }