Skip to content

Commit

Permalink
Shadow source jars too (#87)
Browse files Browse the repository at this point in the history
* Shadow source jars too

* whoops
  • Loading branch information
ah-OOG-ah authored Nov 4, 2024
1 parent b077a12 commit 54d49a3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,9 @@ tasks.processResources {
expand("version" to project.version.toString())
}
}

// Shadow source jars too
val shadowSources = configurations.getByName("shadowSources")
tasks.sourcesJar {
from(shadowSources.map { zipTree(it) })
}
5 changes: 5 additions & 0 deletions dependencies.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
// Add your dependencies here
configurations {
shadowSources
}

dependencies {
shadowImplementation("it.unimi.dsi:fastutil:8.5.12") // Apache 2.0
shadowImplementation("org.joml:joml:1.10.5") // MIT
shadowSources("it.unimi.dsi:fastutil:8.5.12:sources")
shadowSources("org.joml:joml:1.10.5:sources")

testImplementation(platform("org.junit:junit-bom:5.9.2"))
testImplementation("org.junit.jupiter:junit-jupiter")
Expand Down

0 comments on commit 54d49a3

Please sign in to comment.