sources (#13)
This commit is contained in:
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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)
|
||||||
|
Reference in New Issue
Block a user