File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed
main/kotlin/com/softwareplace/json/logger/log
test/kotlin/com/softwareplace/json/logger/log Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -17,12 +17,14 @@ java {
1717 withSourcesJar()
1818}
1919
20+ val apiVersion = " 0.0.2"
21+
2022publishing {
2123 publications {
2224 create<MavenPublication >(" maven" ) {
2325 groupId = " com.softwareplace"
2426 artifactId = " json-logger"
25- version = " 1.0.0 "
27+ version = apiVersion
2628
2729 from(components[" java" ])
2830 }
@@ -36,7 +38,7 @@ afterEvaluate {
3638 from(components[" java" ])
3739 groupId = " com.github.eliasmeireles"
3840 artifactId = " json-logger"
39- version = " 0.0.1 "
41+ version = apiVersion
4042 }
4143 }
4244 }
@@ -50,7 +52,9 @@ dependencies {
5052 implementation(" org.jetbrains.kotlin:kotlin-stdlib-jdk8" )
5153 implementation(" com.fasterxml.jackson.module:jackson-module-kotlin:2.14.0" )
5254 implementation(" com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.14.0" )
53- implementation(" org.springframework.boot:spring-boot-starter-log4j2:2.7.2" )
55+
56+ implementation(" org.slf4j:slf4j-api:1.7.30" )
57+ implementation(" ch.qos.logback:logback-core:1.2.9" )
5458
5559 testImplementation(" org.junit.jupiter:junit-jupiter:5.9.0" )
5660 testImplementation(" org.mockito.kotlin:mockito-kotlin:4.1.0" )
Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ package com.softwareplace.json.logger.log
22
33import com.fasterxml.jackson.databind.ObjectMapper
44import com.softwareplace.json.logger.mapper.getObjectMapper
5- import org.apache.logging.log4j.Level
65import org.slf4j.Logger
76import org.slf4j.LoggerFactory
7+ import org.slf4j.event.Level
88
99
1010inline fun <reified T : Any > T.logger (): Logger = LoggerFactory .getLogger(T ::class .java)
Original file line number Diff line number Diff line change @@ -4,9 +4,9 @@ import com.softwareplace.json.logger.log.*
44import io.mockk.junit5.MockKExtension
55import io.mockk.spyk
66import io.mockk.verify
7- import org.apache.logging.log4j.Level
87import org.junit.jupiter.api.Test
98import org.junit.jupiter.api.extension.ExtendWith
9+ import org.slf4j.event.Level
1010import java.time.LocalDate
1111
1212@Suppress(" KotlinPlaceholderCountMatchesArgumentCount" )
You can’t perform that action at this time.
0 commit comments