Skip to content

Commit

Permalink
Disable publishing the test project
Browse files Browse the repository at this point in the history
  • Loading branch information
wkal-pubnub committed Nov 29, 2024
1 parent e117611 commit 61a2ba7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,17 @@ import org.jlleitschuh.gradle.ktlint.KtlintPlugin
class PubNubSharedPlugin : Plugin<Project> {
override fun apply(target: Project) {
with(target) {
apply<MavenPublishPlugin>()
apply<KtlintPlugin>()

extensions.configure<PublishingExtension> {
repositories {
it.maven(uri(rootProject.layout.buildDirectory.dir("repo"))) { ->
name = "repo"
if (!target.name.endsWith("-test")) {
apply<MavenPublishPlugin>()
extensions.configure<PublishingExtension> {
repositories {
it.maven(uri(rootProject.layout.buildDirectory.dir("repo"))) { ->
name = "repo"
}
}
}
}
apply<KtlintPlugin>()

group = providers.gradleProperty("GROUP").get()
version = providers.gradleProperty("VERSION_NAME").get()
Expand Down
2 changes: 1 addition & 1 deletion pubnub-kotlin/pubnub-kotlin-test/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import java.util.Properties

plugins {
alias(libs.plugins.benmanes.versions)
alias(libs.plugins.codingfeline.buildkonfig)
id("pubnub.shared")
id("pubnub.ios-simulator-test")
id("pubnub.base.multiplatform")
alias(libs.plugins.codingfeline.buildkonfig)
}

kotlin {
Expand Down

0 comments on commit 61a2ba7

Please sign in to comment.