Skip to content

Commit

Permalink
migrated to io.github.oshai:kotlin-logging-jvm
Browse files Browse the repository at this point in the history
  • Loading branch information
zeldigas committed Oct 7, 2023
1 parent 007252d commit 8829f0b
Show file tree
Hide file tree
Showing 15 changed files with 39 additions and 14 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased

### Changed

- dependency updates:
- migrated to `io.github.oshai:kotlin-logging-jvm`

## 0.14.0 - 2023-09-20

### Added
Expand Down
2 changes: 1 addition & 1 deletion cli/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
</dependency>

<dependency>
<groupId>io.github.microutils</groupId>
<groupId>io.github.oshai</groupId>
<artifactId>kotlin-logging-jvm</artifactId>
</dependency>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion confluence-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
</dependency>

<dependency>
<groupId>io.github.microutils</groupId>
<groupId>io.github.oshai</groupId>
<artifactId>kotlin-logging-jvm</artifactId>
</dependency>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import com.github.zeldigas.confclient.model.Attachment
import com.github.zeldigas.confclient.model.ConfluencePage
import com.github.zeldigas.confclient.model.PageAttachments
import com.github.zeldigas.confclient.model.Space
import io.github.oshai.kotlinlogging.KotlinLogging
import io.ktor.client.*
import io.ktor.client.call.*
import io.ktor.client.engine.cio.*
Expand All @@ -22,7 +23,6 @@ import io.ktor.serialization.jackson.*
import io.ktor.util.cio.*
import io.ktor.utils.io.*
import io.ktor.utils.io.streams.*
import mu.KotlinLogging
import java.nio.file.Path
import java.security.cert.X509Certificate
import javax.net.ssl.X509TrustManager
Expand Down
2 changes: 1 addition & 1 deletion convert/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
<!--common libraries-->

<dependency>
<groupId>io.github.microutils</groupId>
<groupId>io.github.oshai</groupId>
<artifactId>kotlin-logging-jvm</artifactId>
</dependency>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.github.zeldigas.text2confl.convert

import com.github.zeldigas.text2confl.convert.confluence.ReferenceProvider
import mu.KotlinLogging
import io.github.oshai.kotlinlogging.KotlinLogging
import java.net.URI
import java.nio.file.Path
import java.nio.file.Paths
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import com.vladsch.flexmark.util.data.DataKey
import com.vladsch.flexmark.util.data.MutableDataHolder
import com.vladsch.flexmark.util.sequence.BasedSequence
import com.vladsch.flexmark.util.sequence.Escaping
import mu.KotlinLogging
import io.github.oshai.kotlinlogging.KotlinLogging


internal class ConfluenceFormatExtension : HtmlRendererExtension, Parser.ParserExtension {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import com.vladsch.flexmark.util.ast.Document
import com.vladsch.flexmark.util.ast.Node
import com.vladsch.flexmark.util.ast.NodeVisitor
import com.vladsch.flexmark.util.ast.VisitHandler
import mu.KotlinLogging
import io.github.oshai.kotlinlogging.KotlinLogging
import java.nio.file.Path

class MarkdownAttachmentCollector(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.github.zeldigas.text2confl.convert.markdown.diagram

import com.github.zeldigas.text2confl.convert.markdown.MermaidDiagramsConfiguration
import mu.KotlinLogging
import io.github.oshai.kotlinlogging.KotlinLogging
import java.nio.file.Path

class MermaidDiagramsGenerator(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.github.zeldigas.text2confl.convert.markdown.diagram

import com.github.zeldigas.text2confl.convert.markdown.PlantUmlDiagramsConfiguration
import mu.KotlinLogging
import io.github.oshai.kotlinlogging.KotlinLogging
import java.nio.file.Path

class PlantUmlDiagramsGenerator(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,26 @@ internal class RenderingOfLinksTest : RenderingTestBase() {
)
}

@Test
fun `Mailto link rendering`() {
val result = toHtml(
"""
mailto:join@discuss.example.org[Subscribe,Subscribe me,I want to participate.]
Send email to example@example.org
link:mailto:example@example.org[Send email]
""".trimIndent()
)

assertThat(result).isEqualToConfluenceFormat(
"""
<p><a href="mailto:join@discuss.example.org?subject=Subscribe+me&amp;body=I+want+to+participate.">Subscribe</a></p>
<p>Send email to <a href="mailto:example@example.org">example@example.org</a></p>
<p><a href="mailto:example@example.org">Send email</a></p>
""".trimIndent(),
)
}
}


Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import com.github.zeldigas.text2confl.convert.EditorVersion
import com.github.zeldigas.text2confl.convert.Page
import com.github.zeldigas.text2confl.convert.PageHeader
import com.github.zeldigas.text2confl.core.config.Cleanup
import io.github.oshai.kotlinlogging.KotlinLogging
import kotlinx.coroutines.async
import kotlinx.coroutines.awaitAll
import kotlinx.coroutines.coroutineScope
import kotlinx.coroutines.launch
import mu.KotlinLogging


class ContentUploader(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package com.github.zeldigas.text2confl.core.upload

import com.github.zeldigas.confclient.*
import com.github.zeldigas.confclient.model.*
import mu.KotlinLogging
import io.github.oshai.kotlinlogging.KotlinLogging
import java.time.ZonedDateTime

class DryRunClient(private val realClient: ConfluenceClient) : ConfluenceClient by realClient {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import com.github.zeldigas.confclient.model.PageProperty
import com.github.zeldigas.text2confl.convert.EditorVersion
import com.github.zeldigas.text2confl.convert.Page
import com.github.zeldigas.text2confl.convert.PageContent
import io.github.oshai.kotlinlogging.KotlinLogging
import kotlinx.coroutines.coroutineScope
import kotlinx.coroutines.launch
import mu.KotlinLogging
import java.nio.file.Path
import kotlin.io.path.extension

Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@
<version>1.4.11</version>
</dependency>
<dependency>
<groupId>io.github.microutils</groupId>
<groupId>io.github.oshai</groupId>
<artifactId>kotlin-logging-jvm</artifactId>
<version>3.0.5</version>
<version>5.1.0</version>
</dependency>
<dependency>
<groupId>io.mockk</groupId>
Expand Down

0 comments on commit 8829f0b

Please sign in to comment.