Skip to content

Commit

Permalink
updates based on what Jendrik provided
Browse files Browse the repository at this point in the history
Signed-off-by: Jeromy Cannon <[email protected]>
  • Loading branch information
jeromy-cannon committed Sep 12, 2023
1 parent 841e8c8 commit e88beab
Showing 1 changed file with 27 additions and 7 deletions.
34 changes: 27 additions & 7 deletions fullstack-gradle-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,40 @@
plugins {
id("java-gradle-plugin")
id("com.github.johnrengelman.shadow").version("8.1.1")
id("com.gradle.plugin-publish").version("1.2.1")
id("com.hedera.fullstack.conventions")
id("com.hedera.fullstack.maven-publish")
}

dependencies {
api(platform(project(":fullstack-bom")))
implementation(project(":fullstack-helm-client"))
implementation("org.slf4j:slf4j-api:2.0.7")
// 'internal' for dependencies that are not visible in tests and are not published
// because things are shadowed
val internal = configurations.create("internal")
configurations.compileClasspath {
extendsFrom(internal)
}
configurations.runtimeClasspath {
extendsFrom(internal)
}

// implementation(project(mapOf("path" to ":fullstack-helm-client")))
dependencies {
internal(platform(project(":fullstack-bom")))
internal(project(":fullstack-helm-client"))
}

tasks.shadowJar {
isEnableRelocation = true
relocationPrefix = "com.hedera.fullstack.shadowed"
archiveClassifier.set("")
manifest {
attributes("Multi-Release" to "true")
}

relocate("com.fasterxml", "com.hedera.fullstack.shadowed.com.fasterxml")
relocate("org.slf4j", "com.hedera.fullstack.shadowed.org.slf4j")
}

tasks.test {
// Use the shadow Jar with everything included instead of the classes folder
classpath = sourceSets.test.get().runtimeClasspath + files(tasks.shadowJar)
}

gradlePlugin {
Expand All @@ -43,4 +63,4 @@ gradlePlugin {
"The Fullstack Plugin provides tools for working with Fullstack infrastructure."
}
}
}
}

0 comments on commit e88beab

Please sign in to comment.