From 2687b732ab65640a3526e19b7da4a3e7eeb8ba99 Mon Sep 17 00:00:00 2001 From: Michael Pollmeier Date: Thu, 2 Jan 2025 16:07:07 +0100 Subject: [PATCH] write the php parser version to the manifest for downstream usage: php2cpg others will follow once the entire chain works --- joern-cli/frontends/php2cpg/build.sbt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/joern-cli/frontends/php2cpg/build.sbt b/joern-cli/frontends/php2cpg/build.sbt index f4b02b7cf65e..c95e07becf50 100644 --- a/joern-cli/frontends/php2cpg/build.sbt +++ b/joern-cli/frontends/php2cpg/build.sbt @@ -36,3 +36,7 @@ Compile / compile := ((Compile / compile) dependsOn phpParseInstallTask).value enablePlugins(JavaAppPackaging, LauncherJarPlugin) Global / onChangedBuildSource := ReloadOnSourceChanges + +/** write the php parser version to the manifest for downstream usage */ +Compile / packageBin / packageOptions += + Package.ManifestAttributes(new java.util.jar.Attributes.Name("PHP-Parser-Version") -> Versions.phpParser)