From 357045d48ff984d73094766841c4e1fbde632a71 Mon Sep 17 00:00:00 2001 From: Andrey Freitas Date: Thu, 8 Jun 2023 11:13:29 -0300 Subject: [PATCH] chore(package): release 0.1.0 closes #13 --- androidenhancedvideoplayer/build.gradle | 14 +++++++++++--- gradle.properties | 6 ++++++ 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/androidenhancedvideoplayer/build.gradle b/androidenhancedvideoplayer/build.gradle index 1d7c3e4e..e131fd54 100644 --- a/androidenhancedvideoplayer/build.gradle +++ b/androidenhancedvideoplayer/build.gradle @@ -73,14 +73,22 @@ dependencies { } afterEvaluate { + def VERSION_NAME = project.properties.get("VERSION_NAME").toString() + def GROUP_ID = project.properties.get("GROUP").toString() + def ARTIFACT_ID = project.properties.get("ARTIFACT_ID").toString() + + if (!VERSION_NAME || !GROUP_ID || !ARTIFACT_ID) { + throw new GradleException("Bad Publishing Configuration") + } + publishing { publications { release(MavenPublication) { from components.release - groupId = 'com.github.profusion' - artifactId = 'android-enhanced-video-player' - version = '1.0' + groupId = GROUP_ID + artifactId = ARTIFACT_ID + version = VERSION_NAME } } } diff --git a/gradle.properties b/gradle.properties index 2cbd6d19..d227917e 100644 --- a/gradle.properties +++ b/gradle.properties @@ -21,3 +21,9 @@ kotlin.code.style=official # resources declared in the library itself and none from the library's dependencies, # thereby reducing the size of the R class for that library android.nonTransitiveRClass=true +# Library version +VERSION_NAME=0.1.0 +# Jitpack package +GROUP=com.github.profusion +# Artifact ID +ARTIFACT_ID=android-enhanced-video-player