Skip to content

Commit

Permalink
Fix issue with opentelemetry dependency, see JetBrains/gradle-grammar…
Browse files Browse the repository at this point in the history
  • Loading branch information
PHPirates committed Feb 3, 2024
1 parent 42df1e5 commit caafab1
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ dependencies {
implementation("io.arrow-kt:arrow-fx-coroutines:1.2.1")
implementation("io.arrow-kt:arrow-resilience:1.2.1")

implementation("io.opentelemetry:opentelemetry-api-trace:0.13.1")


// Test dependencies
// No version specified, it equals the kotlin version
testImplementation("org.jetbrains.kotlin:kotlin-test")
Expand Down Expand Up @@ -205,7 +208,7 @@ intellij {
listOf(
"tanvd.grazi",
"java",
"com.firsttimeinforever.intellij.pdf.viewer.intellij-pdf-viewer:0.15.0",
// "com.firsttimeinforever.intellij.pdf.viewer.intellij-pdf-viewer:0.15.0",
"com.jetbrains.hackathon.indices.viewer:1.25"
)
)
Expand All @@ -218,7 +221,7 @@ intellij {
// Comment out to use the latest EAP snapshot
// Docs: https://github.com/JetBrains/gradle-intellij-plugin#intellij-platform-properties
// All snapshot versions: https://www.jetbrains.com/intellij-repository/snapshots/
version.set("2023.3")
version.set("241.10840-EAP-CANDIDATE-SNAPSHOT")
// type = "PY"

// Example to use a different, locally installed, IDE
Expand Down Expand Up @@ -291,6 +294,11 @@ tasks.useLatestVersions {

tasks {

// https://github.com/JetBrains/gradle-grammar-kit-plugin/issues/168
withType<GenerateParserTask> {
classpath(setupDependencies.flatMap { it.idea.map { idea -> idea.classes.resolve("lib/opentelemetry.jar") } })
}

val generateLatexParserTask = register<GenerateParserTask>("generateLatexParser") {
sourceFile.set(File("src/nl/hannahsten/texifyidea/grammar/Latex.bnf"))
targetRoot.set("gen")
Expand Down

0 comments on commit caafab1

Please sign in to comment.