mirror of
https://github.com/stleary/JSON-java.git
synced 2025-08-03 03:15:32 -04:00
Merge pull request #801 from johnjaylward/updateActionsForDeploy
Updates the pipeline to validate that packaging a jar works properly
This commit is contained in:
commit
996d3a5fad
14
.github/workflows/pipeline.yml
vendored
14
.github/workflows/pipeline.yml
vendored
@ -1,5 +1,5 @@
|
|||||||
# This workflow will build a Java project with Maven
|
# This workflow will build a Java project with Maven
|
||||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
|
# For more information see: https://docs.github.com/en/actions/learn-github-actions or https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
|
||||||
|
|
||||||
name: Java CI with Maven
|
name: Java CI with Maven
|
||||||
|
|
||||||
@ -37,13 +37,21 @@ jobs:
|
|||||||
mvn site -DgenerateReports=false -Dmaven.compiler.source=${{ matrix.java }} -Dmaven.compiler.target=${{ matrix.java }}
|
mvn site -DgenerateReports=false -Dmaven.compiler.source=${{ matrix.java }} -Dmaven.compiler.target=${{ matrix.java }}
|
||||||
- name: Upload Test Results ${{ matrix.java }}
|
- name: Upload Test Results ${{ matrix.java }}
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: Test Results ${{ matrix.java }}
|
name: Test Results ${{ matrix.java }}
|
||||||
path: target/surefire-reports/
|
path: target/surefire-reports/
|
||||||
- name: Upload Test Report ${{ matrix.java }}
|
- name: Upload Test Report ${{ matrix.java }}
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: Test Report ${{ matrix.java }}
|
name: Test Report ${{ matrix.java }}
|
||||||
path: target/site/
|
path: target/site/
|
||||||
|
- name: Package Jar ${{ matrix.java }}
|
||||||
|
run: mvn clean package -Dmaven.compiler.source=${{ matrix.java }} -Dmaven.compiler.target=${{ matrix.java }} -Dmaven.test.skip=true -Dmaven.site.skip=true
|
||||||
|
- name: Upload Package Results ${{ matrix.java }}
|
||||||
|
if: ${{ always() }}
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: Package Jar ${{ matrix.java }}
|
||||||
|
path: target/*.jar
|
||||||
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,6 +1,8 @@
|
|||||||
# ignore eclipse project files
|
# ignore eclipse project files
|
||||||
.project
|
.project
|
||||||
.classpath
|
.classpath
|
||||||
|
# ignore vscode files
|
||||||
|
.vscode
|
||||||
# ignore Intellij Idea project files
|
# ignore Intellij Idea project files
|
||||||
.idea
|
.idea
|
||||||
*.iml
|
*.iml
|
||||||
|
@ -7,6 +7,8 @@ JSON in Java [package org.json]
|
|||||||
===============================
|
===============================
|
||||||
|
|
||||||
[](https://mvnrepository.com/artifact/org.json/json)
|
[](https://mvnrepository.com/artifact/org.json/json)
|
||||||
|
[](https://github.com/stleary/JSON-java/actions/workflows/pipeline.yml)
|
||||||
|
[](https://github.com/stleary/JSON-java/actions/workflows/codeql-analysis.yml)
|
||||||
|
|
||||||
**[Click here if you just want the latest release jar file.](https://search.maven.org/remotecontent?filepath=org/json/json/20231013/json-20231013.jar)**
|
**[Click here if you just want the latest release jar file.](https://search.maven.org/remotecontent?filepath=org/json/json/20231013/json-20231013.jar)**
|
||||||
|
|
||||||
@ -24,7 +26,7 @@ Project goals include:
|
|||||||
* No external dependencies
|
* No external dependencies
|
||||||
* Fast execution and low memory footprint
|
* Fast execution and low memory footprint
|
||||||
* Maintain backward compatibility
|
* Maintain backward compatibility
|
||||||
* Designed and tested to use on Java versions 1.6 - 1.11
|
* Designed and tested to use on Java versions 1.8 - 17
|
||||||
|
|
||||||
The files in this package implement JSON encoders and decoders. The package can also convert between JSON and XML, HTTP headers, Cookies, and CDL.
|
The files in this package implement JSON encoders and decoders. The package can also convert between JSON and XML, HTTP headers, Cookies, and CDL.
|
||||||
|
|
||||||
|
32
pom.xml
32
pom.xml
@ -52,7 +52,6 @@
|
|||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>junit</groupId>
|
<groupId>junit</groupId>
|
||||||
@ -159,17 +158,34 @@
|
|||||||
<autoReleaseAfterClose>false</autoReleaseAfterClose>
|
<autoReleaseAfterClose>false</autoReleaseAfterClose>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.moditect</groupId>
|
||||||
|
<artifactId>moditect-maven-plugin</artifactId>
|
||||||
|
<version>1.0.0.Final</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>add-module-infos</id>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>add-module-info</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<jvmVersion>9</jvmVersion>
|
||||||
|
<module>
|
||||||
|
<moduleInfoSource>
|
||||||
|
module org.json {
|
||||||
|
exports org.json;
|
||||||
|
}
|
||||||
|
</moduleInfoSource>
|
||||||
|
</module>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-jar-plugin</artifactId>
|
<artifactId>maven-jar-plugin</artifactId>
|
||||||
<version>3.3.0</version>
|
<version>3.3.0</version>
|
||||||
<configuration>
|
|
||||||
<archive>
|
|
||||||
<manifestEntries>
|
|
||||||
<Automatic-Module-Name>org.json</Automatic-Module-Name>
|
|
||||||
</manifestEntries>
|
|
||||||
</archive>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user