Skip to content

Commit

Permalink
chore(package): release 0.1.0
Browse files Browse the repository at this point in the history
closes #13
  • Loading branch information
aelnonym committed Jun 8, 2023
1 parent 1057ca4 commit 357045d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
14 changes: 11 additions & 3 deletions androidenhancedvideoplayer/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}
Expand Down
6 changes: 6 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 357045d

Please sign in to comment.