This commit is contained in:
Ryan Brink
2021-04-14 19:50:46 -04:00
committed by GitHub
parent 6eebaf15ea
commit 98a7a0a369
5 changed files with 18 additions and 2 deletions

View File

@ -1,5 +1,11 @@
# Changelog # Changelog
## [0.0.7] - April 16th, 2021
### Added
- Include sources in publish 📚
## [0.0.6] - April 15th, 2021 ## [0.0.6] - April 15th, 2021
### Added ### Added

View File

@ -1,5 +1,5 @@
# Kompendium # Kompendium
project.version=0.0.6 project.version=0.0.7
# Kotlin # Kotlin
kotlin.code.style=official kotlin.code.style=official
# Gradle # Gradle

View File

@ -13,6 +13,10 @@ dependencies {
testImplementation("io.ktor:ktor-server-test-host:1.5.3") testImplementation("io.ktor:ktor-server-test-host:1.5.3")
} }
java {
withSourcesJar()
}
publishing { publishing {
repositories { repositories {
maven { maven {
@ -27,6 +31,7 @@ publishing {
publications { publications {
create<MavenPublication>("kompendium") { create<MavenPublication>("kompendium") {
from(components["kotlin"]) from(components["kotlin"])
artifact(tasks.sourcesJar)
} }
} }
} }

View File

@ -85,7 +85,6 @@ object Kompendium {
): Route { ): Route {
if (TResp::class != Unit::class) openApiSpec.components.schemas.putPairIfAbsent(objectSchemaPair(TResp::class)) if (TResp::class != Unit::class) openApiSpec.components.schemas.putPairIfAbsent(objectSchemaPair(TResp::class))
if (TReq::class != Unit::class) openApiSpec.components.schemas.putPairIfAbsent(objectSchemaPair(TReq::class)) if (TReq::class != Unit::class) openApiSpec.components.schemas.putPairIfAbsent(objectSchemaPair(TReq::class))
// openApiSpec.components.schemas.putPairIfAbsent(objectSchemaPair(TParam::class))
return block.invoke() return block.invoke()
} }

View File

@ -50,3 +50,9 @@ enum class SimpleEnum {
ONE, ONE,
TWO TWO
} }
sealed class TestSealedClass(open val a: String)
data class SimpleTSC(val b: Int) : TestSealedClass("hey")
open class MediumTSC(override val a: String, val b: Int) : TestSealedClass(a)
data class WildTSC(val c: Boolean, val d: String, val e: Int) : MediumTSC(d, e)