Skip to content

Commit

Permalink
Output jars in root build dir
Browse files Browse the repository at this point in the history
Set `base.libsDirectory` for all archives to be in `rootProject`'s build directory to make them easier to find/collect.
  • Loading branch information
MattSturgeon committed Dec 19, 2023
1 parent 4559da0 commit 2af4647
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ allprojects {
base {
// Format archive names, e.g. 'freecam-fabric-1.2.1.1+1.20.2.jar'
archivesName = rootProject.name + project.path.replaceAll(':', '-')
// Output all archives in root `build/libs`
libsDirectory = rootProject.layout.buildDirectory.dir "libs"
}

sourceCompatibility = JavaVersion.VERSION_17
Expand Down

0 comments on commit 2af4647

Please sign in to comment.