Skip to content

Commit

Permalink
feat: add DEPENDENCIES file to jars (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
paullatzelsperger committed Jul 11, 2023
1 parent af36bd7 commit 7465c8d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ public void apply(Project target) {
var rootProjectPath = target.getRootProject().getProjectDir().getAbsolutePath();
var licenseFile = Path.of(rootProjectPath, "LICENSE");
var noticeFile = Path.of(rootProjectPath, "NOTICE.md");
jarTask.metaInf(metaInf -> metaInf.from(licenseFile.toString(), noticeFile.toString()));
var dependenciesFile = Path.of(rootProjectPath, "DEPENDENCIES");
jarTask.metaInf(metaInf -> metaInf.from(licenseFile.toString(), noticeFile.toString(), dependenciesFile.toString()));
}
}
}

0 comments on commit 7465c8d

Please sign in to comment.