Skip to content

Commit

Permalink
fix(buildscript): shade gson
Browse files Browse the repository at this point in the history
  • Loading branch information
bluelhf committed Apr 19, 2023
1 parent 1af604a commit 5f690c3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@ plugins {
id("org.jetbrains.changelog") version "2.0.0"
// Gradle Qodana Plugin
id("org.jetbrains.qodana") version "0.1.13"
// Gradle Shadow Plugin
id("com.github.johnrengelman.shadow") version "8.1.1"
}

group = properties("pluginGroup")
version = properties("pluginVersion")

dependencies {
implementation("com.google.code.gson:gson:2.10.1")
implementation("com.kstruct:gethostname4j:1.0.0")
}

// Configure project's dependencies
Expand Down Expand Up @@ -67,6 +68,11 @@ tasks {
}
}

// Relocate dependencies to avoid conflicts with other plugins
shadowJar {
relocate("com.google.gson", "fi.testaustime.plugin_intellij.gson")
}

wrapper {
gradleVersion = properties("gradleVersion")
}
Expand Down

0 comments on commit 5f690c3

Please sign in to comment.