Skip to content

Commit

Permalink
Allow to optionally sign the plugin JAR files
Browse files Browse the repository at this point in the history
  • Loading branch information
jpstotz committed Apr 30, 2023
1 parent 6d9a3c2 commit dd11ee9
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 6 deletions.
8 changes: 8 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

# Creating a release with signed JAR files

(For ECD maintainers):

mvn clean package -Dsigning.disabled=false -Dsigning.password=<password> -Dsigning.keystore=<absolute path-to-keystore>

This command will create the release repository ZIP file in `../update/target/com.github.ecd-plugin.update-<version>.zip`
35 changes: 29 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<tycho.version>3.0.4</tycho.version>
<signing.disabled>true</signing.disabled>
</properties>
<modules>
<module>org.sf.feeling.decompiler</module>
Expand Down Expand Up @@ -83,7 +84,7 @@
<ws>gtk</ws>
<arch>x86_64</arch>
</environment>
<!-- MacOSX (32bit and 64bit) -->
<!-- MacOSX (Intel 32bit/64bit and ARM64) -->
<environment>
<os>macosx</os>
<ws>cocoa</ws>
Expand All @@ -94,14 +95,36 @@
<ws>cocoa</ws>
<arch>x86_64</arch>
</environment>
<!--<environment>
<os>macosx</os>
<ws>cocoa</ws>
<arch>arm64</arch>
</environment>-->
<environment>
<os>macosx</os>
<ws>cocoa</ws>
<arch>arm64</arch>
</environment>
</environments>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jarsigner-plugin</artifactId>
<version>3.0.0</version>
<configuration>
<keystore>${signing.keystore}</keystore>
<alias>ecd</alias>
<storepass>${signing.password}</storepass>
<keypass>${signing.password}</keypass>
</configuration>
<executions>
<execution>
<id>sign</id>
<goals>
<goal>sign</goal>
</goals>
<configuration>
<skip>${signing.disabled}</skip>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<repositories>
Expand Down

0 comments on commit dd11ee9

Please sign in to comment.