Migrate to kokuwa parent #174
9 changed files with 140 additions and 417 deletions
10
.github/dependabot.yml
vendored
10
.github/dependabot.yml
vendored
|
@ -2,14 +2,9 @@ version: 2
|
||||||
updates:
|
updates:
|
||||||
- package-ecosystem: maven
|
- package-ecosystem: maven
|
||||||
directory: /
|
directory: /
|
||||||
open-pull-requests-limit: 20
|
|
||||||
schedule:
|
schedule:
|
||||||
interval: monthly
|
interval: monthly
|
||||||
day: monday
|
day: monday
|
||||||
# github parses time without quotes to int
|
|
||||||
# yamllint disable-line rule:quoted-strings
|
|
||||||
time: "09:00"
|
|
||||||
timezone: Europe/Berlin
|
|
||||||
ignore:
|
ignore:
|
||||||
# logback 1.3 and 1.4 are compatible with slf4j 2.x only and not supported right now
|
# logback 1.3 and 1.4 are compatible with slf4j 2.x only and not supported right now
|
||||||
- dependency-name: ch.qos.logback:logback-classic
|
- dependency-name: ch.qos.logback:logback-classic
|
||||||
|
@ -21,11 +16,6 @@ updates:
|
||||||
update-types: [version-update:semver-major]
|
update-types: [version-update:semver-major]
|
||||||
- package-ecosystem: github-actions
|
- package-ecosystem: github-actions
|
||||||
directory: /
|
directory: /
|
||||||
open-pull-requests-limit: 10
|
|
||||||
schedule:
|
schedule:
|
||||||
interval: monthly
|
interval: monthly
|
||||||
day: monday
|
day: monday
|
||||||
# github parses time without quotes to int
|
|
||||||
# yamllint disable-line rule:quoted-strings
|
|
||||||
time: "09:00"
|
|
||||||
timezone: Europe/Berlin
|
|
||||||
|
|
16
.github/settings.xml
vendored
Normal file
16
.github/settings.xml
vendored
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!-- https://github.com/actions/setup-java/issues/85 -->
|
||||||
|
<settings>
|
||||||
|
<servers>
|
||||||
|
<server>
|
||||||
|
<id>sonatype-nexus</id>
|
||||||
|
<username>${env.SERVER_USERNAME}</username>
|
||||||
|
<password>${env.SERVER_PASSWORD}</password>
|
||||||
|
</server>
|
||||||
|
<server>
|
||||||
|
<id>github.com</id>
|
||||||
|
<username>nope</username>
|
||||||
|
<password>${env.GIT_ACTION_TOKEN}</password>
|
||||||
|
</server>
|
||||||
|
</servers>
|
||||||
|
</settings>
|
31
.github/workflows/build.yaml
vendored
Normal file
31
.github/workflows/build.yaml
vendored
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
name: Build
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
MAVEN_ARGS: --batch-mode --color=always --no-transfer-progress --settings=.github/settings.xml
|
||||||
|
steps:
|
||||||
|
- run: git config --global user.name "${{ vars.KOKUWA_IO_BOT_NAME }}"
|
||||||
|
- run: git config --global user.email "${{ vars.KOKUWA_IO_BOT_EMAIL }}"
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GIT_ACTION_TOKEN }}
|
||||||
|
- uses: actions/setup-java@v3
|
||||||
|
with:
|
||||||
|
distribution: temurin
|
||||||
|
java-version: 11
|
||||||
|
cache: maven
|
||||||
|
- run: mvn $MAVEN_ARGS dependency:go-offline
|
||||||
|
- run: mvn $MAVEN_ARGS deploy
|
||||||
|
env:
|
||||||
|
SERVER_USERNAME: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
|
||||||
|
SERVER_PASSWORD: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
|
||||||
|
- run: mvn $MAVEN_ARGS site-deploy
|
||||||
|
env:
|
||||||
|
GIT_ACTION_TOKEN: ${{ secrets.GIT_ACTION_TOKEN }}
|
70
.github/workflows/ci.yaml
vendored
70
.github/workflows/ci.yaml
vendored
|
@ -1,70 +0,0 @@
|
||||||
name: CI
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [main, "*.x"]
|
|
||||||
pull_request: {}
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
|
|
||||||
yaml:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- uses: ibiqlik/action-yamllint@v3
|
|
||||||
with:
|
|
||||||
format: colored
|
|
||||||
strict: true
|
|
||||||
|
|
||||||
markdown:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- uses: avto-dev/markdown-lint@v1
|
|
||||||
with:
|
|
||||||
args: /github/workspace
|
|
||||||
|
|
||||||
javadoc:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- uses: actions/setup-java@v3
|
|
||||||
with:
|
|
||||||
distribution: temurin
|
|
||||||
java-version: 11
|
|
||||||
cache: maven
|
|
||||||
- run: mvn -B -ntp dependency:go-offline
|
|
||||||
- run: mvn -B -ntp javadoc:javadoc-no-fork -Dmaven.javadoc.failOnWarnings=true -Ddoclint=all
|
|
||||||
|
|
||||||
checkstyle:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- uses: actions/setup-java@v3
|
|
||||||
with:
|
|
||||||
distribution: temurin
|
|
||||||
java-version: 11
|
|
||||||
cache: maven
|
|
||||||
- run: mvn -B -ntp dependency:go-offline
|
|
||||||
- run: mvn -B -ntp checkstyle:check
|
|
||||||
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- uses: actions/setup-java@v3
|
|
||||||
with:
|
|
||||||
distribution: temurin
|
|
||||||
java-version: 11
|
|
||||||
cache: maven
|
|
||||||
server-id: sonatype-nexus
|
|
||||||
server-username: SERVER_USERNAME
|
|
||||||
server-password: SERVER_PASSWORD
|
|
||||||
- run: mvn -B -ntp dependency:go-offline
|
|
||||||
- run: mvn -B -ntp verify -Dcheckstyle.skip
|
|
||||||
if: ${{ github.ref != 'refs/heads/main' }}
|
|
||||||
- run: mvn -B -ntp deploy -Dcheckstyle.skip
|
|
||||||
if: ${{ github.ref == 'refs/heads/main' }}
|
|
||||||
env:
|
|
||||||
SERVER_USERNAME: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
|
|
||||||
SERVER_PASSWORD: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
|
|
41
.github/workflows/pr.yaml
vendored
Normal file
41
.github/workflows/pr.yaml
vendored
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
name: PullRequest
|
||||||
|
|
||||||
|
on: pull_request
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
|
||||||
|
yaml:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: ibiqlik/action-yamllint@v3
|
||||||
|
with:
|
||||||
|
format: colored
|
||||||
|
strict: true
|
||||||
|
|
||||||
|
markdown:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: avto-dev/markdown-lint@v1
|
||||||
|
with:
|
||||||
|
args: /github/workspace
|
||||||
|
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
MAVEN_ARGS: --batch-mode --color=always --no-transfer-progress -Dmaven.test.redirectTestOutputToFile=false
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-java@v3
|
||||||
|
with:
|
||||||
|
distribution: temurin
|
||||||
|
java-version: 11
|
||||||
|
cache: maven
|
||||||
|
- run: mvn $MAVEN_ARGS dependency:go-offline
|
||||||
|
- run: mvn $MAVEN_ARGS verify
|
||||||
|
- run: mvn $MAVEN_ARGS site
|
||||||
|
- uses: actions/upload-artifact@v3
|
||||||
|
if: always()
|
||||||
|
with:
|
||||||
|
path: target/site
|
11
.github/workflows/release.yaml
vendored
11
.github/workflows/release.yaml
vendored
|
@ -5,7 +5,11 @@ on: workflow_dispatch
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
MAVEN_ARGS: --batch-mode --color=always --no-transfer-progress --settings=.github/settings.xml
|
||||||
steps:
|
steps:
|
||||||
|
- run: git config --global user.name "${{ vars.KOKUWA_IO_BOT_NAME }}"
|
||||||
|
- run: git config --global user.email "${{ vars.KOKUWA_IO_BOT_EMAIL }}"
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GIT_ACTION_TOKEN }}
|
token: ${{ secrets.GIT_ACTION_TOKEN }}
|
||||||
|
@ -25,10 +29,11 @@ jobs:
|
||||||
server-password: SERVER_PASSWORD
|
server-password: SERVER_PASSWORD
|
||||||
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
|
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
|
||||||
gpg-passphrase: GPG_PASSPHRASE
|
gpg-passphrase: GPG_PASSPHRASE
|
||||||
- run: mvn -B -ntp dependency:go-offline
|
- run: mvn $MAVEN_ARGS dependency:go-offline
|
||||||
- run: mvn -B -ntp release:prepare
|
- run: mvn $MAVEN_ARGS release:prepare -Darguments="$MAVEN_ARGS"
|
||||||
- run: mvn -B -ntp release:perform
|
- run: mvn $MAVEN_ARGS release:perform -Darguments="$MAVEN_ARGS"
|
||||||
env:
|
env:
|
||||||
SERVER_USERNAME: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
|
SERVER_USERNAME: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
|
||||||
SERVER_PASSWORD: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
|
SERVER_PASSWORD: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
|
||||||
|
GIT_ACTION_TOKEN: ${{ secrets.GIT_ACTION_TOKEN }}
|
||||||
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
|
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
|
||||||
|
|
27
README.md
27
README.md
|
@ -2,8 +2,7 @@
|
||||||
|
|
||||||
[](http://www.apache.org/licenses/)
|
[](http://www.apache.org/licenses/)
|
||||||
[](https://central.sonatype.com/namespace/io.kokuwa.micronaut)
|
[](https://central.sonatype.com/namespace/io.kokuwa.micronaut)
|
||||||
[](https://github.com/kokuwaio/micronaut-logging/actions/workflows/ci.yaml?query=branch%3Amain)
|
[](https://github.com/kokuwaio/micronaut-logging/actions/workflows/build.yaml)
|
||||||
[](https://github.com/kokuwaio/micronaut-logging/actions/workflows/ci.yaml?query=branch%3A4.x)
|
|
||||||
|
|
||||||
Include in your `pom.xml`:
|
Include in your `pom.xml`:
|
||||||
|
|
||||||
|
@ -16,29 +15,6 @@ Include in your `pom.xml`:
|
||||||
</dependency>
|
</dependency>
|
||||||
```
|
```
|
||||||
|
|
||||||
Or use in `dependencyManagement` in `pom.xml`:
|
|
||||||
|
|
||||||
```xml
|
|
||||||
<dependencyManagement>
|
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
|
||||||
<groupId>io.kokuwa.micronaut</groupId>
|
|
||||||
<artifactId>micronaut-logging</artifactId>
|
|
||||||
<version>${version.io.kokuwa.micronaut.logging}</version>
|
|
||||||
<type>pom</type>
|
|
||||||
<scope>import</scope>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>io.micronaut</groupId>
|
|
||||||
<artifactId>micronaut-bom</artifactId>
|
|
||||||
<version>${version.io.micronaut}</version>
|
|
||||||
<type>pom</type>
|
|
||||||
<scope>import</scope>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
</dependencyManagement>
|
|
||||||
```
|
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
* Version [3.x](https://github.com/kokuwaio/micronaut-logging/tree/main) is based on SLF4J 1.7 & Logback 1.2
|
* Version [3.x](https://github.com/kokuwaio/micronaut-logging/tree/main) is based on SLF4J 1.7 & Logback 1.2
|
||||||
|
@ -56,4 +32,3 @@ Or use in `dependencyManagement` in `pom.xml`:
|
||||||
* configure mdc on refresh event
|
* configure mdc on refresh event
|
||||||
* read **serviceName** and **serviceVersion** from yaml
|
* read **serviceName** and **serviceVersion** from yaml
|
||||||
* support auto select appender with custom `logback.xml`
|
* support auto select appender with custom `logback.xml`
|
||||||
* add maven site with jacoco / dependency updates for snapshot build
|
|
||||||
|
|
347
pom.xml
347
pom.xml
|
@ -2,9 +2,16 @@
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
<parent>
|
||||||
|
<groupId>io.kokuwa.maven</groupId>
|
||||||
|
<artifactId>maven-parent</artifactId>
|
||||||
|
<version>0.6.9</version>
|
||||||
|
<relativePath />
|
||||||
|
</parent>
|
||||||
|
|
||||||
<groupId>io.kokuwa.micronaut</groupId>
|
<groupId>io.kokuwa.micronaut</groupId>
|
||||||
<artifactId>micronaut-logging</artifactId>
|
<artifactId>micronaut-logging</artifactId>
|
||||||
<version>3.2.1-SNAPSHOT</version>
|
<version>3.3.0-SNAPSHOT</version>
|
||||||
|
|
||||||
<name>Logging Support for Micronaut</name>
|
<name>Logging Support for Micronaut</name>
|
||||||
<description>Enhanced logging using MDC or request header.</description>
|
<description>Enhanced logging using MDC or request header.</description>
|
||||||
|
@ -16,8 +23,9 @@
|
||||||
</organization>
|
</organization>
|
||||||
<licenses>
|
<licenses>
|
||||||
<license>
|
<license>
|
||||||
<name>Apache License 2.0</name>
|
<name>Apache-2.0</name>
|
||||||
<url>https://www.apache.org/licenses/LICENSE-2.0</url>
|
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
|
||||||
|
<distribution>repo</distribution>
|
||||||
</license>
|
</license>
|
||||||
</licenses>
|
</licenses>
|
||||||
|
|
||||||
|
@ -25,10 +33,11 @@
|
||||||
<developer>
|
<developer>
|
||||||
<id>sschnabe</id>
|
<id>sschnabe</id>
|
||||||
<name>Stephan Schnabel</name>
|
<name>Stephan Schnabel</name>
|
||||||
<url>https://github.com/sschnabe</url>
|
|
||||||
<email>stephan@grayc.de</email>
|
<email>stephan@grayc.de</email>
|
||||||
|
<url>https://github.com/sschnabe</url>
|
||||||
<organization>GrayC GmbH</organization>
|
<organization>GrayC GmbH</organization>
|
||||||
<organizationUrl>https://grayc.de</organizationUrl>
|
<organizationUrl>https://grayc.de</organizationUrl>
|
||||||
|
<timezone>Europe/Berlin</timezone>
|
||||||
</developer>
|
</developer>
|
||||||
</developers>
|
</developers>
|
||||||
|
|
||||||
|
@ -46,16 +55,6 @@
|
||||||
<system>github</system>
|
<system>github</system>
|
||||||
<url>https://github.com/kokuwaio/micronaut-logging/actions</url>
|
<url>https://github.com/kokuwaio/micronaut-logging/actions</url>
|
||||||
</ciManagement>
|
</ciManagement>
|
||||||
<distributionManagement>
|
|
||||||
<snapshotRepository>
|
|
||||||
<id>sonatype-nexus</id>
|
|
||||||
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
|
|
||||||
</snapshotRepository>
|
|
||||||
<repository>
|
|
||||||
<id>sonatype-nexus</id>
|
|
||||||
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
|
|
||||||
</repository>
|
|
||||||
</distributionManagement>
|
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
|
|
||||||
|
@ -63,86 +62,26 @@
|
||||||
<!-- ============================== Build ================================ -->
|
<!-- ============================== Build ================================ -->
|
||||||
<!-- ===================================================================== -->
|
<!-- ===================================================================== -->
|
||||||
|
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
||||||
|
|
||||||
<maven.compiler.source>11</maven.compiler.source>
|
<maven.compiler.source>11</maven.compiler.source>
|
||||||
<maven.compiler.target>11</maven.compiler.target>
|
<maven.compiler.target>11</maven.compiler.target>
|
||||||
<maven.compiler.parameters>true</maven.compiler.parameters>
|
|
||||||
<maven.compiler.showDeprecation>true</maven.compiler.showDeprecation>
|
|
||||||
<maven.compiler.showWarnings>true</maven.compiler.showWarnings>
|
|
||||||
<maven.compiler.failOnWarning>true</maven.compiler.failOnWarning>
|
|
||||||
<maven.test.redirectTestOutputToFile>true</maven.test.redirectTestOutputToFile>
|
|
||||||
|
|
||||||
<!-- ===================================================================== -->
|
<!-- ===================================================================== -->
|
||||||
<!-- ============================= Versions ============================== -->
|
<!-- ============================= Versions ============================== -->
|
||||||
<!-- ===================================================================== -->
|
<!-- ===================================================================== -->
|
||||||
|
|
||||||
<!-- plugins -->
|
<version.io.micronaut>3.9.4</version.io.micronaut>
|
||||||
|
|
||||||
<version.org.apache.maven.plugins.checkstyle>3.2.2</version.org.apache.maven.plugins.checkstyle>
|
|
||||||
<version.org.apache.maven.plugins.clean>3.2.0</version.org.apache.maven.plugins.clean>
|
|
||||||
<version.org.apache.maven.plugins.compiler>3.11.0</version.org.apache.maven.plugins.compiler>
|
|
||||||
<version.org.apache.maven.plugins.dependency>3.5.0</version.org.apache.maven.plugins.dependency>
|
|
||||||
<version.org.apache.maven.plugins.deploy>3.1.1</version.org.apache.maven.plugins.deploy>
|
|
||||||
<version.org.apache.maven.plugins.gpg>3.1.0</version.org.apache.maven.plugins.gpg>
|
|
||||||
<version.org.apache.maven.plugins.install>3.1.1</version.org.apache.maven.plugins.install>
|
|
||||||
<version.org.apache.maven.plugins.invoker>3.5.1</version.org.apache.maven.plugins.invoker>
|
|
||||||
<version.org.apache.maven.plugins.javadoc>3.5.0</version.org.apache.maven.plugins.javadoc>
|
|
||||||
<version.org.apache.maven.plugins.jar>3.3.0</version.org.apache.maven.plugins.jar>
|
|
||||||
<version.org.apache.maven.plugins.release>3.0.0</version.org.apache.maven.plugins.release>
|
|
||||||
<version.org.apache.maven.plugins.resources>3.3.1</version.org.apache.maven.plugins.resources>
|
|
||||||
<version.org.apache.maven.plugins.source>3.2.1</version.org.apache.maven.plugins.source>
|
|
||||||
<version.org.apache.maven.plugins.surefire>3.1.0</version.org.apache.maven.plugins.surefire>
|
|
||||||
<version.org.codehaus.mojo.tidy>1.2.0</version.org.codehaus.mojo.tidy>
|
|
||||||
<version.org.sonatype.plugins.nexus-staging>1.6.13</version.org.sonatype.plugins.nexus-staging>
|
|
||||||
<version.com.puppycrawl.tools.checkstyle>10.11.0</version.com.puppycrawl.tools.checkstyle>
|
|
||||||
<version.io.kokuwa.checkstyle>0.5.6</version.io.kokuwa.checkstyle>
|
|
||||||
|
|
||||||
<!-- dependencies -->
|
|
||||||
|
|
||||||
<version.ch.qos.logback>1.2.12</version.ch.qos.logback>
|
|
||||||
<version.com.fasterxml.jackson>2.15.0</version.com.fasterxml.jackson>
|
|
||||||
<version.io.kokuwa.micronaut.logging>3.2.1-SNAPSHOT</version.io.kokuwa.micronaut.logging>
|
|
||||||
<version.io.micronaut>3.9.1</version.io.micronaut>
|
|
||||||
<version.io.micronaut.security> 3.11.0</version.io.micronaut.security>
|
|
||||||
<version.org.slf4j.api>1.7.36</version.org.slf4j.api>
|
|
||||||
|
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencyManagement>
|
<dependencyManagement>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
|
||||||
<!-- this library -->
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>io.kokuwa.micronaut</groupId>
|
<groupId>io.micronaut</groupId>
|
||||||
<artifactId>micronaut-logging</artifactId>
|
<artifactId>micronaut-bom</artifactId>
|
||||||
<version>${version.io.kokuwa.micronaut.logging}</version>
|
<version>${version.io.micronaut}</version>
|
||||||
|
<type>pom</type>
|
||||||
|
<scope>import</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- slf4j -->
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.slf4j</groupId>
|
|
||||||
<artifactId>slf4j-api</artifactId>
|
|
||||||
<version>${version.org.slf4j.api}</version>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<!-- logback -->
|
|
||||||
<dependency>
|
|
||||||
<groupId>ch.qos.logback</groupId>
|
|
||||||
<artifactId>logback-classic</artifactId>
|
|
||||||
<version>${version.ch.qos.logback}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>ch.qos.logback</groupId>
|
|
||||||
<artifactId>logback-core</artifactId>
|
|
||||||
<version>${version.ch.qos.logback}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.fasterxml.jackson.core</groupId>
|
|
||||||
<artifactId>jackson-databind</artifactId>
|
|
||||||
<version>${version.com.fasterxml.jackson}</version>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</dependencyManagement>
|
</dependencyManagement>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
@ -151,7 +90,6 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>io.micronaut</groupId>
|
<groupId>io.micronaut</groupId>
|
||||||
<artifactId>micronaut-runtime</artifactId>
|
<artifactId>micronaut-runtime</artifactId>
|
||||||
<version>${version.io.micronaut}</version>
|
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
<exclusions>
|
<exclusions>
|
||||||
<exclusion>
|
<exclusion>
|
||||||
|
@ -163,7 +101,6 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>io.micronaut.security</groupId>
|
<groupId>io.micronaut.security</groupId>
|
||||||
<artifactId>micronaut-security</artifactId>
|
<artifactId>micronaut-security</artifactId>
|
||||||
<version>${version.io.micronaut}</version>
|
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
<exclusions>
|
<exclusions>
|
||||||
<exclusion>
|
<exclusion>
|
||||||
|
@ -179,166 +116,58 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>io.micronaut.test</groupId>
|
<groupId>io.micronaut.test</groupId>
|
||||||
<artifactId>micronaut-test-junit5</artifactId>
|
<artifactId>micronaut-test-junit5</artifactId>
|
||||||
<version>${version.io.micronaut}</version>
|
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>io.micronaut</groupId>
|
<groupId>io.micronaut</groupId>
|
||||||
<artifactId>micronaut-http-client</artifactId>
|
<artifactId>micronaut-http-client</artifactId>
|
||||||
<version>${version.io.micronaut}</version>
|
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>io.micronaut</groupId>
|
<groupId>io.micronaut</groupId>
|
||||||
<artifactId>micronaut-http-server-netty</artifactId>
|
<artifactId>micronaut-http-server-netty</artifactId>
|
||||||
<version>${version.io.micronaut}</version>
|
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>io.micronaut.security</groupId>
|
<groupId>io.micronaut.security</groupId>
|
||||||
<artifactId>micronaut-security-jwt</artifactId>
|
<artifactId>micronaut-security-jwt</artifactId>
|
||||||
<version>${version.io.micronaut}</version>
|
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- logback -->
|
<!-- slf4j/logback -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.slf4j</groupId>
|
||||||
|
<artifactId>slf4j-api</artifactId>
|
||||||
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>ch.qos.logback</groupId>
|
<groupId>ch.qos.logback</groupId>
|
||||||
<artifactId>logback-classic</artifactId>
|
<artifactId>logback-classic</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.fasterxml.jackson.core</groupId>
|
<groupId>ch.qos.logback</groupId>
|
||||||
<artifactId>jackson-databind</artifactId>
|
<artifactId>logback-core</artifactId>
|
||||||
<scope>provided</scope>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<pluginManagement>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-checkstyle-plugin</artifactId>
|
|
||||||
<version>${version.org.apache.maven.plugins.checkstyle}</version>
|
|
||||||
<configuration>
|
|
||||||
<configLocation>checkstyle.xml</configLocation>
|
|
||||||
<suppressionsLocation>checkstyle-suppression.xml</suppressionsLocation>
|
|
||||||
<includeTestSourceDirectory>true</includeTestSourceDirectory>
|
|
||||||
</configuration>
|
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.puppycrawl.tools</groupId>
|
|
||||||
<artifactId>checkstyle</artifactId>
|
|
||||||
<version>${version.com.puppycrawl.tools.checkstyle}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>io.kokuwa</groupId>
|
|
||||||
<artifactId>maven-parent</artifactId>
|
|
||||||
<version>${version.io.kokuwa.checkstyle}</version>
|
|
||||||
<type>zip</type>
|
|
||||||
<classifier>checkstyle</classifier>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-clean-plugin</artifactId>
|
|
||||||
<version>${version.org.apache.maven.plugins.clean}</version>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
|
||||||
<version>${version.org.apache.maven.plugins.compiler}</version>
|
|
||||||
<configuration>
|
|
||||||
<annotationProcessorPaths>
|
|
||||||
<path>
|
|
||||||
<groupId>io.micronaut</groupId>
|
|
||||||
<artifactId>micronaut-inject-java</artifactId>
|
|
||||||
<version>${version.io.micronaut}</version>
|
|
||||||
</path>
|
|
||||||
</annotationProcessorPaths>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-dependency-plugin</artifactId>
|
|
||||||
<version>${version.org.apache.maven.plugins.dependency}</version>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-deploy-plugin</artifactId>
|
|
||||||
<version>${version.org.apache.maven.plugins.deploy}</version>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-gpg-plugin</artifactId>
|
|
||||||
<version>${version.org.apache.maven.plugins.gpg}</version>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-install-plugin</artifactId>
|
|
||||||
<version>${version.org.apache.maven.plugins.install}</version>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-invoker-plugin</artifactId>
|
|
||||||
<version>${version.org.apache.maven.plugins.invoker}</version>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-jar-plugin</artifactId>
|
|
||||||
<version>${version.org.apache.maven.plugins.jar}</version>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-javadoc-plugin</artifactId>
|
|
||||||
<version>${version.org.apache.maven.plugins.javadoc}</version>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-release-plugin</artifactId>
|
|
||||||
<version>${version.org.apache.maven.plugins.release}</version>
|
|
||||||
<configuration>
|
|
||||||
<tagNameFormat>@{project.version}</tagNameFormat>
|
|
||||||
<releaseProfiles>release</releaseProfiles>
|
|
||||||
<localCheckout>true</localCheckout>
|
|
||||||
<scmReleaseCommitComment>@{prefix} prepare release @{releaseLabel} [no ci]</scmReleaseCommitComment>
|
|
||||||
<signTag>true</signTag>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-resources-plugin</artifactId>
|
|
||||||
<version>${version.org.apache.maven.plugins.resources}</version>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-source-plugin</artifactId>
|
|
||||||
<version>${version.org.apache.maven.plugins.source}</version>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-surefire-plugin</artifactId>
|
|
||||||
<version>${version.org.apache.maven.plugins.surefire}</version>
|
|
||||||
<configuration>
|
|
||||||
<failIfNoTests>true</failIfNoTests>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
|
||||||
<artifactId>tidy-maven-plugin</artifactId>
|
|
||||||
<version>${version.org.codehaus.mojo.tidy}</version>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.sonatype.plugins</groupId>
|
|
||||||
<artifactId>nexus-staging-maven-plugin</artifactId>
|
|
||||||
<version>${version.org.sonatype.plugins.nexus-staging}</version>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</pluginManagement>
|
|
||||||
<plugins>
|
<plugins>
|
||||||
|
|
||||||
|
<!-- adjust micronaut -->
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<annotationProcessorPaths>
|
||||||
|
<path>
|
||||||
|
<groupId>io.micronaut</groupId>
|
||||||
|
<artifactId>micronaut-inject-java</artifactId>
|
||||||
|
<version>${version.io.micronaut}</version>
|
||||||
|
</path>
|
||||||
|
</annotationProcessorPaths>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
|
||||||
<!-- run invoker tests -->
|
<!-- run invoker tests -->
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
@ -351,104 +180,12 @@
|
||||||
<goal>verify</goal>
|
<goal>verify</goal>
|
||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo>
|
<parallelThreads>0.5C</parallelThreads>
|
||||||
<parallelThreads>1C</parallelThreads>
|
|
||||||
<streamLogs>false</streamLogs>
|
|
||||||
<streamLogsOnFailures>true</streamLogsOnFailures>
|
|
||||||
<writeJunitReport>true</writeJunitReport>
|
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
<!-- fail if any pom is dirty -->
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
|
||||||
<artifactId>tidy-maven-plugin</artifactId>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<goals>
|
|
||||||
<goal>check</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
|
|
||||||
<!-- fail if checkstyle reports problems -->
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-checkstyle-plugin</artifactId>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<goals>
|
|
||||||
<goal>check</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
|
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
<profiles>
|
|
||||||
<profile>
|
|
||||||
<id>release</id>
|
|
||||||
<build>
|
|
||||||
<plugins>
|
|
||||||
|
|
||||||
<!-- add source for downstream projects -->
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-source-plugin</artifactId>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<goals>
|
|
||||||
<goal>jar-no-fork</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
|
|
||||||
<!-- add javadoc for downstream projects -->
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-javadoc-plugin</artifactId>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<goals>
|
|
||||||
<goal>jar</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
|
|
||||||
<!-- sign documents before upload -->
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-gpg-plugin</artifactId>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<goals>
|
|
||||||
<goal>sign</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
|
|
||||||
<!-- autoclose sonatype nexus repo -->
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.sonatype.plugins</groupId>
|
|
||||||
<artifactId>nexus-staging-maven-plugin</artifactId>
|
|
||||||
<extensions>true</extensions>
|
|
||||||
<configuration>
|
|
||||||
<serverId>sonatype-nexus</serverId>
|
|
||||||
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
|
|
||||||
<autoReleaseAfterClose>true</autoReleaseAfterClose>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
</profile>
|
|
||||||
</profiles>
|
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -47,7 +47,7 @@
|
||||||
|
|
||||||
<!-- dependencies -->
|
<!-- dependencies -->
|
||||||
|
|
||||||
<version.io.kokuwa.micronaut.logging>@version.io.kokuwa.micronaut.logging@</version.io.kokuwa.micronaut.logging>
|
<version.io.kokuwa.micronaut.logging>@project.version@</version.io.kokuwa.micronaut.logging>
|
||||||
<version.io.micronaut>@version.io.micronaut@</version.io.micronaut>
|
<version.io.micronaut>@version.io.micronaut@</version.io.micronaut>
|
||||||
|
|
||||||
</properties>
|
</properties>
|
||||||
|
@ -58,8 +58,6 @@
|
||||||
<groupId>io.kokuwa.micronaut</groupId>
|
<groupId>io.kokuwa.micronaut</groupId>
|
||||||
<artifactId>micronaut-logging</artifactId>
|
<artifactId>micronaut-logging</artifactId>
|
||||||
<version>${version.io.kokuwa.micronaut.logging}</version>
|
<version>${version.io.kokuwa.micronaut.logging}</version>
|
||||||
<type>pom</type>
|
|
||||||
<scope>import</scope>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>io.micronaut</groupId>
|
<groupId>io.micronaut</groupId>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue