-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
120 changed files
with
18,348 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
596 changes: 426 additions & 170 deletions
596
kobby-generator-kotlin/src/main/kotlin/io/github/ermadmi78/kobby/generator/kotlin/dto.kt
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
...resources/io/github/ermadmi78/kobby/testcases/mutable_cinema_jackson/build.gradle.kts.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import io.github.ermadmi78.kobby.kobby | ||
|
||
repositories { | ||
mavenLocal() | ||
mavenCentral() | ||
} | ||
|
||
buildscript { | ||
repositories { | ||
mavenLocal() | ||
mavenCentral() | ||
} | ||
} | ||
|
||
plugins { | ||
kotlin("jvm") version "testKotlinVersion" | ||
id("io.github.ermadmi78.kobby") | ||
} | ||
|
||
kobby { | ||
kotlin { | ||
scalars = mapOf( | ||
"Date" to typeOf("java.time", "LocalDate"), | ||
"JSON" to typeMap.parameterize(typeString, typeAny.nullable()) | ||
) | ||
dto { | ||
maxNumberOfFieldsForImmutableDtoClass = 0 | ||
maxNumberOfFieldsForImmutableInputClass = 0 | ||
} | ||
} | ||
} | ||
|
||
dependencies { | ||
// Add this dependency to enable Jackson annotation generation in DTO classes by Kobby | ||
compileOnly("com.fasterxml.jackson.core:jackson-annotations:testJacksonVersion") | ||
|
||
// Add this dependency to enable default Ktor adapters generation | ||
compileOnly("io.ktor:ktor-client-cio:testKtorVersion") | ||
|
||
// Add this dependencies to remove warning "Runtime JAR files in the classpath should have the same version" | ||
compileOnly(kotlin("stdlib")) | ||
compileOnly(kotlin("stdlib-jdk7")) | ||
compileOnly(kotlin("reflect")) | ||
} | ||
|
||
tasks { | ||
jar { | ||
enabled = false | ||
} | ||
} |
Oops, something went wrong.