Skip to content

Commit

Permalink
replace configure-maven-publish.gradle script with convention plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
RBusarow committed Jun 23, 2022
1 parent 6d9a7d4 commit 93d0e83
Show file tree
Hide file tree
Showing 17 changed files with 16 additions and 57 deletions.
10 changes: 0 additions & 10 deletions .buildscript/configure-maven-publish.gradle

This file was deleted.

3 changes: 1 addition & 2 deletions internal-testing-utils/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
plugins {
`kotlin-jvm`
published
}

apply(from = rootProject.file(".buildscript/configure-maven-publish.gradle"))

dependencies {
implementation(libs.kotlin.jdk8)

Expand Down
4 changes: 1 addition & 3 deletions trace-encoder/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
plugins {
`kotlin-jvm`
id("com.google.devtools.ksp")
id("com.vanniktech.maven.publish")
published
}

apply(from = rootProject.file(".buildscript/configure-maven-publish.gradle"))

dependencies {
compileOnly(libs.jetbrains.annotations)
compileOnly(libs.squareup.moshi.codegen)
Expand Down
4 changes: 1 addition & 3 deletions workflow-config/config-android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ plugins {
id("com.android.library")
`kotlin-android`
`android-defaults`
id("org.jetbrains.dokka")
published
}

android {
Expand All @@ -16,8 +16,6 @@ android {
}
}

apply(from = rootProject.file(".buildscript/configure-maven-publish.gradle"))

dependencies {
api(project(":workflow-runtime"))
}
4 changes: 1 addition & 3 deletions workflow-config/config-jvm/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
`java-library`
`kotlin-jvm`
id("org.jetbrains.dokka")
published
}

tasks.withType<Test> {
Expand All @@ -18,8 +18,6 @@ tasks.withType<Test> {
}
}

apply(from = rootProject.file(".buildscript/configure-maven-publish.gradle"))

dependencies {
api(project(":workflow-runtime"))
}
4 changes: 1 addition & 3 deletions workflow-core/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
plugins {
`kotlin-multiplatform`
id("org.jetbrains.dokka")
published
}

apply(from = rootProject.file(".buildscript/configure-maven-publish.gradle"))

kotlin {
jvm { withJava() }
ios()
Expand Down
4 changes: 1 addition & 3 deletions workflow-runtime/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
`kotlin-multiplatform`
id("org.jetbrains.dokka")
published
id("org.jetbrains.kotlinx.benchmark")
}

apply(from = rootProject.file(".buildscript/configure-maven-publish.gradle"))

kotlin {
jvm {
compilations {
Expand Down
4 changes: 1 addition & 3 deletions workflow-rx2/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
plugins {
`kotlin-jvm`
id("org.jetbrains.dokka")
published
}

apply(from = rootProject.file(".buildscript/configure-maven-publish.gradle"))

dependencies {
compileOnly(libs.jetbrains.annotations)

Expand Down
4 changes: 1 addition & 3 deletions workflow-testing/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
plugins {
`java-library`
`kotlin-jvm`
id("org.jetbrains.dokka")
published
}

tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
Expand All @@ -20,8 +20,6 @@ tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
}
}

apply(from = rootProject.file(".buildscript/configure-maven-publish.gradle"))

dependencies {
compileOnly(libs.jetbrains.annotations)

Expand Down
4 changes: 1 addition & 3 deletions workflow-tracing/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
plugins {
`kotlin-jvm`
id("com.vanniktech.maven.publish")
published
}

apply(from = rootProject.file(".buildscript/configure-maven-publish.gradle"))

dependencies {
compileOnly(libs.jetbrains.annotations)

Expand Down
4 changes: 1 addition & 3 deletions workflow-ui/compose-tooling/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@ plugins {
`kotlin-android`
`android-defaults`
`android-ui-tests`
id("org.jetbrains.dokka")
published
}

apply(from = rootProject.file(".buildscript/configure-maven-publish.gradle"))

android {
buildFeatures.compose = true
composeOptions {
Expand Down
4 changes: 1 addition & 3 deletions workflow-ui/compose/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@ plugins {
`kotlin-android`
`android-defaults`
`android-ui-tests`
id("org.jetbrains.dokka")
published
}

apply(from = rootProject.file(".buildscript/configure-maven-publish.gradle"))

android {
buildFeatures.compose = true
composeOptions {
Expand Down
4 changes: 1 addition & 3 deletions workflow-ui/container-android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@ plugins {
`kotlin-android`
`android-defaults`
`android-ui-tests`
id("org.jetbrains.dokka")
published
}

apply(from = rootProject.file(".buildscript/configure-maven-publish.gradle"))

dependencies {
api(project(":workflow-core"))
api(project(":workflow-ui:core-android"))
Expand Down
4 changes: 1 addition & 3 deletions workflow-ui/container-common/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
plugins {
`kotlin-jvm`
id("org.jetbrains.dokka")
published
}

apply(from = rootProject.file(".buildscript/configure-maven-publish.gradle"))

dependencies {
api(project(":workflow-ui:core-common"))
api(libs.kotlin.jdk6)
Expand Down
4 changes: 1 addition & 3 deletions workflow-ui/core-android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@ plugins {
`kotlin-android`
`android-defaults`
`android-ui-tests`
id("org.jetbrains.dokka")
published
}

apply(from = rootProject.file(".buildscript/configure-maven-publish.gradle"))

dependencies {
compileOnly(libs.androidx.viewbinding)

Expand Down
4 changes: 1 addition & 3 deletions workflow-ui/core-common/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
plugins {
`kotlin-jvm`
id("org.jetbrains.dokka")
published
}

apply(from = rootProject.file(".buildscript/configure-maven-publish.gradle"))

dependencies {
api(libs.kotlin.jdk6)
api(libs.squareup.okio)
Expand Down
4 changes: 1 addition & 3 deletions workflow-ui/radiography/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@ plugins {
`kotlin-android`
`android-defaults`
`android-ui-tests`
id("org.jetbrains.dokka")
published
}

apply(from = rootProject.file(".buildscript/configure-maven-publish.gradle"))

android {
// See https://github.com/Kotlin/kotlinx.coroutines/issues/1064#issuecomment-479412940
packagingOptions.exclude("**/*.kotlin_*")
Expand Down

0 comments on commit 93d0e83

Please sign in to comment.