Skip to content

Commit

Permalink
Add logging module for Micronaut 4 (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
timyates committed Mar 23, 2023
1 parent 02a9bea commit 68033fd
Show file tree
Hide file tree
Showing 18 changed files with 69 additions and 111 deletions.
16 changes: 3 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,13 @@

# Micronaut logging

[![Maven Central](https://img.shields.io/maven-central/v/io.micronaut.logging/micronaut-project-template.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22io.micronaut.project-template%22%20AND%20a:%22micronaut-project-template%22)
[![Build Status](https://github.com/micronaut-projects/micronaut-logging/workflows/Java%20CI/badge.svg)](https://github.com/micronaut-projects/micronaut-project-template/actions)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=micronaut-projects_micronaut-template&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=micronaut-projects_micronaut-template)
[![Maven Central](https://img.shields.io/maven-central/v/io.micronaut.logging/micronaut-logging.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22io.micronaut.logging%22%20AND%20a:%22micronaut-logging%22)
[![Build Status](https://github.com/micronaut-projects/micronaut-logging/workflows/Java%20CI/badge.svg)](https://github.com/micronaut-projects/micronaut-logging/actions)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=micronaut-projects_micronaut-logging&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=micronaut-projects_micronaut-logging)
[![Revved up by Gradle Enterprise](https://img.shields.io/badge/Revved%20up%20by-Gradle%20Enterprise-06A0CE?logo=Gradle&labelColor=02303A)](https://ge.micronaut.io/scans)

Micronaut logging

## Documentation

See the [Documentation](https://micronaut-projects.github.io/micronaut-logging/latest/guide/) for more information.

See the [Snapshot Documentation](https://micronaut-projects.github.io/micronaut-logging/snapshot/guide/) for the current development docs.

<!-- ## Examples
Examples can be found in the [examples](https://github.com/micronaut-projects/micronaut-logging/tree/master/examples) directory. -->

## Snapshots and Releases

Snapshots are automatically published to [Sonatype Snapshots](https://s01.oss.sonatype.org/content/repositories/snapshots/io/micronaut/) using [Github Actions](https://github.com/micronaut-projects/micronaut-logging/actions).
Expand Down
4 changes: 0 additions & 4 deletions build.gradle

This file was deleted.

4 changes: 4 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
plugins {
id("io.micronaut.build.internal.docs")
id("io.micronaut.build.internal.quality-reporting")
}
3 changes: 0 additions & 3 deletions buildSrc/build.gradle

This file was deleted.

This file was deleted.

This file was deleted.

10 changes: 3 additions & 7 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,13 @@ projectVersion=1.0.0-SNAPSHOT
projectGroup=io.micronaut.logging

title=Micronaut logging
projectDesc=TODO
projectDesc=BOM containing the logging dependencies for Micronaut
projectUrl=https://micronaut.io
githubSlug=micronaut-projects/micronaut-logging
developers=Graeme Rocher
developers=Tim Yates

# Micronaut core branch for BOM pull requests
githubCoreBranch=3.8.x

# bomProperty=micronautXXXVersion
# If needed, set additional properties
# bomProperties=hibernateVersion,tomcatJdbcVersion
githubCoreBranch=4.0.x

org.gradle.caching=true
org.gradle.jvmargs=-Xmx1g
66 changes: 24 additions & 42 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,48 +1,30 @@
#
# This file is used to declare the list of libraries
# which are used as dependencies in the project.
# See https://docs.gradle.org/7.4.2/userguide/platforms.html#sub:central-declaration-of-dependencies
#
# For Micronaut, we have 3 kinds of dependencies:
# - managed dependencies, which are exposed to consumers via a BOM (or version catalog)
# - managed BOMs, which are imported into the BOM that we generate
# - all other dependencies, which are implementation details
#
# If a library needs to appear in the BOM of the project, then it must be
# declared with the "managed-" prefix.
# If a BOM needs to be imported in the BOM of the project, then it must be
# declared with the "boms-" prefix.
# Both managed dependencies and BOMs need to have their version declared via
# a managed version (a version which alias starts with "managed-"

[versions]
micronaut = "3.8.7"
micronaut-docs = "2.0.0"
micronaut-test = "3.9.1"
groovy = "3.0.13"
spock = "2.3-groovy-3.0"
micronaut = "4.0.0-M1"

# Managed versions appear in the BOM
# managed-somelib = "1.0"
# managed-somebom = "1.1"
managed-log4j = "2.19.0"
managed-logback = "1.4.6"
managed-slf4j = "2.0.4"

[libraries]

#
# Managed dependencies appear in the BOM
#
# managed-somelib = { module = "group:artifact", version.ref = "managed-somelib" }

#
# Imported BOMs, also appearing in the generated BOM
#
# boms-somebom = { module = "com.foo:somebom", version.ref = "managed-somebom" }

# Other libraries used by the project but non managed

# micronaut-bom = { module = "io.micronaut:micronaut-bom", version.ref = "micronaut" }
# jdoctor = { module = "me.champeau.jdoctor:jdoctor-core", version.ref="jdoctor" }

[bundles]
# Log4j
boms-log4j = { module = "org.apache.logging.log4j:log4j-bom", version.ref = "managed-log4j" }
managed-log4j = { module = "org.apache.logging.log4j:log4j-core", version.ref = "managed-log4j" }

# Logback
managed-logback-classic = { module = "ch.qos.logback:logback-classic", version.ref = "managed-logback" }
managed-logback-core = { module = "ch.qos.logback:logback-core", version.ref = "managed-logback" }
managed-logback-access = { module = "ch.qos.logback:logback-access", version.ref = "managed-logback" }

# SLF4J
managed-slf4j-api = { module = "org.slf4j:slf4j-api", version.ref = "managed-slf4j" }
managed-slf4j-simple = { module = "org.slf4j:slf4j-simple", version.ref = "managed-slf4j" }
managed-slf4j-nop = { module = "org.slf4j:slf4j-nop", version.ref = "managed-slf4j" }
managed-slf4j-log4j12 = { module = "org.slf4j:slf4j-log4j12", version.ref = "managed-slf4j" }
managed-slf4j-reload4j = { module = "org.slf4j:slf4j-reload4j", version.ref = "managed-slf4j" }
managed-slf4j-ext = { module = "org.slf4j:slf4j-ext", version.ref = "managed-slf4j" }
managed-slf4j-jcl-over-slf4j = { module = "org.slf4j:jcl-over-slf4j", version.ref = "managed-slf4j" }
managed-slf4j-log4j-over-slf4j = { module = "org.slf4j:log4j-over-slf4j", version.ref = "managed-slf4j" }
managed-slf4j-jul-to-slf4j = { module = "org.slf4j:jul-to-slf4j", version.ref = "managed-slf4j" }
managed-slf4j-osgi-over-slf4j = { module = "org.slf4j:osgi-over-slf4j", version.ref = "managed-slf4j" }

[plugins]
10 changes: 10 additions & 0 deletions logging-bom/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
plugins {
id("io.micronaut.build.internal.bom")
}

// Remove once 1.0.0 is released
micronautBuild {
binaryCompatibility {
enabled.set(false)
}
}
4 changes: 0 additions & 4 deletions micronaut-logging-bom/build.gradle

This file was deleted.

3 changes: 0 additions & 3 deletions micronaut-logging/build.gradle

This file was deleted.

21 changes: 0 additions & 21 deletions settings.gradle

This file was deleted.

23 changes: 23 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import io.micronaut.build.MicronautBuildSettingsExtension

pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
}
}

plugins {
id("io.micronaut.build.shared.settings") version "6.3.5"
}

enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")

rootProject.name = "logging-parent"

include("logging-bom")

configure<MicronautBuildSettingsExtension> {
addSnapshotRepository()
useStandardizedProjectNames.set(true)
}
2 changes: 1 addition & 1 deletion src/main/docs/guide/introduction.adoc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
TODO
This is a module to provide the logging framework versions that are used by the Micronaut Framework.
1 change: 0 additions & 1 deletion src/main/docs/guide/quickStart.adoc

This file was deleted.

3 changes: 0 additions & 3 deletions src/main/docs/guide/releaseHistory.adoc

This file was deleted.

2 changes: 1 addition & 1 deletion src/main/docs/guide/repository.adoc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
You can find the source code of this project in this repository:

https://github.com/{githubSlug}[https://github.com/{githubSlug}]
https://github.com/{githubSlug}[https://github.com/{githubSlug}]
3 changes: 0 additions & 3 deletions src/main/docs/guide/toc.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
introduction:
title: Introduction
releaseHistory: Release History
quickStart:
title: Quick Start
repository: Repository

0 comments on commit 68033fd

Please sign in to comment.