Skip to content

Commit

Permalink
build: add shadow plugin to version catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
kris7t committed Jul 8, 2024
1 parent 4217b24 commit f293336
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions subprojects/versions/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,18 @@ mavenArtifact {
val refineryVersion = "refinery"
val interpreterVersion = "refineryInterpreter"
val interpreterGroup = property("tools.refinery.interpreter.group").toString()
val shadowVersion = "shadow"

catalog.versionCatalog {
from(files("../../gradle/libs.versions.toml"))
version(refineryVersion, project.version.toString())
version(interpreterVersion, property("tools.refinery.interpreter.version").toString())
library("bom", group.toString(), "refinery-bom").versionRef(refineryVersion)
library("bom-dependencies", group.toString(), "refinery-bom-dependencies").versionRef(refineryVersion)

// Let downstream users add the shadow plugin to bundle their dependencies.
version(shadowVersion, pluginLibs.versions.shadow.get())
plugin("shadow", "io.github.goooler.shadow").versionRef(shadowVersion)
}

publishing.publications.named<MavenPublication>("mavenJava") {
Expand Down

0 comments on commit f293336

Please sign in to comment.