Skip to content

Commit

Permalink
build: migrate from infrastructure-publish -> vanniktech.maven.publis…
Browse files Browse the repository at this point in the history
…h plugin
  • Loading branch information
sonulen committed May 29, 2024
1 parent 0c0f763 commit 842d8e2
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 18 deletions.
1 change: 1 addition & 0 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ java {
dependencies {
implementation(rmr.infrastructure.publish)
implementation(rmr.infrastructure.android)
implementation(libs.publish.gradlePlugin)
implementation(stack.gradle.android.cacheFixGradlePlugin)
implementation(stack.kotlin.gradlePlugin)
implementation(stack.detekt.gradlePlugin)
Expand Down
34 changes: 18 additions & 16 deletions buildSrc/src/main/kotlin/convention.publishing.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,31 +1,33 @@
import com.redmadrobot.build.dsl.*
import com.vanniktech.maven.publish.SonatypeHost

plugins {
id("com.redmadrobot.publish-config")
id("com.redmadrobot.publish")
id("com.vanniktech.maven.publish")
}

redmadrobot {
publishing {
signArtifacts = !isRunningOnCi
pom {
setGitHubProject("RedMadRobot/gears-android")
mavenPublishing {
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)
signAllPublications()

licenses {
mit()
}
pom {
name.convention(project.name)
description.convention(project.description)

developers {
developer(id = "osipxd", name = "Osip Fatkullin", email = "[email protected]")
developer(id = "sonulen", name = "Andrey Tolmachev", email = "[email protected]")
}
licenses {
mit()
}

developers {
developer(id = "osipxd", name = "Osip Fatkullin", email = "[email protected]")
developer(id = "sonulen", name = "Andrey Tolmachev", email = "[email protected]")
}

setGitHubProject("RedMadRobot/gears-android")
}
}

publishing {
repositories {
if (isRunningOnCi) githubPackages("RedMadRobot/gears-android")
if (isReleaseVersion && credentialsExist("ossrh")) ossrh()
if (isRunningOnCi) githubPackages("RedMadRobot/EventQueue")
}
}
6 changes: 4 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
[versions]
androidGradlePlugin = "8.4.0"
androidGradlePlugin = "8.4.1"
assertj-core = "3.25.1"
androidx-arch-core = "2.2.0"
viewbinding = "8.4.0"
viewbinding = "8.4.1"
publish-plugin = "0.28.0"

[libraries]
androidx-viewbinding = { module = "androidx.databinding:viewbinding", version.ref = "viewbinding" }
assertj-core = { module = "org.assertj:assertj-core", version.ref = "assertj-core" }
androidx-arch-core-testing = { module = "androidx.arch.core:core-testing", version.ref = "androidx-arch-core"}
android-gradlePlugin = { module = "com.android.tools.build:gradle", version.ref = "androidGradlePlugin" }
publish-gradlePlugin = { module = "com.vanniktech:gradle-maven-publish-plugin", version.ref = "publish-plugin" }

0 comments on commit 842d8e2

Please sign in to comment.