Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include configurations to sign nbm plugin #36

Merged
merged 5 commits into from
Jan 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ jobs:
with:
java-version: '11'
distribution: 'adopt'
- name: NBM
- name: Tests
run: mvn test
32 changes: 32 additions & 0 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
## YAML Template.
---
name: Pre Release
on:
push:
branches:
- master

jobs:
pre-release:
name: "Pre Release"
runs-on: "ubuntu-latest"

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: NBM
run: mvn -Dkeypass=${{secrets.KEYPASS}} verify
- uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.NETBEANS_ACTION_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "Development Build"
files: |
target/*.jar
target/*.nbm

Binary file added keystore.jks
Binary file not shown.
54 changes: 37 additions & 17 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.github.moacirrf</groupId>
<artifactId>nb-java-decompiler</artifactId>
<version>1.0.2</version>
<version>2.0-SNAPSHOT</version>
<packaging>nbm</packaging>
<name>NB Java Decompiler</name>
<url>https://github.com/moacirrf/nb-java-decompiler</url>
Expand All @@ -20,7 +20,7 @@
<connection>scm:git:https://github.com/moacirrf/nb-java-decompiler</connection>
<developerConnection>scm:git:https://github.com/moacirrf/nb-java-decompiler</developerConnection>
<url>https://github.com/moacirrf/nb-java-decompiler/tree/${project.scm.tag}</url>
<tag>v1.0.2</tag>
<tag>v2.0</tag>
</scm>
<licenses>
<license>
Expand All @@ -44,6 +44,29 @@
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
<profiles>
<profile>
<id>maven-publish</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<build>
<plugins>
<plugin>
Expand All @@ -67,7 +90,10 @@
<licenseName>GNU GENERAL PUBLIC LICENSE 3.0</licenseName>
<licenseFile>LICENSE</licenseFile>
<!-- Path of Netbeans instalation.
<netbeansInstallation>${netbeansInstalationPath}</netbeansInstallation> -->
<netbeansInstallation>${netbeansInstalationPath}</netbeansInstallation> -->
<keystore>${basedir}/keystore.jks</keystore>
<keystorepassword>${keypass}</keystorepassword>
<keystorealias>nb-java-decompiler-key</keystorealias>
</configuration>
</plugin>
<plugin>
Expand All @@ -94,20 +120,6 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
Expand Down Expand Up @@ -193,6 +205,14 @@
<artifactId>org-netbeans-api-java-classpath</artifactId>
<version>RELEASE130</version>
</dependency>

<dependency>
<groupId>org.netbeans.external</groupId>
<artifactId>updater</artifactId>
<version>RELEASE130</version>
<type>jar</type>
</dependency>

</dependencies>

<repositories>
Expand Down