sources (#13)
This commit is contained in:
@ -1,5 +1,11 @@
|
||||
# Changelog
|
||||
|
||||
## [0.0.7] - April 16th, 2021
|
||||
|
||||
### Added
|
||||
|
||||
- Include sources in publish 📚
|
||||
|
||||
## [0.0.6] - April 15th, 2021
|
||||
|
||||
### Added
|
||||
|
@ -1,5 +1,5 @@
|
||||
# Kompendium
|
||||
project.version=0.0.6
|
||||
project.version=0.0.7
|
||||
# Kotlin
|
||||
kotlin.code.style=official
|
||||
# Gradle
|
||||
|
@ -13,6 +13,10 @@ dependencies {
|
||||
testImplementation("io.ktor:ktor-server-test-host:1.5.3")
|
||||
}
|
||||
|
||||
java {
|
||||
withSourcesJar()
|
||||
}
|
||||
|
||||
publishing {
|
||||
repositories {
|
||||
maven {
|
||||
@ -27,6 +31,7 @@ publishing {
|
||||
publications {
|
||||
create<MavenPublication>("kompendium") {
|
||||
from(components["kotlin"])
|
||||
artifact(tasks.sourcesJar)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -85,7 +85,6 @@ object Kompendium {
|
||||
): Route {
|
||||
if (TResp::class != Unit::class) openApiSpec.components.schemas.putPairIfAbsent(objectSchemaPair(TResp::class))
|
||||
if (TReq::class != Unit::class) openApiSpec.components.schemas.putPairIfAbsent(objectSchemaPair(TReq::class))
|
||||
// openApiSpec.components.schemas.putPairIfAbsent(objectSchemaPair(TParam::class))
|
||||
return block.invoke()
|
||||
}
|
||||
|
||||
|
@ -50,3 +50,9 @@ enum class SimpleEnum {
|
||||
ONE,
|
||||
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)
|
||||
|
Reference in New Issue
Block a user