Skip to content

Commit f4857b8

Browse files
authored
Merge pull request #14 from microsphere-projects/dev
Release 0.1.0
2 parents 1e1b940 + a42c9ea commit f4857b8

80 files changed

Lines changed: 6113 additions & 3 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/maven-build.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
3+
4+
# This workflow uses actions that are not certified by GitHub.
5+
# They are provided by a third-party and are governed by
6+
# separate terms of service, privacy policy, and support
7+
# documentation.
8+
9+
name: Maven Build
10+
11+
on:
12+
push:
13+
branches: [ 'dev' ]
14+
pull_request:
15+
branches: [ 'dev' , 'release' ]
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
strategy:
21+
matrix:
22+
java: [ '8', '11' , '17' , '21' ,' 25' ]
23+
steps:
24+
- name: Checkout Source
25+
uses: actions/checkout@v5
26+
27+
- name: Setup JDK ${{ matrix.Java }}
28+
uses: actions/setup-java@v5
29+
with:
30+
distribution: 'temurin'
31+
java-version: ${{ matrix.java }}
32+
cache: maven
33+
34+
- name: Build with Maven
35+
run: ./mvnw
36+
--batch-mode
37+
--update-snapshots
38+
--file pom.xml
39+
-Drevision=0.0.1-SNAPSHOT
40+
test
41+
--activate-profiles test,coverage
42+
43+
- name: Upload coverage reports to Codecov
44+
uses: codecov/codecov-action@v5
45+
with:
46+
token: ${{ secrets.CODECOV_TOKEN }}
47+
slug: microsphere-projects/microsphere-logging
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
3+
4+
# This workflow uses actions that are not certified by GitHub.
5+
# They are provided by a third-party and are governed by
6+
# separate terms of service, privacy policy, and support
7+
# documentation.
8+
9+
name: Maven Publish
10+
11+
on:
12+
push:
13+
branches: [ 'release' ]
14+
workflow_dispatch:
15+
inputs:
16+
revision:
17+
description: 'The version to publish'
18+
required: true
19+
default: '1.0.0-SNAPSHOT'
20+
21+
jobs:
22+
build:
23+
runs-on: ubuntu-latest
24+
if: ${{ inputs.revision }}
25+
steps:
26+
- name: Checkout Source
27+
uses: actions/checkout@v5
28+
29+
- name: Setup Maven Central Repository
30+
uses: actions/setup-java@v5
31+
with:
32+
java-version: '11'
33+
distribution: 'temurin'
34+
server-id: ossrh
35+
server-username: MAVEN_USERNAME
36+
server-password: MAVEN_PASSWORD
37+
cache: maven
38+
39+
- name: Publish package
40+
run: mvn
41+
--batch-mode
42+
--update-snapshots
43+
--file pom.xml
44+
-Drevision=${{ inputs.revision }}
45+
-Dgpg.skip=true
46+
deploy
47+
--activate-profiles publish,ci
48+
env:
49+
MAVEN_USERNAME: ${{ secrets.OSS_SONATYPE_USERNAME }}
50+
MAVEN_PASSWORD: ${{ secrets.OSS_SONATYPE_PASSWORD }}
51+
SIGN_KEY_ID: ${{ secrets.OSS_SIGNING_KEY_ID_LONG }}
52+
SIGN_KEY: ${{ secrets.OSS_SIGNING_KEY }}
53+
SIGN_KEY_PASS: ${{ secrets.OSS_SIGNING_PASSWORD }}

.gitignore

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,49 @@
2121

2222
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
2323
hs_err_pid*
24-
replay_pid*
24+
25+
# maven ignore
26+
target/
27+
!.mvn/wrapper/*
28+
29+
# eclipse ignore
30+
.settings/
31+
.project
32+
.classpath
33+
34+
# idea ignore
35+
.idea/
36+
.idea
37+
*.ipr
38+
*.iml
39+
*.iws
40+
41+
# temp ignore
42+
*.log
43+
*.cache
44+
*.diff
45+
*.patch
46+
*.tmp
47+
48+
# system ignore
49+
.DS_Store
50+
Thumbs.db
51+
*.orig
52+
53+
# flatten ignore
54+
.flattened-pom.xml
55+
56+
# license check result
57+
license-list
58+
59+
# grpc compiler
60+
compiler/gradle.properties
61+
compiler/build/*
62+
compiler/.gradle/*
63+
64+
# Tomcat
65+
.extract
66+
.java-version
67+
68+
# others
69+
build.txt
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
wrapperVersion=3.3.4
2+
distributionType=only-script
3+
distributionUrl=https://maven.aliyun.com/repository/public/org/apache/maven/apache-maven/3.9.9/apache-maven-3.9.9-bin.zip

CODE_OF_CONDUCT.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Contributor Code of Conduct
2+
3+
As contributors and maintainers of this project, and in the interest of
4+
fostering an open and welcoming community, we pledge to respect all people who
5+
contribute through reporting issues, posting feature requests, updating
6+
documentation, submitting pull requests or patches, and other activities.
7+
8+
We are committed to making participation in this project a harassment-free
9+
experience for everyone, regardless of level of experience, gender, gender
10+
identity and expression, sexual orientation, disability, personal appearance,
11+
body size, race, ethnicity, age, religion, or nationality.
12+
13+
Examples of unacceptable behavior by participants include:
14+
15+
* The use of sexualized language or imagery
16+
* Personal attacks
17+
* Trolling or insulting/derogatory comments
18+
* Public or private harassment
19+
* Publishing other's private information, such as physical or electronic
20+
addresses, without explicit permission
21+
* Other unethical or unprofessional conduct
22+
23+
Project maintainers have the right and responsibility to remove, edit, or
24+
reject comments, commits, code, wiki edits, issues, and other contributions
25+
that are not aligned to this Code of Conduct, or to ban temporarily or
26+
permanently any contributor for other behaviors that they deem inappropriate,
27+
threatening, offensive, or harmful.
28+
29+
By adopting this Code of Conduct, project maintainers commit themselves to
30+
fairly and consistently applying these principles to every aspect of managing
31+
this project. Project maintainers who do not follow or enforce the Code of
32+
Conduct may be permanently removed from the project team.
33+
34+
This Code of Conduct applies both within project spaces and in public spaces
35+
when an individual is representing the project or its community.
36+
37+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
38+
reported by contacting a project maintainer at [mercyblitz@gmail.com](mailto:mercyblitz@gmail.com). All
39+
complaints will be reviewed and investigated and will result in a response that
40+
is deemed necessary and appropriate to the circumstances. Maintainers are
41+
obligated to maintain confidentiality with regard to the reporter of an
42+
incident.
43+
44+
45+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
46+
version 1.3.0, available at https://www.contributor-covenant.org/version/1/3/0/code-of-conduct.html
47+
48+
[homepage]: https://www.contributor-covenant.org

0 commit comments

Comments
 (0)