Skip to content

Commit

Permalink
add maven central publish plugin and config
Browse files Browse the repository at this point in the history
  • Loading branch information
SuddenH4X committed Aug 9, 2021
1 parent 889966e commit 0e0818d
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@ buildscript {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'de.mannodermaus.gradle.plugins:android-junit5:1.7.1.1'
classpath 'org.jlleitschuh.gradle:ktlint-gradle:10.1.0'
classpath 'io.github.gradle-nexus:publish-plugin:1.1.0'
}
}

apply plugin: 'io.github.gradle-nexus.publish-plugin'

allprojects {
repositories {
google()
Expand Down
24 changes: 24 additions & 0 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,27 @@ dependencies {
afterEvaluate {
lint.dependsOn ktlintCheck
}

ext {
PUBLISH_GROUP_ID = 'com.suddenh4x.ratingdialog'
PUBLISH_VERSION = '2.4.0'
PUBLISH_ARTIFACT_ID = 'awesome-app-rating'
PUBLISH_DESCRIPTION = 'A highly customizable Android library providing a dialog, which asks the user to rate ' +
'the app or give feedback. You can also use the library to show the Google in-app review easily under ' +
'certain conditions.'
PUBLISH_URL = 'https://github.com/SuddenH4X/awesome-app-rating'
PUBLISH_LICENSE_NAME = 'Apache License'
PUBLISH_LICENSE_URL =
'https://github.com/SuddenH4X/awesome-app-rating/blob/master/LICENSE'
PUBLISH_DEVELOPER_ID = 'SuddenH4X'
PUBLISH_DEVELOPER_NAME = 'Sascha Kühne'
PUBLISH_DEVELOPER_EMAIL = 'SuddenH4X@users.noreply.github.com'
PUBLISH_SCM_CONNECTION =
'scm:git:github.com/SuddenH4X/awesome-app-rating.git'
PUBLISH_SCM_DEVELOPER_CONNECTION =
'scm:git:ssh://github.com:SuddenH4X/awesome-app-rating.git'
PUBLISH_SCM_URL =
'https://github.com/SuddenH4X/awesome-app-rating/tree/master'
}

apply from: "${rootProject.projectDir}/scripts/publish-module.gradle"

0 comments on commit 0e0818d

Please sign in to comment.