From 1bfdf74554c4b82bae9388fbd65dad68d6b2e391 Mon Sep 17 00:00:00 2001 From: Teal Bauer Date: Sun, 30 Mar 2025 04:25:44 +0200 Subject: [PATCH] Add version info to build output - If tagged, use the tag version - Otherwise use dev-SNAPSHOT plus commit id and timestamp --- pom.xml | 34 +++++++++++++++++++++---- src/main/resources/META-INF/MANIFEST.MF | 4 +-- 2 files changed, 31 insertions(+), 7 deletions(-) diff --git a/pom.xml b/pom.xml index 14e0cad..5602599 100644 --- a/pom.xml +++ b/pom.xml @@ -16,8 +16,8 @@ ${project.basedir}/lib true true - dev-SNAPSHOT yyyyMMdd-HHmmss + dev-SNAPSHOT @@ -89,8 +89,24 @@ + + + src/main/resources + true + + + + + org.apache.maven.plugins + maven-resources-plugin + 3.3.1 + + UTF-8 + + + org.apache.maven.plugins maven-compiler-plugin @@ -159,9 +175,17 @@ 3.2.2 - src/main/resources/META-INF/MANIFEST.MF + + false + - ${revision} + GhydraMCP + ${git.commit.id.abbrev}-${maven.build.timestamp} + eu.starsong.ghidra.GhydraMCP + GhydraMCP + ${git.commit.id.abbrev}-${maven.build.timestamp} + LaurieWired, Teal Bauer + Expose multiple Ghidra tools to MCP servers with variable management GhydraMCP @@ -189,7 +213,7 @@ src/assembly/ghidra-extension.xml - GhydraMCP-${project.version} + GhydraMCP-${git.commit.id.abbrev}-${maven.build.timestamp} false @@ -205,7 +229,7 @@ src/assembly/complete-package.xml - GhydraMCP-Complete-${project.version} + GhydraMCP-Complete-${git.commit.id.abbrev}-${maven.build.timestamp} false diff --git a/src/main/resources/META-INF/MANIFEST.MF b/src/main/resources/META-INF/MANIFEST.MF index 02a73ab..249b8b9 100644 --- a/src/main/resources/META-INF/MANIFEST.MF +++ b/src/main/resources/META-INF/MANIFEST.MF @@ -1,6 +1,6 @@ Manifest-Version: 1.0 Plugin-Class: eu.starsong.ghidra.GhydraMCP Plugin-Name: GhydraMCP -Plugin-Version: 1.1 +Plugin-Version: ${revision} Plugin-Author: LaurieWired, Teal Bauer -Plugin-Description: Expose multiple Ghidra tools to MCP servers +Plugin-Description: Expose multiple Ghidra tools to MCP servers with variable management