Update parent and add actions.
This commit is contained in:
parent
776cbf6cdf
commit
790d69cc38
5 changed files with 96 additions and 7 deletions
18
.github/workflows/ci.yml
vendored
Normal file
18
.github/workflows/ci.yml
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
name: PullRequest
|
||||
|
||||
on: [pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: setup
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: 11
|
||||
- name: dependencies
|
||||
run: mvn -B -q dependency:go-offline
|
||||
- name: verify
|
||||
run: mvn -B verify
|
37
.github/workflows/release.yml
vendored
Normal file
37
.github/workflows/release.yml
vendored
Normal file
|
@ -0,0 +1,37 @@
|
|||
name: Release
|
||||
|
||||
on:
|
||||
workflow_dispatch: {}
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
token: ${{ secrets.GIT_ACTION_TOKEN }}
|
||||
- name: git-configure
|
||||
run: |
|
||||
git config user.email "actions@github.com"
|
||||
git config user.name "GitHub Actions"
|
||||
- name: setup
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: 11
|
||||
server-id: sonatype-nexus
|
||||
server-username: SERVER_USERNAME
|
||||
server-password: SERVER_PASSWORD
|
||||
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
|
||||
gpg-passphrase: GPG_PASSPHRASE
|
||||
- name: dependencies
|
||||
run: mvn -B -q dependency:go-offline
|
||||
- name: prepare
|
||||
run: mvn -B release:prepare
|
||||
- name: perform
|
||||
run: mvn -B release:perform
|
||||
env:
|
||||
SERVER_USERNAME: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
|
||||
SERVER_PASSWORD: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
|
||||
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
|
||||
|
28
.github/workflows/snapshot.yml
vendored
Normal file
28
.github/workflows/snapshot.yml
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
name: Snapshot
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'main'
|
||||
- '[1-9]+.[0-9]+.x'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: setup
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: 11
|
||||
server-id: sonatype-nexus
|
||||
server-username: SERVER_USERNAME
|
||||
server-password: SERVER_PASSWORD
|
||||
- name: dependencies
|
||||
run: mvn -B -q dependency:go-offline
|
||||
- name: deploy
|
||||
run: mvn -B deploy
|
||||
env:
|
||||
SERVER_USERNAME: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
|
||||
SERVER_PASSWORD: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
|
|
@ -2,9 +2,8 @@
|
|||
|
||||
## Features
|
||||
|
||||
### Preconfigured Appender
|
||||
### Available Appender
|
||||
|
||||
Buildin appender:
|
||||
* console format
|
||||
* Stackdriver format (with support for error reporting)
|
||||
|
||||
|
@ -94,9 +93,9 @@ logger:
|
|||
header: ${logger.request.header.header-name}
|
||||
```
|
||||
|
||||
### Add princial for request to MDC
|
||||
### Add principal for request to MDC
|
||||
|
||||
Confguration:
|
||||
Configuration:
|
||||
* *enabled*: enable HTTP principal filter (`true` is default)
|
||||
* *order*: order for [Ordered](https://github.com/micronaut-projects/micronaut-core/blob/master/core/src/main/java/io/micronaut/core/order/Ordered.java) ([ServerFilterPhase.SECURITY.after()](https://github.com/micronaut-projects/micronaut-core/blob/v2.0.1/http/src/main/java/io/micronaut/http/filter/ServerFilterPhase.java#L54) is default)
|
||||
* *path*: filter path (`/**` is default)
|
||||
|
|
13
pom.xml
13
pom.xml
|
@ -5,7 +5,7 @@
|
|||
<parent>
|
||||
<groupId>io.kokuwa</groupId>
|
||||
<artifactId>maven-parent</artifactId>
|
||||
<version>0.2.0</version>
|
||||
<version>0.2.3</version>
|
||||
<relativePath />
|
||||
</parent>
|
||||
|
||||
|
@ -13,8 +13,8 @@
|
|||
<artifactId>micronaut-logging</artifactId>
|
||||
<version>0.0.4-SNAPSHOT</version>
|
||||
|
||||
<name>Micronaut Logging Support</name>
|
||||
<description>TODO</description>
|
||||
<name>Logging support for Micronaut</name>
|
||||
<description>Endhanced logging using MDC or request header.</description>
|
||||
<url>https://github.com/kokuwaio/micronaut-logging</url>
|
||||
<inceptionYear>2020</inceptionYear>
|
||||
<licenses>
|
||||
|
@ -24,6 +24,13 @@
|
|||
</license>
|
||||
</licenses>
|
||||
|
||||
<developers>
|
||||
<developer>
|
||||
<name>Stephan Schnabel</name>
|
||||
<url>https://github.com/stephanschnabel</url>
|
||||
</developer>
|
||||
</developers>
|
||||
|
||||
<scm>
|
||||
<url>https://github.com/kokuwaio/micronaut-logging</url>
|
||||
<connection>scm:git:https://github.com/kokuwaio/micronaut-logging.git</connection>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue