Skip to content
This repository has been archived by the owner on Jan 5, 2025. It is now read-only.

Commit

Permalink
Initial import
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalijr2 committed Jul 15, 2024
0 parents commit ca8a627
Show file tree
Hide file tree
Showing 23 changed files with 2,698 additions and 0 deletions.
1,220 changes: 1,220 additions & 0 deletions .editorconfig

Large diffs are not rendered by default.

68 changes: 68 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Bug report
description: Create a report to help me improve
labels:
- bug
assignees: [ "vitalijr2" ]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report!
**Before opening a new issue**, make sure to search for keywords in the issues
filtered by the "bug" label:
* https://github.com/vitalijr2/mock-jdk-platform-logging/issues?q=is%3Aissue+label%3Abug+
and verify the issue you're about to submit isn't a duplicate.
- type: input
id: summary
validations:
required: true
attributes:
label: Summary
description: A clear and concise description of what the bug is.
- type: textarea
id: what-happened
validations:
required: true
attributes:
label: What is the current bug behavior?
description: Describe what actually happens.
placeholder: Tell us what you do and what you see!
- type: textarea
id: steps
attributes:
label: Steps to reproduce
value: |
1. ...
2. ...
3. ...
...
- type: textarea
id: expected
validations:
required: true
attributes:
label: What is the expected correct behavior?
description: Describe what you should see instead.
placeholder: Tell us what you expected to get!
- type: textarea
id: misc
attributes:
label: Additional context
description: Add any other context about the problem here.
- type: textarea
id: fixes
attributes:
label: Possible fixes
description: If you can, link to the line of code that might be responsible for the problem.
- type: markdown
attributes:
value: |
Paste any relevant logs - please use code blocks (```)
to format console output, logs, and code as it's tough
to read otherwise.
**Do not attach ZIP files** of your code or compiled projects - instead,
please publish your code to a public GitHub repo & post a link to it.
44 changes: 44 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Feature request
description: Suggest an idea for this project
labels:
- enhancement
assignees: [ "vitalijr2" ]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this feature request!
**Before opening a new issue**, make sure to search for keywords in the issues
filtered by the "enhancement" and "suggestion" labels:
* https://github.com/vitalijr2/mock-jdk-platform-logging/issues?q=is%3Aissue+label%3Aenhancement+
* https://github.com/vitalijr2/mock-jdk-platform-logging/issues?q=is%3Aissue+label%3Asuggestion+
and verify the issue you're about to submit isn't a duplicate.
- type: input
id: summary
validations:
required: true
attributes:
label: Summary
description: A clear and concise description of what the bug is.
- type: textarea
id: expected
validations:
required: true
attributes:
label: What is the expected correct behavior?
description: Describe what you should see instead.
placeholder: Tell us what you expected to get!
- type: textarea
id: implementation
attributes:
label: Possible implementations
description: If you can, link to the line of code that might be responsible for the feature.
- type: markdown
attributes:
value: |
Paste any relevant logs - please use code blocks (```)
to format console output, logs, and code as it's tough
to read otherwise.
3 changes: 3 additions & 0 deletions .github/funding.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
custom: [ "https://buymeacoffee.com/vitalij_r2", "https://send.monobank.ua/jar/9r5bd6ejUC?f=enabled&t=mock-jdk-platform-logging", "https://next.privat24.ua/send/cblin", "https://mobile-app.pumb.ua/NaHVnD3xDZh1mscq7" ]
ko_fi: vitalij_r2
liberapay: vitalij_r2
72 changes: 72 additions & 0 deletions .github/workflows/codacy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: "Codacy"

on:
push:
branches: [ "**" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "**" ]

jobs:
build:
name: Maven build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Java JDK
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: 11
- name: Build with Maven
run: ./mvnw --batch-mode
- name: Temporarily save target and test requests
uses: actions/upload-artifact@master
with:
name: tests-and-target
path: |
core/target
logger/target
json-logger/target
retention-days: 1
codacy-security-scan:
name: Codacy Security Scan
needs: build
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run Codacy Analysis CLI
uses: codacy/codacy-analysis-cli-action@v4.4.1
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
verbose: true
output: results.sarif
format: sarif
gh-code-scanning-compat: true
- name: Upload SARIF results file
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: results.sarif
codacy-coverage-reporter:
name: Codacy Coverage Reporter
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Retrieve saved test requests and target
uses: actions/download-artifact@master
with:
name: tests-and-target
path: .
- name: Run codacy-coverage-reporter
uses: codacy/codacy-coverage-reporter-action@v1.3.0
with:
coverage-reports: core/target/site/jacoco/jacoco.xml,logger/target/site/jacoco/jacoco.xml,json-logger/target/site/jacoco/jacoco.xml
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
40 changes: 40 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: "CodeQL"

on:
push:
branches: [ "**" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "**" ]

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'java' ]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Java JDK
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: 11
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
- name: Autobuild
uses: github/codeql-action/autobuild@v3
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
29 changes: 29 additions & 0 deletions .github/workflows/sonatype.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: "Publish artifacts"

on:
release:
types: [ created ]

jobs:
publish:
name: Publish to Maven Central
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
actions: read
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Java JDK
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: 11
- name: Build and publish with Maven
env:
SIGN_KEY: ${{ secrets.SIGN_KEY }}
SIGN_KEY_PASS: ${{ secrets.SIGN_KEY_PASS }}
SONATYPE_TOKEN_USERNAME: ${{ secrets.SONATYPE_TOKEN_USERNAME }}
SONATYPE_TOKEN_PASSWORD: ${{ secrets.SONATYPE_TOKEN_PASSWORD }}
run: ./mvnw --batch-mode -s .mvn/ci_settings.xml -pl core,logger,json-logger,. -am -ntp -DskipTests -Prelease
54 changes: 54 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
#Maven
target/
pom.xml.tag
pom.xml.releaseBackup
pom.xml.versionsBackup
release.properties
.flattened-pom.xml

# GitHub actions
results.sarif

### IntelliJ IDEA ###
.idea
*.iml
*.ipr
*.iws

### Eclipse ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
bin/

### NetBeans ###
nb-configuration.xml
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
!**/src/main/**/build/
!**/src/test/**/build/

### VS Code ###
.vscode

### Mac OS ###
.DS_Store

# Vim
*.swp
*.swo

# patch
*.orig
*.rej

# Local environment
.env
12 changes: 12 additions & 0 deletions .mvn/ci_settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>central</id>
<username>${env.SONATYPE_TOKEN_USERNAME}</username>
<password>${env.SONATYPE_TOKEN_PASSWORD}</password>
</server>
</servers>
</settings>
7 changes: 7 additions & 0 deletions .mvn/maven.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
--fail-at-end
--show-version
-Djava.awt.headless=true
-DinstallAtEnd=true
-DdeployAtEnd=true
-Dhttps.protocols=TLSv1.2
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN
1 change: 1 addition & 0 deletions .mvn/wrapper/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
maven-wrapper.jar
Loading

0 comments on commit ca8a627

Please sign in to comment.