Skip to content

Commit

Permalink
Update version to first official release and fix deployment pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
BjoernLoetters committed Feb 2, 2025
1 parent ab910a5 commit f7cceb7
Show file tree
Hide file tree
Showing 6 changed files with 126 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
run: mvn versions:set -DnewVersion=${{ github.event.release.tag_name }}

- name: Publish package
run: mvn --batch-mode deploy -DaltDeploymentRepository=maven-central::default::https://central.sonatype.com/api/publish/maven -DskipTests
run: mvn -pl core --batch-mode deploy -DaltDeploymentRepository=maven-central::default::https://central.sonatype.com/api/publish/maven -DskipTests
env:
MAVEN_USERNAME: ${{ secrets.CENTRAL_TOKEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.CENTRAL_TOKEN_PASSWORD }}
Expand Down
54 changes: 39 additions & 15 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,37 @@
<parent>
<groupId>io.github.bjoernloetters</groupId>
<artifactId>jjparse</artifactId>
<version>1.1.3-beta</version>
<version>1.0.0</version>
</parent>

<artifactId>jjparse-core</artifactId>
<packaging>jar</packaging>

<name>${project.parent.name} - Core</name>
<description>${project.parent.description}</description>
<url>${project.parent.url}</url>

<licenses>
<license>
<name>MIT License</name>
<url>http://www.opensource.org/licenses/mit-license.php</url>
</license>
</licenses>

<developers>
<developer>
<id>BjoernLoetters</id>
<name>Björn Lötters</name>
<email>mail@bjoernloetters.com</email>
</developer>
</developers>

<scm>
<connection>${project.parent.scm.connection}</connection>
<developerConnection>${project.parent.scm.developerConnection}</developerConnection>
<url>${project.parent.scm.url}</url>
</scm>

<build>
<plugins>
<plugin>
Expand Down Expand Up @@ -44,6 +69,19 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.3.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
Expand All @@ -64,20 +102,6 @@
</gpgArguments>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.3.1</version>
<executions>
<execution>
<id>attach-sources</id>
<phase>verify</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down
27 changes: 26 additions & 1 deletion documentation/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,33 @@
<parent>
<groupId>io.github.bjoernloetters</groupId>
<artifactId>jjparse</artifactId>
<version>1.1.3-beta</version>
<version>1.0.0</version>
</parent>

<name>${project.parent.name} - Documentation</name>
<description>${project.parent.description}</description>
<url>${project.parent.url}</url>

<licenses>
<license>
<name>MIT License</name>
<url>http://www.opensource.org/licenses/mit-license.php</url>
</license>
</licenses>

<developers>
<developer>
<id>BjoernLoetters</id>
<name>Björn Lötters</name>
<email>mail@bjoernloetters.com</email>
</developer>
</developers>

<scm>
<connection>${project.parent.scm.connection}</connection>
<developerConnection>${project.parent.scm.developerConnection}</developerConnection>
<url>${project.parent.scm.url}</url>
</scm>

<artifactId>jjparse-documentation</artifactId>
</project>
27 changes: 26 additions & 1 deletion examples/json/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,33 @@
<parent>
<groupId>io.github.bjoernloetters</groupId>
<artifactId>jjparse-examples</artifactId>
<version>1.1.3-beta</version>
<version>1.0.0</version>
</parent>

<name>${project.parent.name} - Examples - JSON</name>
<description>${project.parent.description}</description>
<url>${project.parent.url}</url>

<licenses>
<license>
<name>MIT License</name>
<url>http://www.opensource.org/licenses/mit-license.php</url>
</license>
</licenses>

<developers>
<developer>
<id>BjoernLoetters</id>
<name>Björn Lötters</name>
<email>mail@bjoernloetters.com</email>
</developer>
</developers>

<scm>
<connection>${project.parent.scm.connection}</connection>
<developerConnection>${project.parent.scm.developerConnection}</developerConnection>
<url>${project.parent.scm.url}</url>
</scm>

<artifactId>jjparse-example-json</artifactId>
</project>
29 changes: 27 additions & 2 deletions examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,37 @@
<parent>
<groupId>io.github.bjoernloetters</groupId>
<artifactId>jjparse</artifactId>
<version>1.1.3-beta</version>
<version>1.0.0</version>
</parent>

<artifactId>jjparse-examples</artifactId>
<packaging>pom</packaging>

<name>${project.parent.name} - Examples</name>
<description>${project.parent.description}</description>
<url>${project.parent.url}</url>

<licenses>
<license>
<name>MIT License</name>
<url>http://www.opensource.org/licenses/mit-license.php</url>
</license>
</licenses>

<developers>
<developer>
<id>BjoernLoetters</id>
<name>Björn Lötters</name>
<email>mail@bjoernloetters.com</email>
</developer>
</developers>

<scm>
<connection>${project.parent.scm.connection}</connection>
<developerConnection>${project.parent.scm.developerConnection}</developerConnection>
<url>${project.parent.scm.url}</url>
</scm>

<modules>
<module>json</module>
</modules>
Expand All @@ -21,7 +46,7 @@
<dependency>
<groupId>io.github.bjoernloetters</groupId>
<artifactId>jjparse-core</artifactId>
<version>1.1.3-beta</version>
<version>${project.version}</version>
</dependency>
</dependencies>
</project>
15 changes: 7 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

<groupId>io.github.bjoernloetters</groupId>
<artifactId>jjparse</artifactId>
<version>1.1.3-beta</version>
<version>1.0.0</version>
<packaging>pom</packaging>

<name>${project.groupId}:${project.artifactId}</name>
<name>Jar Jar Parse</name>
<description>A lightweight but fully typed library for parser combinators in Java.</description>
<url>https://github.com/BjoernLoetters/Jar-Jar-Parse</url>

Expand All @@ -20,12 +20,11 @@
</license>
</licenses>

<distributionManagement>
<repository>
<id>maven-central</id>
<url>https://central.sonatype.com/api/publish/maven</url>
</repository>
</distributionManagement>
<scm>
<connection>scm:git:git://github.com/BjoernLoetters/Jar-Jar-Parse.git</connection>
<developerConnection>scm:git:ssh://github.com/BjoernLoetters/Jar-Jar-Parse.git</developerConnection>
<url>http://github.com/BjoernLoetters/Jar-Jar-Parse/tree/main</url>
</scm>

<developers>
<developer>
Expand Down

0 comments on commit f7cceb7

Please sign in to comment.