Add version info to build output
- If tagged, use the tag version - Otherwise use dev-SNAPSHOT plus commit id and timestamp
This commit is contained in:
parent
be08f0f2ea
commit
1bfdf74554
34
pom.xml
34
pom.xml
@ -16,8 +16,8 @@
|
|||||||
<ghidra.jar.location>${project.basedir}/lib</ghidra.jar.location>
|
<ghidra.jar.location>${project.basedir}/lib</ghidra.jar.location>
|
||||||
<maven.deploy.skip>true</maven.deploy.skip>
|
<maven.deploy.skip>true</maven.deploy.skip>
|
||||||
<maven.install.skip>true</maven.install.skip>
|
<maven.install.skip>true</maven.install.skip>
|
||||||
<revision>dev-SNAPSHOT</revision>
|
|
||||||
<maven.build.timestamp.format>yyyyMMdd-HHmmss</maven.build.timestamp.format>
|
<maven.build.timestamp.format>yyyyMMdd-HHmmss</maven.build.timestamp.format>
|
||||||
|
<revision>dev-SNAPSHOT</revision>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
@ -89,8 +89,24 @@
|
|||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
<resources>
|
||||||
|
<resource>
|
||||||
|
<directory>src/main/resources</directory>
|
||||||
|
<filtering>true</filtering>
|
||||||
|
</resource>
|
||||||
|
</resources>
|
||||||
<plugins>
|
<plugins>
|
||||||
<!-- Set Java version -->
|
<!-- Set Java version -->
|
||||||
|
<!-- Resources plugin to handle filtering -->
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-resources-plugin</artifactId>
|
||||||
|
<version>3.3.1</version>
|
||||||
|
<configuration>
|
||||||
|
<encoding>UTF-8</encoding>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
@ -159,9 +175,17 @@
|
|||||||
<version>3.2.2</version>
|
<version>3.2.2</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<archive>
|
<archive>
|
||||||
<manifestFile>src/main/resources/META-INF/MANIFEST.MF</manifestFile>
|
<manifest>
|
||||||
|
<addDefaultImplementationEntries>false</addDefaultImplementationEntries>
|
||||||
|
</manifest>
|
||||||
<manifestEntries>
|
<manifestEntries>
|
||||||
<Plugin-Version>${revision}</Plugin-Version>
|
<Implementation-Title>GhydraMCP</Implementation-Title>
|
||||||
|
<Implementation-Version>${git.commit.id.abbrev}-${maven.build.timestamp}</Implementation-Version>
|
||||||
|
<Plugin-Class>eu.starsong.ghidra.GhydraMCP</Plugin-Class>
|
||||||
|
<Plugin-Name>GhydraMCP</Plugin-Name>
|
||||||
|
<Plugin-Version>${git.commit.id.abbrev}-${maven.build.timestamp}</Plugin-Version>
|
||||||
|
<Plugin-Author>LaurieWired, Teal Bauer</Plugin-Author>
|
||||||
|
<Plugin-Description>Expose multiple Ghidra tools to MCP servers with variable management</Plugin-Description>
|
||||||
</manifestEntries>
|
</manifestEntries>
|
||||||
</archive>
|
</archive>
|
||||||
<finalName>GhydraMCP</finalName>
|
<finalName>GhydraMCP</finalName>
|
||||||
@ -189,7 +213,7 @@
|
|||||||
<descriptors>
|
<descriptors>
|
||||||
<descriptor>src/assembly/ghidra-extension.xml</descriptor>
|
<descriptor>src/assembly/ghidra-extension.xml</descriptor>
|
||||||
</descriptors>
|
</descriptors>
|
||||||
<finalName>GhydraMCP-${project.version}</finalName>
|
<finalName>GhydraMCP-${git.commit.id.abbrev}-${maven.build.timestamp}</finalName>
|
||||||
<appendAssemblyId>false</appendAssemblyId>
|
<appendAssemblyId>false</appendAssemblyId>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
@ -205,7 +229,7 @@
|
|||||||
<descriptors>
|
<descriptors>
|
||||||
<descriptor>src/assembly/complete-package.xml</descriptor>
|
<descriptor>src/assembly/complete-package.xml</descriptor>
|
||||||
</descriptors>
|
</descriptors>
|
||||||
<finalName>GhydraMCP-Complete-${project.version}</finalName>
|
<finalName>GhydraMCP-Complete-${git.commit.id.abbrev}-${maven.build.timestamp}</finalName>
|
||||||
<appendAssemblyId>false</appendAssemblyId>
|
<appendAssemblyId>false</appendAssemblyId>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
Manifest-Version: 1.0
|
Manifest-Version: 1.0
|
||||||
Plugin-Class: eu.starsong.ghidra.GhydraMCP
|
Plugin-Class: eu.starsong.ghidra.GhydraMCP
|
||||||
Plugin-Name: GhydraMCP
|
Plugin-Name: GhydraMCP
|
||||||
Plugin-Version: 1.1
|
Plugin-Version: ${revision}
|
||||||
Plugin-Author: LaurieWired, Teal Bauer
|
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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user