Skip to content

Commit

Permalink
Try publishing parent pom
Browse files Browse the repository at this point in the history
  • Loading branch information
kokorin committed Nov 25, 2023
1 parent 1b47b21 commit 6a2a8c1
Show file tree
Hide file tree
Showing 8 changed files with 95 additions and 93 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/maven-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,21 @@ name: Release
on:
release:
types:
- released
- published

jobs:
release:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 7
distribution: 'adopt'
java-version: 8

- name: Set up Maven settings.xml to access Sonatype Nexus
run: |
Expand Down Expand Up @@ -47,4 +48,4 @@ jobs:
run: bash mvnw -B clean install

- name: Release
run: bash mvnw -B clean deploy -pl lombok-presence-checker -Prelease
run: bash mvnw -B clean deploy -Prelease
7 changes: 4 additions & 3 deletions .github/workflows/maven-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,16 @@ jobs:
strategy:
matrix:
lombok-version: ["1.18.16"]
java-version: [7, 8, 11, 14]
java-version: [8, 11, 14]
fail-fast: false

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: ${{ matrix.java-version }}

- name: Initialize
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Lombok extension which generates Presence Checker methods
<dependency>
<groupId>com.github.kokorin.lombok</groupId>
<artifactId>lombok-presence-checker</artifactId>
<version>0.0.1</version>
<version>0.0.2-SNAPSHOT</version>
<scope>provided</scope>
</dependency>

Expand All @@ -50,7 +50,7 @@ Lombok extension which generates Presence Checker methods
<path>
<groupId>com.github.kokorin.lombok</groupId>
<artifactId>lombok-presence-checker</artifactId>
<version>0.0.1</version>
<version>0.0.2-SNAPSHOT</version>
</path>
<path>
<groupId>org.mapstruct</groupId>
Expand Down
6 changes: 3 additions & 3 deletions lombok-presence-checker-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<groupId>com.github.kokorin.lombok</groupId>
<artifactId>lombok-presence-checker-example</artifactId>
<version>0.0.1</version>
<version>0.0.2-SNAPSHOT</version>

<description>Lombok Presence Checker example</description>

Expand Down Expand Up @@ -39,7 +39,7 @@
<dependency>
<groupId>com.github.kokorin.lombok</groupId>
<artifactId>lombok-presence-checker</artifactId>
<version>0.0.1</version>
<version>0.0.2-SNAPSHOT</version>
<scope>provided</scope>
</dependency>

Expand Down Expand Up @@ -83,7 +83,7 @@
<path>
<groupId>com.github.kokorin.lombok</groupId>
<artifactId>lombok-presence-checker</artifactId>
<version>0.0.1</version>
<version>0.0.2-SNAPSHOT</version>
</path>
<path>
<groupId>org.mapstruct</groupId>
Expand Down
4 changes: 2 additions & 2 deletions lombok-presence-checker-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>lombok-presence-checker-parent</artifactId>
<groupId>com.github.kokorin.lombok</groupId>
<version>0.0.1</version>
<version>0.0.2-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down Expand Up @@ -51,7 +51,7 @@
<path>
<groupId>com.github.kokorin.lombok</groupId>
<artifactId>lombok-presence-checker</artifactId>
<version>0.0.1</version>
<version>0.0.2-SNAPSHOT</version>
</path>
<path>
<groupId>org.mapstruct</groupId>
Expand Down
76 changes: 1 addition & 75 deletions lombok-presence-checker/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>lombok-presence-checker-parent</artifactId>
<groupId>com.github.kokorin.lombok</groupId>
<version>0.0.1</version>
<version>0.0.2-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down Expand Up @@ -55,80 +55,6 @@
</dependency>
</dependencies>

<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
<configuration>
<excludes>
<!-- Exclude shadowed classes -->
<exclude>com/github/kokorin/lombok/javac/**</exclude>
<exclude>lombok/**</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9.1</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
<configuration>
<additionalparam>-Xdoclint:none</additionalparam>
<!-- Exclude shadowed classes -->
<excludePackageNames>com.github.kokorin.lombok.javac,lombok.javac</excludePackageNames>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.7</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<build>
<plugins>
<plugin>
Expand Down
2 changes: 1 addition & 1 deletion lombok-unshaded/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>lombok-presence-checker-parent</artifactId>
<groupId>com.github.kokorin.lombok</groupId>
<version>0.0.1</version>
<version>0.0.2-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
78 changes: 76 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<groupId>com.github.kokorin.lombok</groupId>
<artifactId>lombok-presence-checker-parent</artifactId>
<packaging>pom</packaging>
<version>0.0.1</version>
<version>0.0.2-SNAPSHOT</version>

<name>lombok-presence-checker</name>
<description>Lombok extension which generates Presence Checker methods</description>
Expand Down Expand Up @@ -67,7 +67,7 @@
<dependency>
<groupId>com.github.kokorin.lombok</groupId>
<artifactId>lombok-presence-checker</artifactId>
<version>0.0.1</version>
<version>0.0.2-SNAPSHOT</version>
<scope>provided</scope>
</dependency>

Expand Down Expand Up @@ -114,4 +114,78 @@
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
<configuration>
<excludes>
<!-- Exclude shadowed classes -->
<exclude>com/github/kokorin/lombok/javac/**</exclude>
<exclude>lombok/**</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9.1</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
<configuration>
<additionalparam>-Xdoclint:none</additionalparam>
<!-- Exclude shadowed classes -->
<excludePackageNames>com.github.kokorin.lombok.javac,lombok.javac</excludePackageNames>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.7</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

0 comments on commit 6a2a8c1

Please sign in to comment.