Skip to content

Commit cf05ed9

Browse files
committed
Merge branch 'nb120'
2 parents 88ab2eb + f2cacbe commit cf05ed9

6 files changed

Lines changed: 129 additions & 4 deletions

File tree

.github/FUNDING.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
github: junichi11
2-
patreon: junichi11

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
build
22
nbproject/private
3+
lib
4+
pom.xml.asc

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ If development version exists, it will be available in the same archive as stabl
192192

193193
## Donation
194194

195-
<a href="https://www.patreon.com/junichi11"><img src="https://c5.patreon.com/external/logo/become_a_patron_button@2x.png" height="50"></a>
195+
- https://github.com/sponsors/junichi11
196196

197197
## License
198198

build.xml

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,35 @@
22
<!-- You may freely edit this file. See harness/README in the NetBeans platform -->
33
<!-- for some information on what you could do (e.g. targets to override). -->
44
<!-- If you delete this file and reopen the project it will be recreated. -->
5-
<project name="org.netbeans.modules.php.wordpress" default="netbeans" basedir=".">
5+
<project name="org.netbeans.modules.php.wordpress" default="netbeans" basedir="." xmlns:artifact="antlib:org.apache.maven.artifact.ant">
66
<description>Builds, tests, and runs the project org.netbeans.modules.php.wordpress.</description>
77
<import file="nbproject/build-impl.xml"/>
8+
<path id="maven-ant-tasks.classpath" path="lib/maven-ant-tasks-2.1.3.jar" />
9+
<typedef resource="org/apache/maven/artifact/ant/antlib.xml" uri="antlib:org.apache.maven.artifact.ant" classpathref="maven-ant-tasks.classpath" />
10+
11+
<!-- define Maven coordinates -->
12+
<property name="build" value="build" />
13+
<property name="groupId" value="com.junichi11.netbeans.modules" />
14+
<property name="artifactId" value="netbeans-wordpress-plugin" />
15+
<!-- also change the version of pom.xml -->
16+
<property name="version" value="1.1.0" />
17+
<!-- defined maven snapshots and staging repository id and url -->
18+
<property name="ossrh-snapshots-repository-url"
19+
value="https://oss.sonatype.org/content/repositories/snapshots/" />
20+
<property name="ossrh-staging-repository-url"
21+
value="https://oss.sonatype.org/service/local/staging/deploy/maven2/" />
22+
<!-- there server id in the Maven settings.xml -->
23+
<property name="ossrh-server-id" value="ossrh" />
24+
25+
<target name="deploy" depends="nbm" description="deploy release version to Maven repository">
26+
<move file="${build}/org-netbeans-modules-php-wordpress.nbm" toFile="${build}/${artifactId}-${version}.nbm"/>
27+
<artifact:mvn>
28+
<arg value="org.apache.maven.plugins:maven-gpg-plugin:1.3:sign-and-deploy-file" />
29+
<arg value="-Durl=${ossrh-staging-repository-url}" />
30+
<arg value="-DrepositoryId=${ossrh-server-id}" />
31+
<arg value="-DpomFile=pom.xml" />
32+
<arg value="-Dfile=${build}/${artifactId}-${version}.nbm" />
33+
<arg value="-Pgpg" />
34+
</artifact:mvn>
35+
</target>
836
</project>

manifest.mf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ Manifest-Version: 1.0
22
OpenIDE-Module: org.netbeans.modules.php.wordpress
33
OpenIDE-Module-Layer: org/netbeans/modules/php/wordpress/resources/layer.xml
44
OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/php/wordpress/Bundle.properties
5-
OpenIDE-Module-Specification-Version: 1.0.0
5+
OpenIDE-Module-Specification-Version: 1.1.0
66
OpenIDE-Module-Install: org/netbeans/modules/php/wordpress/WordPressModuleInstall.class

pom.xml

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<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">
3+
<modelVersion>4.0.0</modelVersion>
4+
<groupId>com.junichi11.netbeans.modules</groupId>
5+
<artifactId>netbeans-wordpress-plugin</artifactId>
6+
<!-- change the version of build.xml -->
7+
<version>1.1.0</version>
8+
<packaging>nbm</packaging>
9+
<name>PHP WordPress Blog/CMS</name>
10+
<url>https://github.com/junichi11/netbeans-wordpress-plugin</url>
11+
<description>This is a NetBeans plugin for WordPress.</description>
12+
<developers>
13+
<developer>
14+
<id>junichi11</id>
15+
<name>Junichi Yamamoto</name>
16+
<url>https://github.com/junichi11</url>
17+
</developer>
18+
</developers>
19+
<scm>
20+
<connection>scm:git:https://github.com/junichi11/netbeans-wordpress-plugin</connection>
21+
<developerConnection>scm:git:https://github.com/junichi11/netbeans-wordpress-plugin.git</developerConnection>
22+
<url>https://github.com/junichi11/netbeans-wordpress-plugin</url>
23+
<tag>HEAD</tag>
24+
</scm>
25+
<licenses>
26+
<license>
27+
<name>Common Development and Distribution License (CDDL) v1.0 and GNU General Public License (GPL) v2</name>
28+
<url>http://netbeans.org/cddl-gplv2.html</url>
29+
</license>
30+
</licenses>
31+
<distributionManagement>
32+
<snapshotRepository>
33+
<id>ossrh</id>
34+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
35+
</snapshotRepository>
36+
<repository>
37+
<id>ossrh</id>
38+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
39+
</repository>
40+
</distributionManagement>
41+
<build>
42+
<plugins>
43+
<plugin>
44+
<groupId>org.apache.maven.plugins</groupId>
45+
<artifactId>maven-deploy-plugin</artifactId>
46+
<version>3.0.0</version>
47+
</plugin>
48+
<plugin>
49+
<groupId>org.sonatype.plugins</groupId>
50+
<artifactId>nexus-staging-maven-plugin</artifactId>
51+
<version>1.6.7</version>
52+
<extensions>true</extensions>
53+
<configuration>
54+
<serverId>ossrh</serverId>
55+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
56+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
57+
</configuration>
58+
</plugin>
59+
<plugin>
60+
<groupId>org.apache.maven.plugins</groupId>
61+
<artifactId>maven-compiler-plugin</artifactId>
62+
<version>3.8.1</version>
63+
<configuration>
64+
<source>1.8</source>
65+
<target>1.8</target>
66+
</configuration>
67+
</plugin>
68+
<plugin>
69+
<groupId>org.apache.maven.plugins</groupId>
70+
<artifactId>maven-jar-plugin</artifactId>
71+
<version>3.1.2</version>
72+
<configuration>
73+
<archive>
74+
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
75+
</archive>
76+
</configuration>
77+
</plugin>
78+
<plugin>
79+
<groupId>org.apache.maven.plugins</groupId>
80+
<artifactId>maven-gpg-plugin</artifactId>
81+
<version>1.6</version>
82+
<executions>
83+
<execution>
84+
<id>sign-artifacts</id>
85+
<phase>verify</phase>
86+
<goals>
87+
<goal>sign</goal>
88+
</goals>
89+
</execution>
90+
</executions>
91+
</plugin>
92+
</plugins>
93+
</build>
94+
<dependencies>
95+
</dependencies>
96+
</project>

0 commit comments

Comments
 (0)