From ddb693b41286a0ba506dc2e4d7c62f79cbfcc175 Mon Sep 17 00:00:00 2001 From: Thomas Schouten Date: Mon, 21 Oct 2024 10:30:40 +0200 Subject: [PATCH] Exclude kotlinx coroutines because intellij platform uses their own fork of it now --- .gitignore | 3 ++- build.gradle.kts | 12 +++++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 77bf9b829..25a3c719c 100644 --- a/.gitignore +++ b/.gitignore @@ -10,4 +10,5 @@ scripts/venv results/ gen/ **/node_modules -.intellijPlatform \ No newline at end of file +.intellijPlatform +.kotlin \ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts index 3c911988e..cd01d32ce 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -44,6 +44,7 @@ repositories { mavenCentral() intellijPlatform { defaultRepositories() + maven("https://www.jetbrains.com/intellij-repository/snapshots") } } @@ -78,11 +79,13 @@ tasks.compileTestKotlin { } } -// https://stackoverflow.com/questions/11677572/dealing-with-xerces-hell-in-java-maven configurations { all { + // https://stackoverflow.com/questions/11677572/dealing-with-xerces-hell-in-java-maven exclude(group = "xml-apis") exclude(group = "xerces") + // https://plugins.jetbrains.com/docs/intellij/using-kotlin.html#coroutinesLibraries + exclude(group = "org.jetbrains.kotlinx", module = "kotlinx-coroutines-core") } } @@ -94,10 +97,13 @@ dependencies { testFramework(TestFrameworkType.Platform) testFramework(TestFrameworkType.Plugin.Java) - // Comment out to use the latest EAP snapshot + intellijIdeaUltimate("2024.2") + // Docs: https://github.com/JetBrains/gradle-intellij-plugin#intellij-platform-properties // All snapshot versions: https://www.jetbrains.com/intellij-repository/snapshots/ - intellijIdeaCommunity("2024.2") +// intellijIdeaCommunity("243.20847-EAP-CANDIDATE-SNAPSHOT", useInstaller = false) +// jetbrainsRuntime() // https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-dependencies-extension.html#target-versions-multi-os-archives + // Example to use a different, locally installed, IDE // If you get the error "Cannot find builtin plugin java for IDE", remove the "java" plugin above // Also disable "version" above