Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Commit

Permalink
Merge pull request #67 from atlanhq/DX-314
Browse files Browse the repository at this point in the history
Override default jar with shadowed jar where needed
  • Loading branch information
cmgrote authored Nov 9, 2023
2 parents 16a4506 + 5b1454a commit 98a28e2
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
3 changes: 3 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ atlan-java = "1.7.0-SNAPSHOT"
pkg-toolkit-config = { module = "com.atlan:package-toolkit-config", version.ref = "atlan-java" }
pkg-toolkit-runtime = { module = "com.atlan:package-toolkit-runtime", version.ref = "atlan-java" }
pkg-toolkit-events = { module = "com.atlan:package-toolkit-events", version.ref = "atlan-java" }

[plugins]
shadow = { id = "com.github.johnrengelman.shadow", version = "7.1.2" }
7 changes: 5 additions & 2 deletions packages/migration-assistant-export/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ val jarFile = "migration-assistant-export-$version.jar"

plugins {
id("com.atlan.kotlin-custom-package")
id("com.github.johnrengelman.shadow") version "7.1.2"
alias(libs.plugins.shadow)
}

dependencies {
Expand All @@ -22,6 +22,9 @@ tasks {
}

jar {
dependsOn(shadowJar)
// Override the default jar task so we get the shadowed jar
// as the only jar output
actions = listOf()
doLast { shadowJar }
}
}
7 changes: 5 additions & 2 deletions packages/migration-assistant-import/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ val jarFile = "migration-assistant-import-$version.jar"

plugins {
id("com.atlan.kotlin-custom-package")
id("com.github.johnrengelman.shadow") version "7.1.2"
alias(libs.plugins.shadow)
}

dependencies {
Expand All @@ -22,6 +22,9 @@ tasks {
}

jar {
dependsOn(shadowJar)
// Override the default jar task so we get the shadowed jar
// as the only jar output
actions = listOf()
doLast { shadowJar }
}
}
7 changes: 5 additions & 2 deletions packages/openapi-spec-loader/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ val jarFile = "openapi-spec-loader-$version.jar"

plugins {
id("com.atlan.kotlin-custom-package")
id("com.github.johnrengelman.shadow") version "7.1.2"
alias(libs.plugins.shadow)
}

dependencies {
Expand Down Expand Up @@ -31,6 +31,9 @@ tasks {
}

jar {
dependsOn(shadowJar)
// Override the default jar task so we get the shadowed jar
// as the only jar output
actions = listOf()
doLast { shadowJar }
}
}

0 comments on commit 98a28e2

Please sign in to comment.