-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'Nolij:master' into master
- Loading branch information
Showing
10 changed files
with
290 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: build | ||
on: [ push ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: temurin | ||
java-version: 17 | ||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v3 | ||
with: | ||
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }} | ||
- name: :build | ||
run: ./gradlew build -x test --stacktrace | ||
- name: :test | ||
run: ./gradlew test --stacktrace | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ZSON | ||
path: "**/zson-*.jar" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: "DCO Assistant" | ||
on: | ||
issue_comment: | ||
types: [created] | ||
pull_request_target: | ||
types: [opened, closed, synchronize] | ||
|
||
permissions: | ||
actions: write | ||
contents: write | ||
pull-requests: write | ||
statuses: write | ||
|
||
jobs: | ||
DCO: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "DCO Assistant" | ||
if: ( | ||
github.event.comment.body == 'recheck' || | ||
github.event.comment.body == 'I have read and hereby affirm the entire contents of the Developer Certificate of Origin.' | ||
) || github.event_name == 'pull_request_target' | ||
uses: cla-assistant/github-action@v2.3.0 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
path-to-signatures: "signatures.json" | ||
path-to-document: "https://github.com/Nolij/ZSON/blob/dco/DCO.txt" | ||
branch: "dco" | ||
create-file-commit-message: "Create DCO signature list" | ||
signed-commit-message: "Add $contributorName to the DCO signature list" | ||
custom-notsigned-prcomment: | ||
"Before we can merge your submission, we require that you read and affirm the contents of the | ||
[Developer Certificate of Origin](https://github.com/Nolij/ZSON/blob/dco/DCO.txt) by adding a comment containing the below text. | ||
Otherwise, please close this PR." | ||
custom-pr-sign-comment: "I have read and hereby affirm the entire contents of the Developer Certificate of Origin." | ||
custom-allsigned-prcomment: "All contributors have read and affirmed the entire contents of the Developer Certificate of Origin." | ||
use-dco-flag: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: pull_request | ||
on: [ pull_request ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: temurin | ||
java-version: 17 | ||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v3 | ||
with: | ||
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY_PR }} | ||
cache-read-only: true | ||
- name: :build | ||
run: ./gradlew build -x test --stacktrace | ||
- name: :test | ||
run: ./gradlew test --stacktrace | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ZSON | ||
path: "**/zson-*.jar" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: release | ||
on: [ workflow_dispatch ] | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
fetch-tags: true | ||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: temurin | ||
java-version: 17 | ||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v3 | ||
with: | ||
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }} | ||
cache-read-only: true | ||
- name: :release | ||
run: ./gradlew githubRelease -Prelease_channel=RELEASE | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GRGIT_USER: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env groovy | ||
|
||
pipeline { | ||
agent any | ||
|
||
tools { | ||
jdk "jdk-21" | ||
} | ||
|
||
stages { | ||
stage("Setup") { | ||
steps { | ||
sh "chmod +x gradlew" | ||
} | ||
} | ||
|
||
stage(":publish") { | ||
steps { | ||
sh "./gradlew publish -Pexternal_publish=true" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,14 @@ | ||
# IMPORTANT LICENSE NOTICE | ||
|
||
By using this project in any form, you hereby give your "express assent" for the terms of the license of this | ||
project (see [License](#license)), and acknowledge that I (the author of this project) have fulfilled my obligation | ||
under the license to "make a reasonable effort under the circumstances to obtain the express assent of recipients to | ||
the terms of this License". | ||
|
||
# ZSON | ||
|
||
a tiny JSON5 parsing library for Java 8, with a focus on simplicity and minimizing size. | ||
A tiny JSON5 parsing library for Java 8, with a focus on simplicity and minimizing size. | ||
|
||
## License | ||
|
||
This project is licensed under OSL-3.0. For more information, see [LICENSE](LICENSE). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,18 @@ | ||
pluginManagement { | ||
repositories { | ||
gradlePluginPortal { | ||
content { | ||
excludeGroup("org.apache.logging.log4j") | ||
} | ||
} | ||
} | ||
} | ||
|
||
plugins { | ||
id("org.gradle.toolchains.foojay-resolver-convention") version "0.5.0" | ||
id("org.gradle.toolchains.foojay-resolver-convention") version("0.7.0") | ||
id("org.ajoberstar.grgit") version("5.2.2") apply(false) | ||
id("com.github.breadmoirai.github-release") version("2.4.1") apply(false) | ||
} | ||
rootProject.name = "ZSON" | ||
|
||
rootProject.name = "zson" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters