Skip to content

Commit

Permalink
Updated Kotlin version to 2.0.21
Browse files Browse the repository at this point in the history
  • Loading branch information
pwall567 committed Feb 1, 2025
1 parent 611a959 commit d20e1dc
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 34 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

The format is based on [Keep a Changelog](http://keepachangelog.com/).

## [3.7] - 2025-02-01
### Changed
- `pom.xml`: updated Kotlin version to 2.0.21, updated dependency version

## [3.6] - 2024-12-15
### Changed
- `pom.xml`: updated dependency versions
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![Build Status](https://github.com/pwall567/kjson-yaml/actions/workflows/build.yml/badge.svg)](https://github.com/pwall567/kjson-yaml/actions/workflows/build.yml)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Kotlin](https://img.shields.io/static/v1?label=Kotlin&message=v1.9.24&color=7f52ff&logo=kotlin&logoColor=7f52ff)](https://github.com/JetBrains/kotlin/releases/tag/v1.9.24)
[![Kotlin](https://img.shields.io/static/v1?label=Kotlin&message=v2.0.21&color=7f52ff&logo=kotlin&logoColor=7f52ff)](https://github.com/JetBrains/kotlin/releases/tag/v2.0.21)
[![Maven Central](https://img.shields.io/maven-central/v/io.kjson/kjson-yaml?label=Maven%20Central)](https://search.maven.org/search?q=g:%22io.kjson%22%20AND%20a:%22kjson-yaml%22)

Kotlin YAML processor.
Expand Down Expand Up @@ -140,25 +140,25 @@ in the test section of this project.

## Dependency Specification

The latest version of the library is 3.6, and it may be obtained from the Maven Central repository.
The latest version of the library is 3.7, and it may be obtained from the Maven Central repository.

### Maven
```xml
<dependency>
<groupId>io.kjson</groupId>
<artifactId>kjson-yaml</artifactId>
<version>3.6</version>
<version>3.7</version>
</dependency>
```
### Gradle
```groovy
implementation 'io.kjson:kjson-yaml:3.6'
implementation 'io.kjson:kjson-yaml:3.7'
```
### Gradle (kts)
```kotlin
implementation("io.kjson:kjson-yaml:3.6")
implementation("io.kjson:kjson-yaml:3.7")
```

Peter Wall

2024-12-15
2025-02-01
30 changes: 15 additions & 15 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
<modelVersion>4.0.0</modelVersion>

<artifactId>kjson-yaml</artifactId>
<version>3.6</version>
<version>3.7</version>
<name>Kotlin YAML processor</name>
<packaging>jar</packaging>
<url>https://github.com/pwall567/kjson-yaml</url>

<parent>
<groupId>io.kjson</groupId>
<artifactId>kjson-maven</artifactId>
<version>5.0</version>
<version>6.0</version>
</parent>

<properties>
Expand Down Expand Up @@ -62,32 +62,32 @@
<dependency>
<groupId>io.kjson</groupId>
<artifactId>kjson-core</artifactId>
<version>9.2</version>
<version>10.0</version>
</dependency>
<dependency>
<groupId>io.kjson</groupId>
<artifactId>kjson-pointer</artifactId>
<version>8.6</version>
<version>8.7</version>
</dependency>
<dependency>
<groupId>net.pwall.text</groupId>
<groupId>io.jstuff</groupId>
<artifactId>textmatcher</artifactId>
<version>2.4</version>
<version>3.0</version>
</dependency>
<dependency>
<groupId>net.pwall.text</groupId>
<groupId>io.kstuff</groupId>
<artifactId>string-mapper</artifactId>
<version>2.3</version>
<version>3.1</version>
</dependency>
<dependency>
<groupId>net.pwall.util</groupId>
<groupId>io.jstuff</groupId>
<artifactId>pipelines</artifactId>
<version>5.2</version>
<version>6.0</version>
</dependency>
<dependency>
<groupId>net.pwall.log</groupId>
<groupId>io.kstuff</groupId>
<artifactId>log-front-kotlin</artifactId>
<version>5.3.1</version>
<version>6.0</version>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
Expand All @@ -100,7 +100,7 @@
<dependency>
<groupId>io.kstuff</groupId>
<artifactId>should-test</artifactId>
<version>4.3</version>
<version>4.4</version>
<scope>test</scope>
</dependency>
<dependency>
Expand All @@ -109,9 +109,9 @@
<scope>test</scope>
</dependency>
<dependency>
<groupId>net.pwall.json</groupId>
<groupId>io.jstuff</groupId>
<artifactId>json-simple</artifactId>
<version>1.9</version>
<version>2.0</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/io/kjson/yaml/parser/Line.kt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

package io.kjson.yaml.parser

import net.pwall.text.TextMatcher
import io.jstuff.text.TextMatcher

/**
* An extension of [TextMatcher] to represent a YAML line.
Expand Down
13 changes: 7 additions & 6 deletions src/main/kotlin/io/kjson/yaml/parser/Parser.kt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ import java.io.Reader
import java.math.BigDecimal
import java.nio.charset.Charset

import io.jstuff.text.TextMatcher
import io.jstuff.pipeline.codec.DynamicReader
import io.kstuff.log.getLogger
import io.kstuff.text.StringMapper.buildResult
import io.kstuff.text.StringMapper.fromHexDigit
import io.kstuff.text.StringMapper.mapSubstrings

import io.kjson.JSONArray
import io.kjson.JSONBoolean
import io.kjson.JSONDecimal
Expand All @@ -45,12 +52,6 @@ import io.kjson.yaml.YAML.intTag
import io.kjson.yaml.YAML.strTag
import io.kjson.yaml.YAML.tagPrefix
import io.kjson.yaml.YAMLDocument
import net.pwall.log.getLogger
import net.pwall.pipeline.codec.DynamicReader
import net.pwall.text.StringMapper.buildResult
import net.pwall.text.StringMapper.fromHexDigit
import net.pwall.text.StringMapper.mapSubstrings
import net.pwall.text.TextMatcher

/**
* YAML Parser.
Expand Down
6 changes: 3 additions & 3 deletions src/test/kotlin/io/kjson/yaml/parser/LoggingTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ import kotlin.test.Test

import java.io.File

import io.kstuff.test.shouldBe
import io.jstuff.log.LogList
import io.kstuff.log.isDebug

import net.pwall.log.LogList
import net.pwall.log.isDebug
import io.kstuff.test.shouldBe

class LoggingTest {

Expand Down
5 changes: 3 additions & 2 deletions src/test/kotlin/io/kjson/yaml/parser/ParserTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ import io.kstuff.test.shouldBeSameInstance
import io.kstuff.test.shouldBeType
import io.kstuff.test.shouldThrow

import io.jstuff.json.JSONSimple
import io.kstuff.log.getLogger

import io.kjson.JSON.asArray
import io.kjson.JSON.asDecimal
import io.kjson.JSON.asInt
Expand All @@ -55,8 +58,6 @@ import io.kjson.yaml.YAML.intTag
import io.kjson.yaml.YAML.seqTag
import io.kjson.yaml.YAML.strTag
import io.kjson.yaml.YAMLException
import net.pwall.json.JSONSimple
import net.pwall.log.getLogger

class ParserTest {

Expand Down
3 changes: 2 additions & 1 deletion src/test/kotlin/io/kjson/yaml/parser/SpecExampleTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ import kotlin.test.Test

import java.io.File

import io.kstuff.log.getLogger

import io.kstuff.test.shouldBe
import io.kstuff.test.shouldBeType
import io.kstuff.test.shouldContainKey
Expand All @@ -42,7 +44,6 @@ import io.kjson.JSONString
import io.kjson.pointer.JSONPointer
import io.kjson.yaml.YAML.floatTag
import io.kjson.yaml.YAML.strTag
import net.pwall.log.getLogger

class SpecExampleTest {

Expand Down

0 comments on commit d20e1dc

Please sign in to comment.