-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: migrate from infrastructure-publish -> vanniktech.maven.publis…
…h plugin
- Loading branch information
Showing
3 changed files
with
23 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 18 additions & 16 deletions
34
buildSrc/src/main/kotlin/convention.publishing.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" } |