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

Co-authored-by: Osip Fatkullin <[email protected]>
  • Loading branch information
sonulen and osipxd committed Jun 4, 2024
1 parent 4601637 commit 87e4d2f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 17 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
32 changes: 17 additions & 15 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, automaticRelease = true)
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()
}
}
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 87e4d2f

Please sign in to comment.