Skip to content

Commit

Permalink
Merge pull request #223 from jsonschema2dataclass/fix-extension-exposure
Browse files Browse the repository at this point in the history
Migrate demo to Kotlin Dsl, fix extension visibility
  • Loading branch information
eirnym authored Dec 9, 2021
2 parents abff88b + 1a15f9e commit 0a30c9c
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 30 deletions.
27 changes: 0 additions & 27 deletions demo/java/build.gradle

This file was deleted.

26 changes: 26 additions & 0 deletions demo/java/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
plugins {
java
id("org.jsonschema2dataclass") version "4.0.1"
}

repositories {
mavenCentral()
}

tasks.withType<JavaCompile>().configureEach {
options.release.set(8)
}

dependencies {
implementation("javax.validation:validation-api:2.0.1.Final")
implementation("com.fasterxml.jackson.core:jackson-databind:2.13.0")

// see src/main/resources/json/external_dependencies.json
implementation("joda-time:joda-time:2.10.13")
}

jsonSchema2Pojo {
targetPackage.set("example")
propertyWordDelimiters.set("_")
source.setFrom(files("${project.rootDir}/src/main/resources/json"))
}
1 change: 0 additions & 1 deletion demo/java/settings.gradle

This file was deleted.

1 change: 1 addition & 0 deletions demo/java/settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rootProject.name = "gradle-jsonschema2dataclass-example"
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import org.gradle.api.tasks.PathSensitivity
import java.io.FileFilter
import javax.inject.Inject

internal abstract class Js2pConfiguration @Inject constructor(
abstract class Js2pConfiguration @Inject constructor(
private val name: String,
) : Named {
@Internal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import org.gradle.api.tasks.PathSensitive
import org.gradle.api.tasks.PathSensitivity
import javax.inject.Inject

internal abstract class Js2pExtension @Inject constructor(
abstract class Js2pExtension @Inject constructor(
name: String = DEFAULT_EXECUTION_NAME,
) : Js2pConfiguration(name) {

Expand Down

0 comments on commit 0a30c9c

Please sign in to comment.