Skip to content

Commit

Permalink
CI change 10
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterBin committed Jun 4, 2024
1 parent 4443251 commit 1c9177c
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 129 deletions.
45 changes: 26 additions & 19 deletions common-scripts.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
apply plugin: 'maven-publish'

android {

Expand Down Expand Up @@ -54,6 +55,31 @@ ext {
setUpSigning = this.&setUpSigning
}

afterEvaluate {
publishing {
publications {
maven(MavenPublication) {
groupId = library.publishGroupId
artifactId = getArtifactId(project)
version = library.publishVersion
from components.release

customizePom(pom)
}
}
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/tangem/tangem-sdk-android")
credentials {
username = "$githubUser"
password = "$githubPass"
}
}
}
}
}

String getNamespace(Project project) {
return "${library.groupId}.${project.name.replace("-", ".")}"
}
Expand All @@ -76,22 +102,3 @@ void customizePom(MavenPom pom) {
}
}
}

boolean isReleaseVersion() {
return !project.version.endsWith("SNAPSHOT")
}

void setUpRepositories(RepositoryHandler handler) {
handler.maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/tangem/vico")
credentials {
username = "$githubUser"
password = "$githubPass"
}
}
}

void setUpSigning(SigningExtension signing, MavenPublication publication) {

}
22 changes: 0 additions & 22 deletions vico/compose-m2/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -44,28 +44,6 @@ android {
}
}

afterEvaluate {

publishing {

publications {

maven(MavenPublication) {

groupId = library.publishGroupId
artifactId = getArtifactId(project)
version = library.publishVersion
from components.release

customizePom(pom)
setUpRepositories(repositories)
}
}
}

setUpSigning(signing, publishing.publications.VicoComposeM2)
}

dependencies {

api project(":vico:compose")
Expand Down
22 changes: 0 additions & 22 deletions vico/compose-m3/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,28 +45,6 @@ android {
}
}

afterEvaluate {

publishing {

publications {

maven(MavenPublication) {

groupId = library.publishGroupId
artifactId = getArtifactId(project)
version = library.publishVersion
from components.release

customizePom(pom)
setUpRepositories(repositories)
}
}
}

setUpSigning(signing, publishing.publications.VicoComposeM3)
}

dependencies {

api project(":vico:compose")
Expand Down
22 changes: 0 additions & 22 deletions vico/compose/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,28 +45,6 @@ android {
}
}

afterEvaluate {

publishing {

publications {

maven(MavenPublication) {

groupId = library.publishGroupId
artifactId = getArtifactId(project)
version = library.publishVersion
from components.release

customizePom(pom)
setUpRepositories(repositories)
}
}
}

setUpSigning(signing, publishing.publications.VicoCompose)
}

dependencies {

api project(":vico:core")
Expand Down
22 changes: 0 additions & 22 deletions vico/core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,28 +36,6 @@ android {
}
}

afterEvaluate {

publishing {

publications {

maven(MavenPublication) {

groupId = library.publishGroupId
artifactId = getArtifactId(project)
version = library.publishVersion
from components.release

customizePom(pom)
setUpRepositories(repositories)
}
}
}

setUpSigning(signing, publishing.publications.VicoCore)
}

dependencies {
implementation libs.androidXAnnotation
implementation libs.coroutinesCore
Expand Down
22 changes: 0 additions & 22 deletions vico/views/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,28 +34,6 @@ android {
}
}

afterEvaluate {

publishing {

publications {

maven(MavenPublication) {

groupId = library.publishGroupId
artifactId = getArtifactId(project)
version = library.publishVersion
from components.release

customizePom(pom)
setUpRepositories(repositories)
}
}
}

setUpSigning(signing, publishing.publications.VicoView)
}

dependencies {

api project(":vico:core")
Expand Down

0 comments on commit 1c9177c

Please sign in to comment.