Skip to content

Commit

Permalink
Exclude kotlinx coroutines because intellij platform uses their own f…
Browse files Browse the repository at this point in the history
…ork of it now
  • Loading branch information
PHPirates committed Oct 21, 2024
1 parent fbb2eff commit ddb693b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ scripts/venv
results/
gen/
**/node_modules
.intellijPlatform
.intellijPlatform
.kotlin
12 changes: 9 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ repositories {
mavenCentral()
intellijPlatform {
defaultRepositories()
maven("https://www.jetbrains.com/intellij-repository/snapshots")
}
}

Expand Down Expand Up @@ -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")
}
}

Expand All @@ -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
Expand Down

0 comments on commit ddb693b

Please sign in to comment.