Skip to content

Commit

Permalink
Updated dependency versions
Browse files Browse the repository at this point in the history
  • Loading branch information
pwall567 committed Feb 9, 2025
1 parent 95c47f8 commit 3c84a03
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 19 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ The major and minor version numbers of this repository (but not patch numbers) m
[`json-kotlin-schema-codegen`](https://github.com/pwall567/json-kotlin-schema-codegen) library used by this Gradle
plugin.

## [0.116] - 2025-02-09
### Changed
- `build.gradle.kts`: updated dependencies on `json-kotlin-schema` and `json-kotlin-schema-codegen`, along with others
- `build.gradle.kts`: updated Kotlin version to 2.0.21
- tests: converted to `should-test` library

## [0.114] - 2025-01-20
### Changed
- `build.gradle.kts`: updated dependencies on `json-kotlin-schema` and `json-kotlin-schema-codegen`
Expand Down
8 changes: 4 additions & 4 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/json-kotlin-gradle/actions/workflows/build.yml/badge.svg)](https://github.com/pwall567/json-kotlin-gradle/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/net.pwall.json/json-kotlin-gradle?label=Maven%20Central)](https://search.maven.org/search?q=g:%22net.pwall.json%22%20AND%20a:%22json-kotlin-gradle%22)

Gradle JSON Schema code generation plugin.
Expand Down Expand Up @@ -31,7 +31,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath("net.pwall.json:json-kotlin-gradle:0.114")
classpath("net.pwall.json:json-kotlin-gradle:0.116")
}
}

Expand Down Expand Up @@ -311,7 +311,7 @@ buildscript {
mavenLocal()
}
dependencies {
classpath("net.pwall.json:json-kotlin-gradle:0.114")
classpath("net.pwall.json:json-kotlin-gradle:0.116")
}
}
```
Expand Down Expand Up @@ -353,4 +353,4 @@ moment it seems to be OK.

Peter Wall

2025-01-20
2025-02-09
24 changes: 12 additions & 12 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
* @(#) build.gradle.kts
*/

import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion

group = "net.pwall.json"
version = "0.114"
version = "0.116"
description = "Gradle Code Generation Plugin for JSON Schema"

val displayName = "JSON Schema Code Generation Plugin"
val projectURL = "https://github.com/pwall567/${project.name}"

plugins {
kotlin("jvm") version "1.9.24"
id("org.jetbrains.dokka") version "1.9.20"
kotlin("jvm") version "2.0.21"
id("org.jetbrains.dokka") version "2.0.0"
id("io.github.gradle-nexus.publish-plugin") version "1.1.0"
`kotlin-dsl`
`maven-publish`
Expand All @@ -26,14 +26,13 @@ repositories {

kotlin {
jvmToolchain(8)
compilerOptions {
languageVersion.set(KotlinVersion.KOTLIN_2_0)
apiVersion.set(KotlinVersion.KOTLIN_2_0)
}
}

tasks {
withType<KotlinCompile>().configureEach {
kotlinOptions {
languageVersion = "1.8"
}
}
val sourcesJar by creating(Jar::class) {
archiveClassifier.set("sources")
from(sourceSets["main"].allSource)
Expand Down Expand Up @@ -69,11 +68,12 @@ tasks {
dependencies {
implementation(kotlin("stdlib-jdk8"))
implementation(kotlin("gradle-plugin"))
implementation("net.pwall.json:json-kotlin-schema:0.53")
implementation("net.pwall.json:json-kotlin-schema-codegen:0.114")
implementation("io.kjson:kjson-pointer:8.6")
implementation("net.pwall.json:json-kotlin-schema:0.55")
implementation("net.pwall.json:json-kotlin-schema-codegen:0.116")
implementation("io.kjson:kjson-pointer:8.8")
testImplementation(kotlin("test"))
testImplementation(kotlin("test-junit"))
testImplementation("io.kstuff:should-test:4.4")
}

publishing {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
package net.pwall.json.kotlin.codegen.gradle

import kotlin.test.Test
import kotlin.test.assertTrue

import io.kstuff.test.shouldBeType

import org.gradle.kotlin.dsl.get
import org.gradle.testfixtures.ProjectBuilder
Expand All @@ -36,13 +37,13 @@ class JSONSchemaCodegenPluginTest {
@Test fun `should register codegen task`() {
val project = ProjectBuilder.builder().build()
project.pluginManager.apply(JSONSchemaCodegenPlugin::class.java)
assertTrue { project.tasks.getByName("generate") is JSONSchemaCodegenTask }
project.tasks.getByName("generate").shouldBeType<JSONSchemaCodegenTask>()
}

@Test fun `should register extension`() {
val project = ProjectBuilder.builder().build()
project.pluginManager.apply(JSONSchemaCodegenPlugin::class.java)
assertTrue { project.extensions[JSONSchemaCodegen.NAME] is JSONSchemaCodegen }
project.extensions[JSONSchemaCodegen.NAME].shouldBeType<JSONSchemaCodegen>()
}

}

0 comments on commit 3c84a03

Please sign in to comment.