Skip to content

Commit f5ca0d5

Browse files
authored
Merge pull request #27 from moacirrf/ft-26-refactor-to-publish-to-apache
Chnages to publish on apache plugins
2 parents 7bce607 + ce0db2d commit f5ca0d5

File tree

17 files changed

+97
-37
lines changed

17 files changed

+97
-37
lines changed

.github/workflows/maven-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ jobs:
1414
java-version: '11'
1515
distribution: 'adopt'
1616
- name: NBM
17-
run: mvn clean install
17+
run: mvn clean test

pom.xml

Lines changed: 65 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,62 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
33
<modelVersion>4.0.0</modelVersion>
4-
<groupId>com.mrf.javadecompiler</groupId>
4+
<groupId>io.github.moacirrf</groupId>
55
<artifactId>nb-java-decompiler</artifactId>
66
<version>1.0.0</version>
77
<packaging>nbm</packaging>
8+
<name>NB Java Decompiler</name>
9+
<url>https://github.com/moacirrf/nb-java-decompiler</url>
10+
<description>A Java Decompiler for Apache Netbeans.</description>
11+
<developers>
12+
<developer>
13+
<id>moacirrf</id>
14+
<name>Moacir da Roza Flores</name>
15+
<email>moacirrf@gmail.com</email>
16+
<url>https://github.com/moacirrf</url>
17+
</developer>
18+
</developers>
19+
<scm>
20+
<connection>scm:git:https://github.com/moacirrf/nb-java-decompiler</connection>
21+
<developerConnection>scm:git:https://github.com/project-url.git</developerConnection>
22+
<url>https://github.com/moacirrf/nb-java-decompiler/tree/${project.scm.tag}</url>
23+
<tag>master</tag>
24+
</scm>
25+
<licenses>
26+
<license>
27+
<name>GNU GENERAL PUBLIC LICENSE 3.0</name>
28+
<url>https://www.gnu.org/licenses/gpl-3.0.txt</url>
29+
<distribution>repo</distribution>
30+
</license>
31+
</licenses>
32+
<distributionManagement>
33+
<site>
34+
<id>github</id>
35+
<name>Maven Site Distribution</name>
36+
<url>scm:git:https://github.com/moacirrf/nb-java-decompiler.git</url>
37+
</site>
38+
<snapshotRepository>
39+
<id>ossrh</id>
40+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
41+
</snapshotRepository>
42+
<repository>
43+
<id>ossrh</id>
44+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
45+
</repository>
46+
</distributionManagement>
847
<build>
948
<plugins>
49+
<plugin>
50+
<groupId>org.sonatype.plugins</groupId>
51+
<artifactId>nexus-staging-maven-plugin</artifactId>
52+
<version>1.6.13</version>
53+
<extensions>true</extensions>
54+
<configuration>
55+
<serverId>ossrh</serverId>
56+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
57+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
58+
</configuration>
59+
</plugin>
1060
<plugin>
1161
<groupId>org.apache.netbeans.utilities</groupId>
1262
<artifactId>nbm-maven-plugin</artifactId>
@@ -44,6 +94,20 @@
4494
<artifactId>maven-surefire-plugin</artifactId>
4595
<version>2.22.0</version>
4696
</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>
47111
</plugins>
48112
</build>
49113
<dependencies>

src/main/java/com/mrf/javadecompiler/openide/action/DecompileAction.java renamed to src/main/java/io/github/moacirrf/javadecompiler/DecompileAction.java

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,12 @@
1414
* You should have received a copy of the GNU General Public License
1515
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
*/
17-
package com.mrf.javadecompiler.openide.action;
17+
package io.github.moacirrf.javadecompiler;
1818

1919
import static com.machinezoo.noexception.Exceptions.wrap;
2020
import static java.util.Objects.nonNull;
21-
import com.mrf.javadecompiler.decompiler.Decompiler;
22-
import com.mrf.javadecompiler.decompiler.DecompilerFactory;
23-
import com.mrf.javadecompiler.exception.ExceptionHandler;
24-
import com.mrf.javadecompiler.filesystems.TempDir;
25-
import com.mrf.javadecompiler.validator.FileValidator;
21+
import io.github.moacirrf.javadecompiler.files.TempDir;
22+
import io.github.moacirrf.javadecompiler.validator.FileValidator;
2623
import java.awt.event.ActionEvent;
2724
import java.awt.event.ActionListener;
2825
import java.nio.file.Files;
@@ -39,7 +36,7 @@
3936

