Skip to content

Commit 5ae3a7f

Browse files
authored
Merge pull request #36 from moacirrf/ft-signed-nbm
Include configurations to sign nbm plugin
2 parents 1dc924f + 580ed4c commit 5ae3a7f

File tree

4 files changed

+70
-18
lines changed

4 files changed

+70
-18
lines changed

.github/workflows/maven-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ jobs:
1313
with:
1414
java-version: '11'
1515
distribution: 'adopt'
16-
- name: NBM
16+
- name: Tests
1717
run: mvn test

.github/workflows/pre-release.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
## YAML Template.
2+
---
3+
name: Pre Release
4+
on:
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
pre-release:
11+
name: "Pre Release"
12+
runs-on: "ubuntu-latest"
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Set up JDK 11
17+
uses: actions/setup-java@v2
18+
with:
19+
java-version: '11'
20+
distribution: 'adopt'
21+
- name: NBM
22+
run: mvn -Dkeypass=${{secrets.KEYPASS}} verify
23+
- uses: marvinpinto/action-automatic-releases@latest
24+
with:
25+
repo_token: "${{ secrets.NETBEANS_ACTION_TOKEN }}"
26+
automatic_release_tag: "latest"
27+
prerelease: true
28+
title: "Development Build"
29+
files: |
30+
target/*.jar
31+
target/*.nbm
32+

keystore.jks

2.22 KB
Binary file not shown.

pom.xml

Lines changed: 37 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>io.github.moacirrf</groupId>
55
<artifactId>nb-java-decompiler</artifactId>
6-
<version>1.0.2</version>
6+
<version>2.0-SNAPSHOT</version>
77
<packaging>nbm</packaging>
88
<name>NB Java Decompiler</name>
99
<url>https://github.com/moacirrf/nb-java-decompiler</url>
@@ -20,7 +20,7 @@
2020
<connection>scm:git:https://github.com/moacirrf/nb-java-decompiler</connection>
2121
<developerConnection>scm:git:https://github.com/moacirrf/nb-java-decompiler</developerConnection>
2222
<url>https://github.com/moacirrf/nb-java-decompiler/tree/${project.scm.tag}</url>
23-
<tag>v1.0.2</tag>
23+
<tag>v2.0</tag>
2424
</scm>
2525
<licenses>
2626
<license>
@@ -44,6 +44,29 @@
4444
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
4545
</repository>
4646
</distributionManagement>
47+
<profiles>
48+
<profile>
49+
<id>maven-publish</id>
50+
<build>
51+
<plugins>
52+
<plugin>
53+
<groupId>org.apache.maven.plugins</groupId>
54+
<artifactId>maven-gpg-plugin</artifactId>
55+
<version>1.6</version>
56+
<executions>
57+
<execution>
58+
<id>sign-artifacts</id>
59+
<phase>verify</phase>
60+
<goals>
61+
<goal>sign</goal>
62+
</goals>
63+
</execution>
64+
</executions>
65+
</plugin>
66+
</plugins>
67+
</build>
68+
</profile>
69+
</profiles>
4770
<build>
4871
<plugins>
4972
<plugin>
@@ -67,7 +90,10 @@
6790
<licenseName>GNU GENERAL PUBLIC LICENSE 3.0</licenseName>
6891
<licenseFile>LICENSE</licenseFile>
6992
<!-- Path of Netbeans instalation.
70-
<netbeansInstallation>${netbeansInstalationPath}</netbeansInstallation> -->
93+
<netbeansInstallation>${netbeansInstalationPath}</netbeansInstallation> -->
94+
<keystore>${basedir}/keystore.jks</keystore>
95+
<keystorepassword>${keypass}</keystorepassword>
96+
<keystorealias>nb-java-decompiler-key</keystorealias>
7197
</configuration>
7298
</plugin>
7399
<plugin>
@@ -94,20 +120,6 @@
94120
<artifactId>maven-surefire-plugin</artifactId>
95121
<version>2.22.0</version>
96122
</plugin>
97-
<plugin>
98-
<groupId>org.apache.maven.plugins</groupId>
99-
<artifactId>maven-gpg-plugin</artifactId>
100-
<version>1.6</version>
101-
<executions>
102-
<execution>
103-
<id>sign-artifacts</id>
104-
<phase>verify</phase>
105-
<goals>
106-
<goal>sign</goal>
107-
</goals>
108-
</execution>
109-
</executions>
110-
</plugin>
111123
</plugins>
112124
</build>
113125
<dependencies>
@@ -193,6 +205,14 @@
193205
<artifactId>org-netbeans-api-java-classpath</artifactId>
194206
<version>RELEASE130</version>
195207
</dependency>
208+
209+
<dependency>
210+
<groupId>org.netbeans.external</groupId>
211+
<artifactId>updater</artifactId>
212+
<version>RELEASE130</version>
213+
<type>jar</type>
214+
</dependency>
215+
196216
</dependencies>
197217

198218
<repositories>

0 commit comments

Comments
 (0)