Skip to content

Commit

Permalink
adjust since in KDoc, we did not release 0.1.0 but straight 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
robstoll committed Jan 10, 2024
1 parent e3cf2f5 commit 71c9656
Show file tree
Hide file tree
Showing 22 changed files with 305 additions and 307 deletions.
24 changes: 11 additions & 13 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ kotlin {
}

nexusPublishing {
repositories {
sonatype()
}
repositories {
sonatype()
}
}

val packageName = "com.tegonal.minimalist"
Expand Down Expand Up @@ -89,7 +89,7 @@ val generate: TaskProvider<Task> = tasks.register("generate") {
|/**
| * Represents an [Args] with $upperNumber argument${if (upperNumber > 1) "s" else ""}.
| *
| * @since 0.1.0
| * @since 1.0.0
| */
|interface Args$upperNumber<$typeArgs>: Args {
|
Expand All @@ -101,7 +101,7 @@ val generate: TaskProvider<Task> = tasks.register("generate") {
| /**
| * The value of argument $it.
| *
| * @since 0.1.0
| * @since 1.0.0
| */
| val a$it: A$it
""".trimMargin()
Expand All @@ -114,7 +114,7 @@ val generate: TaskProvider<Task> = tasks.register("generate") {
| /**
| * The representation of argument $it.
| *
| * @since 0.1.0
| * @since 1.0.0
| */
| val representation$it: String?
""".trimMargin()
Expand All @@ -133,7 +133,7 @@ val generate: TaskProvider<Task> = tasks.register("generate") {
| * !! No backward compatibility guarantees !!
| * Re-use on own risk
| *
| * @since 0.1.0
| * @since 1.0.0
| */
|internal data class DefaultArgs$upperNumber<$typeArgs>(
| $constructorProperties,
Expand Down Expand Up @@ -167,7 +167,7 @@ val generate: TaskProvider<Task> = tasks.register("generate") {
| *
| * @return The newly created [Args$upperNumber].
| *
| * @since 0.1.0
| * @since 1.0.0
| */
| fun withArg$index(value: A$index, representation: String? = null): Args$upperNumber<$typeArgs>
|
Expand Down Expand Up @@ -201,7 +201,7 @@ val generate: TaskProvider<Task> = tasks.register("generate") {
| *
| * @return The newly created [Args$upperNumber3].
| *
| * @since 0.1.0
| * @since 1.0.0
| */
| fun <$typeArgs2> append(
| arg${upperNumber2}: Args${upperNumber2}<$typeArgs2>
Expand Down Expand Up @@ -246,7 +246,7 @@ val generate: TaskProvider<Task> = tasks.register("generate") {
| *
| * @return The newly created [Args$upperNumber4].
| *
| * @since 0.1.0
| * @since 1.0.0
| */
| fun dropArg$index(): Args${upperNumber4}<$typeArgs4>
|
Expand Down Expand Up @@ -297,7 +297,7 @@ val generate: TaskProvider<Task> = tasks.register("generate") {
}
}
| *
| * @since 0.1.0
| * @since 1.0.0
| */
|fun <$typeArgs> Args.Companion.of(
| $parameters,
Expand All @@ -310,8 +310,6 @@ val generate: TaskProvider<Task> = tasks.register("generate") {
|
""".trimMargin()
)


}

val argsOfFile = packageDir.resolve("argsOf.kt")
Expand Down
26 changes: 13 additions & 13 deletions src/main/generated/kotlin/com/tegonal/minimalist/Args1.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@ package com.tegonal.minimalist
/**
* Represents an [Args] with 1 argument.
*
* @since 0.1.0
* @since 1.0.0
*/
interface Args1<A1>: Args {
/**
* The value of argument 1.
*
* @since 0.1.0
* @since 1.0.0
*/
val a1: A1

/**
* The representation of argument 1.
*
* @since 0.1.0
* @since 1.0.0
*/
val representation1: String?

Expand All @@ -33,7 +33,7 @@ interface Args1<A1>: Args {
*
* @return The newly created [Args1].
*
* @since 0.1.0
* @since 1.0.0
*/
fun withArg1(value: A1, representation: String? = null): Args1<A1>

Expand All @@ -43,7 +43,7 @@ interface Args1<A1>: Args {
*
* @return The newly created [Args2].
*
* @since 0.1.0
* @since 1.0.0
*/
fun <A2> append(
arg1: Args1<A2>
Expand All @@ -55,7 +55,7 @@ interface Args1<A1>: Args {
*
* @return The newly created [Args3].
*
* @since 0.1.0
* @since 1.0.0
*/
fun <A2, A3> append(
arg2: Args2<A2, A3>
Expand All @@ -67,7 +67,7 @@ interface Args1<A1>: Args {
*
* @return The newly created [Args4].
*
* @since 0.1.0
* @since 1.0.0
*/
fun <A2, A3, A4> append(
arg3: Args3<A2, A3, A4>
Expand All @@ -79,7 +79,7 @@ interface Args1<A1>: Args {
*
* @return The newly created [Args5].
*
* @since 0.1.0
* @since 1.0.0
*/
fun <A2, A3, A4, A5> append(
arg4: Args4<A2, A3, A4, A5>
Expand All @@ -91,7 +91,7 @@ interface Args1<A1>: Args {
*
* @return The newly created [Args6].
*
* @since 0.1.0
* @since 1.0.0
*/
fun <A2, A3, A4, A5, A6> append(
arg5: Args5<A2, A3, A4, A5, A6>
Expand All @@ -103,7 +103,7 @@ interface Args1<A1>: Args {
*
* @return The newly created [Args7].
*
* @since 0.1.0
* @since 1.0.0
*/
fun <A2, A3, A4, A5, A6, A7> append(
arg6: Args6<A2, A3, A4, A5, A6, A7>
Expand All @@ -115,7 +115,7 @@ interface Args1<A1>: Args {
*
* @return The newly created [Args8].
*
* @since 0.1.0
* @since 1.0.0
*/
fun <A2, A3, A4, A5, A6, A7, A8> append(
arg7: Args7<A2, A3, A4, A5, A6, A7, A8>
Expand All @@ -127,7 +127,7 @@ interface Args1<A1>: Args {
*
* @return The newly created [Args9].
*
* @since 0.1.0
* @since 1.0.0
*/
fun <A2, A3, A4, A5, A6, A7, A8, A9> append(
arg8: Args8<A2, A3, A4, A5, A6, A7, A8, A9>
Expand All @@ -139,7 +139,7 @@ interface Args1<A1>: Args {
*
* @return The newly created [Args10].
*
* @since 0.1.0
* @since 1.0.0
*/
fun <A2, A3, A4, A5, A6, A7, A8, A9, A10> append(
arg9: Args9<A2, A3, A4, A5, A6, A7, A8, A9, A10>
Expand Down
Loading

0 comments on commit 71c9656

Please sign in to comment.