Skip to content

Commit

Permalink
Set repo owner/name on root projects
Browse files Browse the repository at this point in the history
  • Loading branch information
Virtlink committed Jul 11, 2024
1 parent 55319bf commit 0ea16f1
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 31 deletions.
14 changes: 12 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
import org.metaborg.convention.MavenPublishConventionExtension

// Workaround for issue: https://youtrack.jetbrains.com/issue/KTIJ-19369
@Suppress("DSL_SCOPE_VIOLATION")
plugins {
id("org.metaborg.convention.root-project")
alias(libs.plugins.gitonium)
}

// Workaround for issue: https://github.com/gradle/gradle/issues/20131
println("")
allprojects {
group = "org.metaborg"

pluginManager.withPlugin("org.metaborg.convention.maven-publish") {
extensions.configure(MavenPublishConventionExtension::class.java) {
repoOwner.set("metaborg")
repoName.set("log")
}
}
}
7 changes: 0 additions & 7 deletions log.api/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,10 @@ plugins {
id("org.metaborg.convention.maven-publish")
}

group = "org.metaborg"

dependencies {
compileOnly(libs.checkerframework.android)
}

mavenPublishConvention {
repoOwner.set("metaborg")
repoName.set("log")
}

publishing {
publications {
create<MavenPublication>("mavenJava") {
Expand Down
7 changes: 0 additions & 7 deletions log.backend.logback/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,13 @@ plugins {
id("org.metaborg.convention.maven-publish")
}

group = "org.metaborg"

dependencies {
api(project(":log.api"))
api(libs.logback)

compileOnly(libs.checkerframework.android)
}

mavenPublishConvention {
repoOwner.set("metaborg")
repoName.set("log")
}

publishing {
publications {
create<MavenPublication>("mavenJava") {
Expand Down
7 changes: 0 additions & 7 deletions log.backend.slf4j/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,13 @@ plugins {
id("org.metaborg.convention.maven-publish")
}

group = "org.metaborg"

dependencies {
api(project(":log.api"))
api(libs.slf4j.api)

compileOnly(libs.checkerframework.android)
}

mavenPublishConvention {
repoOwner.set("metaborg")
repoName.set("log")
}

publishing {
publications {
create<MavenPublication>("mavenJava") {
Expand Down
7 changes: 0 additions & 7 deletions log.dagger/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ plugins {
id("org.metaborg.convention.maven-publish")
}

group = "org.metaborg"

dependencies {
api(project(":log.api"))
api(libs.dagger)
Expand All @@ -15,11 +13,6 @@ dependencies {
compileOnly(libs.checkerframework.android)
}

mavenPublishConvention {
repoOwner.set("metaborg")
repoName.set("log")
}

publishing {
publications {
create<MavenPublication>("mavenJava") {
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pluginManagement {
}

plugins {
id("org.metaborg.convention.settings") version "0.0.11"
id("org.metaborg.convention.settings") version "0.0.13"
}


Expand Down

0 comments on commit 0ea16f1

Please sign in to comment.