From c1b178e1b712620f1a051c55d59646a468022e69 Mon Sep 17 00:00:00 2001 From: Pavlo Stavytskyi Date: Fri, 2 Jul 2021 22:18:43 +0300 Subject: [PATCH] updated maven publish scripts --- airin-starlark-libgen/build.gradle.kts | 2 ++ airin-starlark-stdlib/build.gradle.kts | 2 ++ buildSrc/src/main/kotlin/AirinPublications.kt | 10 ++++++++++ gradle.properties | 6 +++++- 4 files changed, 19 insertions(+), 1 deletion(-) diff --git a/airin-starlark-libgen/build.gradle.kts b/airin-starlark-libgen/build.gradle.kts index 29ebe76d..195547ca 100644 --- a/airin-starlark-libgen/build.gradle.kts +++ b/airin-starlark-libgen/build.gradle.kts @@ -1,5 +1,7 @@ plugins { kotlin("jvm") + id("org.jetbrains.dokka") + `maven-publish-config` } dependencies { diff --git a/airin-starlark-stdlib/build.gradle.kts b/airin-starlark-stdlib/build.gradle.kts index fe4b3c3a..996bbf24 100644 --- a/airin-starlark-stdlib/build.gradle.kts +++ b/airin-starlark-stdlib/build.gradle.kts @@ -1,6 +1,8 @@ plugins { kotlin("jvm") id("com.google.devtools.ksp") + id("org.jetbrains.dokka") + `maven-publish-config` } kotlin { diff --git a/buildSrc/src/main/kotlin/AirinPublications.kt b/buildSrc/src/main/kotlin/AirinPublications.kt index 03444045..7d5cf634 100644 --- a/buildSrc/src/main/kotlin/AirinPublications.kt +++ b/buildSrc/src/main/kotlin/AirinPublications.kt @@ -24,6 +24,16 @@ val airinPublications = mapOf( description = "A declarative, type-safe Starlark template engine that allows writing Starlark code templates in Kotlin." ), + "airin-starlark-stdlib" to Publication( + name = "Airin Starlark Standard Library", + description = "A Kotlin DSL that represent common Starlark rules and functions that include Java, Android, Kotlin and more." + ), + + "airin-starlark-libgen" to Publication( + name = "Airin Starlark Library Generator", + description = "A symbol processor for generating Kotlin DSL for custom Starlark rules and functions." + ), + "airin-migration-core" to Publication( name = "Airin Migration Core", description = "Core APIs for migration to Bazel." diff --git a/gradle.properties b/gradle.properties index 74ae4b8d..10a49263 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,4 +3,8 @@ kotlin.code.style=official # gradle plugin versions kotlinVersion=1.5.20 dokkaVersion=1.4.32 -kspVersion=1.5.20-1.0.0-beta04 \ No newline at end of file +kspVersion=1.5.20-1.0.0-beta04 + +# https://github.com/Kotlin/dokka/issues/1405 +#org.gradle.daemon=false +#org.gradle.jvmargs=-Xmx2048m \ No newline at end of file