Skip to content

Commit c427e49

Browse files
authored
Merge pull request #3 from soujava/moving-to-soujava
Moving project from ArrudaLabs to SouJava
2 parents 7d8b7b1 + dbe3288 commit c427e49

29 files changed

Lines changed: 108 additions & 123 deletions

File tree

.github/workflows/java-11.yml

Lines changed: 31 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -20,37 +20,42 @@ name: Java 11 CI with Maven
2020
on:
2121
push:
2222
branches: [ main ]
23+
# Each pull request is important to us, doesn't matter from which branch.
24+
# Furthermore, we do not want to build on just the default GitHub Action
25+
# events, we also want to react onto `labeled` events for our extended
26+
# build execution
2327
pull_request:
24-
branches: [ main ]
28+
types: [ labeled, opened, synchronize, reopened ]
2529

2630
jobs:
2731
build:
2832

2933
runs-on: ubuntu-latest
3034

3135
steps:
32-
- uses: actions/checkout@v3
33-
- name: Set up JDK 11
34-
uses: actions/setup-java@v3
35-
with:
36-
distribution: 'temurin'
37-
java-version: 11
38-
overwrite-settings: false
39-
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
40-
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}
41-
42-
- name: Cache local Maven repository
43-
uses: actions/cache@v3
44-
with:
45-
path: ~/.m2/repository
46-
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
47-
restore-keys: |
48-
${{ runner.os }}-maven
49-
50-
- name: Build with Maven
51-
run: mvn -B verify -P run-its -s settings.xml --file pom.xml
52-
env:
53-
SERVER_ID: ossrh
54-
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
55-
MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }}
56-
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
36+
- uses: actions/checkout@v3
37+
- name: Set up JDK 11
38+
uses: actions/setup-java@v3
39+
with:
40+
distribution: 'temurin'
41+
java-version: 11
42+
server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml
43+
server-username: MAVEN_USERNAME # env variable for username in deploy
44+
server-password: MAVEN_CENTRAL_TOKEN # env variable for token in deploy
45+
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
46+
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
47+
48+
- name: Cache local Maven repository
49+
uses: actions/cache@v3
50+
with:
51+
path: ~/.m2/repository
52+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
53+
restore-keys: |
54+
${{ runner.os }}-maven
55+
56+
- name: Build with Maven
57+
run: mvn -B verify -P run-its
58+
env:
59+
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
60+
MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }}
61+
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}

.github/workflows/release-snapshot.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,22 +34,23 @@ jobs:
3434
with:
3535
distribution: 'temurin'
3636
java-version: 11
37-
overwrite-settings: false
38-
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
39-
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}
40-
37+
server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml
38+
server-username: MAVEN_USERNAME # env variable for username in deploy
39+
server-password: MAVEN_CENTRAL_TOKEN # env variable for token in deploy
40+
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
41+
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
42+
4143
- name: Cache local Maven repository
4244
uses: actions/cache@v3
4345
with:
4446
path: ~/.m2/repository
4547
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
4648
restore-keys: |
4749
${{ runner.os }}-maven
48-
50+
4951
- name: Build with Maven and Deploy SNAPSHOT
50-
run: mvn -B clean deploy -P release -s settings.xml --file pom.xml
52+
run: mvn -B clean deploy -P release
5153
env:
52-
SERVER_ID: ossrh
5354
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
5455
MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }}
55-
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
56+
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}

.github/workflows/release.yml

Lines changed: 32 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -26,33 +26,35 @@ jobs:
2626
runs-on: ubuntu-latest
2727

2828
steps:
29-
- uses: actions/checkout@v3
30-
- name: Set up JDK 11
31-
uses: actions/setup-java@v3
32-
with:
33-
distribution: 'temurin'
34-
java-version: 11
35-
overwrite-settings: false
36-
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
37-
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}
38-
39-
- name: Cache local Maven repository
40-
uses: actions/cache@v3
41-
with:
42-
path: ~/.m2/repository
43-
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
44-
restore-keys: |
45-
${{ runner.os }}-maven
46-
- name: Setting up git config
47-
run: |
48-
git config --global user.name "GitHub"
49-
git config --global user.email "noreply@github.com"
50-
51-
- name: Build with Maven and Deploy To Maven Central Repository
52-
run: mvn -B release:prepare release:perform -s settings.xml --file pom.xml
53-
env:
54-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
55-
SERVER_ID: ossrh
56-
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
57-
MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }}
58-
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
29+
- uses: actions/checkout@v3
30+
- name: Set up JDK 11
31+
uses: actions/setup-java@v3
32+
with:
33+
distribution: 'temurin'
34+
java-version: 11
35+
server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml
36+
server-username: MAVEN_USERNAME # env variable for username in deploy
37+
server-password: MAVEN_CENTRAL_TOKEN # env variable for token in deploy
38+
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
39+
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
40+
41+
- name: Cache local Maven repository
42+
uses: actions/cache@v3
43+
with:
44+
path: ~/.m2/repository
45+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
46+
restore-keys: |
47+
${{ runner.os }}-maven
48+
49+
- name: Setting up git config
50+
run: |
51+
git config --global user.name "GitHub"
52+
git config --global user.email "noreply@github.com"
53+
54+
- name: Build with Maven and Deploy To Maven Central Repository
55+
run: mvn -B release:prepare release:perform
56+
env:
57+
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
58+
MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }}
59+
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
60+

