diff --git a/build.gradle b/build.gradle index 6c07fa2..28624d7 100644 --- a/build.gradle +++ b/build.gradle @@ -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() diff --git a/library/build.gradle b/library/build.gradle index b0aaeec..d0afd9d 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -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"