Skip to content

Commit

Permalink
build: update readme to comply with jitpack
Browse files Browse the repository at this point in the history
  • Loading branch information
ptsiogas4 committed Apr 1, 2022
1 parent f9d33ed commit 6b151b2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 32 deletions.
2 changes: 0 additions & 2 deletions .idea/sonarlint/issuestore/index.pb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![codebeat badge](https://codebeat.co/badges/085851e5-61df-482f-a5a7-5af0cad123e7)](https://codebeat.co/projects/github-com-ptsiogas4-secureboxhelper-master)
[![CodeFactor](https://www.codefactor.io/repository/github/ptsiogas4/secureboxhelper/badge)](https://www.codefactor.io/repository/github/ptsiogas4/secureboxhelper)

[![Release](https://jitpack.io/v/User/Repo.svg)](https://jitpack.io/#User/Repo)
# secureBoxHelper
UPDATE: From the 1.3.1 we have changed the publication method to use the "maven-publish" plugin. All versions below 1.3.1 are considered deprecated.
So see below the implementation changes.
Expand Down Expand Up @@ -30,7 +30,7 @@ maven { url 'https://jitpack.io' }
dependencies {
implementation 'com.ptsiogas4:securebox:1.3.1'
implementation 'com.github.ptsiogas4:secureBoxHelper:1.3.1'
}
Expand Down
33 changes: 5 additions & 28 deletions securebox/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,44 +3,21 @@ apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'maven-publish'

task sourceJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier "sources"
}

ext {
libraryVersion = "1.3.1"
libraryGroupId = "com.ptsiogas4"
libraryArtifactId = "secure-box"
libraryGroupId = "com.github.ptsiogas4"
libraryArtifactId = "secureBoxHelper"
}

group = libraryGroupId

afterEvaluate {
publishing {
publications {
lib(MavenPublication) {
release(MavenPublication) {
// Applies the component for the release build variant.
from components.release
groupId libraryGroupId
artifactId libraryArtifactId
artifact(sourceJar)
artifact(bundleReleaseAar)
version libraryVersion

pom.withXml {
println "start depedencies"
def dependenciesNode = asNode().appendNode('dependencies')
configurations.releaseRuntimePublication.allDependencies.each { dependency ->
if (dependency.group != null && dependency.version != null && dependency.name != "unspecified") {
println "PTDepedency: ${dependency.group}:${dependency.name}:${dependency.version}"
def dependencyNode = dependenciesNode.appendNode('dependency')
dependencyNode.appendNode('groupId', dependency.group)
dependencyNode.appendNode('artifactId', dependency.name)
dependencyNode.appendNode('version', dependency.version)
}
}
println "end releaseRuntimePublication"
println "end depedencies"
}
}
}
}
Expand Down

0 comments on commit 6b151b2

Please sign in to comment.