CHANGELOG.adoc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,19 @@ and this project adheres to https://semver.org/spec/v2.0.0.html[Semantic Version
1515

1616
=== Changes
1717
- Updated README documentation;
18+
- Moved project from ArrudaLabs to SouJava
19+
20+
21+
== [0.0.3-SNAPSHOT]
22+
23+
=== Added
24+
- Added CHANGELOG documentation;
25+
- Added CONTRIBUTING guide;
26+
- Added issues templates;
27+
28+
=== Changes
29+
- Updated README documentation;
30+
- Moved project from ArrudaLabs to SouJava
1831

1932
== [0.0.2] 2023-03-23T23:46:43Z
2033

pom.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,20 @@
1818
<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">
1919
<modelVersion>4.0.0</modelVersion>
2020

21-
<groupId>io.github.arrudalabs</groupId>
21+
<groupId>br.org.soujava</groupId>
2222
<artifactId>pom-editor-maven-plugin</artifactId>
2323
<version>0.0.3-SNAPSHOT</version>
2424
<packaging>maven-plugin</packaging>
2525

2626
<organization>
27-
<name>ArrudaLabs</name>
28-
<url>https://github.com/arrudalabs</url>
27+
<name>SouJava</name>
28+
<url>https://soujava.org.br</url>
2929
</organization>
3030

3131
<scm>
3232
<connection>scm:git:${project.scm.url}</connection>
3333
<developerConnection>scm:git:${project.scm.url}</developerConnection>
34-
<url>https://github.com/arrudalabs/pom-editor-maven-plugin.git</url><!-- it's required by release processes -->
34+
<url>https://github.com/soujava/pom-editor-maven-plugin.git</url><!-- it's required by release processes -->
3535
<tag>HEAD</tag>
3636
</scm>
3737

@@ -45,7 +45,7 @@
4545
<name>POM Editor Maven Plugin</name>
4646
<description>It's a Maven Plugin to allowing POM editions</description>
4747

48-
<url>https://arrudalabs.github.io/pom-editor-maven-plugin</url>
48+
<url>https://soujava.github.io/pom-editor-maven-plugin</url>
4949

5050
<licenses>
5151
<license>
@@ -656,7 +656,7 @@
656656
<distributionManagement>
657657
<site>
658658
<id>github</id>
659-
<url>scm:git:ssh://git@github.com/arrudalabs/pom-editor-maven-plugin.git</url>
659+
<url>scm:git:ssh://git@github.com/soujava/pom-editor-maven-plugin.git</url>
660660
</site>
661661
<snapshotRepository>
662662
<id>ossrh</id>

settings.xml

Lines changed: 0 additions & 30 deletions
This file was deleted.

src/main/java/io/github/arrudalabs/pomeditor/AddDependencyMojo.java renamed to src/main/java/br/org/soujava/pomeditor/AddDependencyMojo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package io.github.arrudalabs.pomeditor;
17+
package br.org.soujava.pomeditor;
1818

1919
import org.apache.maven.plugin.AbstractMojo;
2020
import org.apache.maven.plugin.MojoExecutionException;

src/main/java/io/github/arrudalabs/pomeditor/CommitMojo.java renamed to src/main/java/br/org/soujava/pomeditor/CommitMojo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package io.github.arrudalabs.pomeditor;
17+
package br.org.soujava.pomeditor;
1818

1919
import org.apache.maven.plugin.AbstractMojo;
2020
import org.apache.maven.plugin.MojoExecutionException;

src/main/java/io/github/arrudalabs/pomeditor/Dependency.java renamed to src/main/java/br/org/soujava/pomeditor/Dependency.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package io.github.arrudalabs.pomeditor;
17+
package br.org.soujava.pomeditor;
1818

1919
import java.util.Arrays;
2020
import java.util.Objects;

src/main/java/io/github/arrudalabs/pomeditor/DependencyBuilder.java renamed to src/main/java/br/org/soujava/pomeditor/DependencyBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package io.github.arrudalabs.pomeditor;
17+
package br.org.soujava.pomeditor;
1818

1919
/**
2020
* Builder for Dependency

0 commit comments

Comments
 (0)