Skip to content

Commit

Permalink
Published to Maven Central
Browse files Browse the repository at this point in the history
  • Loading branch information
Synt4xErr0r4 committed May 28, 2024
1 parent 386a5ad commit 6f28558
Show file tree
Hide file tree
Showing 3 changed files with 93 additions and 37 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
build.sh
deploy*.sh

# Compiled class file
*.class
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ This is a reference implementation, capable of parsing JSON5 data according to t

In order to use the code, you can either [download the jar](https://github.com/Synt4xErr0r4/json5/releases/download/2.0.0/json5-2.0.0.jar), or use the Maven dependency:

*Note:* Starting with version 2.0.0, the Maven dependency is now also available from [Maven Central](https://central.sonatype.com/artifact/at.syntaxerror/json5/2.0.0).

```xml
<!-- Repository -->

Expand Down
127 changes: 90 additions & 37 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>at.syntaxerror</groupId>
<artifactId>json5</artifactId>
<version>2.0.0</version>
<packaging>jar</packaging>

<name>JSON5 for Java</name>
<description>A JSON5 Library for Java</description>
<url>https://github.com/Synt4xErr0r4/json5</url>

<licenses>
<license>
Expand All @@ -15,7 +18,7 @@
<distribution>repo</distribution>
</license>
</licenses>

<developers>
<developer>
<id>syntaxerror404</id>
Expand All @@ -25,36 +28,35 @@
<timezone>Europe/Vienna</timezone>
</developer>
</developers>

<scm>
<connection>scm:git:git://github.com/Synt4xErr0r4/json5.git</connection>
<url>http://github.com/Synt4xErr0r4/json5</url>
</scm>

<issueManagement>
<system>GitHub Issues</system>
<url>https://github.com/Synt4xErr0r4/json5/issues</url>
</issueManagement>

<build>
<sourceDirectory>src/main/java</sourceDirectory>

<plugins>
<plugin>
<groupId>org.projectlombok</groupId>
<artifactId>lombok-maven-plugin</artifactId>
<version>1.18.20.0</version>
<configuration>
<encoding>UTF-8</encoding>
<sourceDirectory>src/main/java</sourceDirectory>
<outputDirectory>target/delombok</outputDirectory>
</configuration>
</plugin>
<groupId>org.projectlombok</groupId>
<artifactId>lombok-maven-plugin</artifactId>
<version>1.18.20.0</version>
<configuration>
<encoding>UTF-8</encoding>
<sourceDirectory>src/main/java</sourceDirectory>
<outputDirectory>target/delombok</outputDirectory>
<addOutputDirectory>false</addOutputDirectory>
</configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>target/delombok</source>
<release>11</release>
<compilerArgs></compilerArgs>
<annotationProcessorPaths>
Expand All @@ -71,6 +73,7 @@
<version>3.3.0</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>aggregate-jar</goal>
</goals>
Expand All @@ -91,36 +94,86 @@
</execution>
</executions>
</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>
</plugins>
<extensions>
<extension>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-ftp</artifactId>
<version>3.2.0</version>
</extension>
</extensions>
<extensions>
<extension>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-ftp</artifactId>
<version>3.2.0</version>
</extension>
</extensions>
</build>

<dependencies>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>5.7.2</version>
<scope>test</scope>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>5.7.2</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.20</version>
<scope>provided</scope>
</dependency>
</dependencies>

<distributionManagement>
<repository>
<id>syntaxerror.at</id>
<url>${env.FTP_URL}</url>
</repository>
</distributionManagement>

<profiles>
<profile>
<id>repo-syntaxerror</id>
<distributionManagement>
<repository>
<id>syntaxerror.at</id>
<url>${env.FTP_URL}</url>
</repository>
</distributionManagement>
</profile>
<profile>
<id>repo-central</id>
<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
<build>
<plugins>
<plugin>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>0.4.0</version>
<extensions>true</extensions>
<configuration>
<publishingServerId>central</publishingServerId>
<tokenAuth>true</tokenAuth>
<autoPublish>true</autoPublish>
<waitUntil>uploaded</waitUntil>
<checksums>all</checksums>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>

</project>

0 comments on commit 6f28558

Please sign in to comment.