4037
@ActionID(
4138
category = "Tools",
42-
id = "com.mrf.javadecompiler.openide.DecompileAction"
39+
id = "io.github.moacirrf.javadecompiler.DecompileAction"
4340
)
4441
@ActionRegistration(
4542
displayName = "#CTL_DecompileAction"

src/main/java/com/mrf/javadecompiler/decompiler/Decompiler.java renamed to src/main/java/io/github/moacirrf/javadecompiler/Decompiler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* You should have received a copy of the GNU General Public License
1515
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
*/
17-
package com.mrf.javadecompiler.decompiler;
17+
package io.github.moacirrf.javadecompiler;
1818

1919

2020
/**

src/main/java/com/mrf/javadecompiler/decompiler/DecompilerFactory.java renamed to src/main/java/io/github/moacirrf/javadecompiler/DecompilerFactory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
* You should have received a copy of the GNU General Public License
1515
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
*/
17-
package com.mrf.javadecompiler.decompiler;
17+
package io.github.moacirrf.javadecompiler;
1818

19-
import com.mrf.javadecompiler.decompiler.cfr.DecompilerClassImpl;
19+
import io.github.moacirrf.javadecompiler.cfr.DecompilerClassImpl;
2020

2121
/**
2222
*

src/main/java/com/mrf/javadecompiler/exception/ExceptionHandler.java renamed to src/main/java/io/github/moacirrf/javadecompiler/ExceptionHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* You should have received a copy of the GNU General Public License
1515
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
*/
17-
package com.mrf.javadecompiler.exception;
17+
package io.github.moacirrf.javadecompiler;
1818

1919
import static org.openide.util.Exceptions.printStackTrace;
2020

src/main/java/com/mrf/javadecompiler/openide/Installer.java renamed to src/main/java/io/github/moacirrf/javadecompiler/Installer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
* You should have received a copy of the GNU General Public License
1515
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
*/
17-
package com.mrf.javadecompiler.openide;
17+
package io.github.moacirrf.javadecompiler;
1818

19-
import com.mrf.javadecompiler.filesystems.TempDir;
19+
import io.github.moacirrf.javadecompiler.files.TempDir;
2020

2121
import org.openide.modules.ModuleInstall;
2222

src/main/java/com/mrf/javadecompiler/decompiler/cfr/DecompilerClassImpl.java renamed to src/main/java/io/github/moacirrf/javadecompiler/cfr/DecompilerClassImpl.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
* You should have received a copy of the GNU General Public License
1515
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
*/
17-
package com.mrf.javadecompiler.decompiler.cfr;
17+
package io.github.moacirrf.javadecompiler.cfr;
1818

19-
import com.mrf.javadecompiler.decompiler.Decompiler;
19+
import io.github.moacirrf.javadecompiler.Decompiler;
2020
import static com.machinezoo.noexception.Exceptions.wrap;
21-
import com.mrf.javadecompiler.exception.ExceptionHandler;
22-
import com.mrf.javadecompiler.filesystems.FileSystemHelper;
21+
import io.github.moacirrf.javadecompiler.ExceptionHandler;
22+
import io.github.moacirrf.javadecompiler.files.FileSystemHelper;
2323
import java.util.Map;
2424
import org.benf.cfr.reader.Main;
2525
import org.benf.cfr.reader.apiunreleased.ClassFileSource2;

src/main/java/com/mrf/javadecompiler/decompiler/cfr/NetbeansClassFileSourceImpl.java renamed to src/main/java/io/github/moacirrf/javadecompiler/cfr/NetbeansClassFileSourceImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
* You should have received a copy of the GNU General Public License
1515
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
*/
17-
package com.mrf.javadecompiler.decompiler.cfr;
17+
package io.github.moacirrf.javadecompiler.cfr;
1818

19-
import com.mrf.javadecompiler.filesystems.FileSystemHelper;
19+
import io.github.moacirrf.javadecompiler.files.FileSystemHelper;
2020
import java.io.IOException;
2121
import java.util.Collection;
2222
import java.util.List;

src/main/java/com/mrf/javadecompiler/decompiler/cfr/PluginDumperFactory.java renamed to src/main/java/io/github/moacirrf/javadecompiler/cfr/PluginDumperFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* You should have received a copy of the GNU General Public License
1515
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
*/
17-
package com.mrf.javadecompiler.decompiler.cfr;
17+
package io.github.moacirrf.javadecompiler.cfr;
1818

1919
import org.benf.cfr.reader.bytecode.analysis.types.JavaTypeInstance;
2020
import org.benf.cfr.reader.state.TypeUsageInformation;

0 commit comments

Comments
 (0)