Skip to content

Commit

Permalink
revert gradle publish
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelavoyan committed Mar 23, 2024
1 parent 8cc984c commit e3daaca
Showing 1 changed file with 117 additions and 43 deletions.
160 changes: 117 additions & 43 deletions VCL/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ android {
defaultConfig {
minSdk 24
targetSdk 34
versionName "2.4.1-rc1"
versionName "2.4.1-rc.1"
versionCode 135
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
Expand Down Expand Up @@ -104,46 +104,46 @@ artifacts {
archives androidSourcesJar
}

def performPublish = {
// Two artifacts, the `aar` (or `jar`) and the sources
if (project.plugins.findPlugin("com.android.library")) {
from components.release
} else {
from components.java
}

artifact androidSourcesJar

// Mostly self-explanatory metadata
pom {
name = getArtifactId()
// Library description
description = 'Velocity Career Labs Android library'
// Library Github URL
url = 'https://github.com/velocitycareerlabs/WalletAndroid'
licenses {
license {
name = 'Apache License 2.0'
// Library license
url = 'https://github.com/velocitycareerlabs/WalletAndroid/blob/dev/VCL/LICENSE'
}
}
developers {
developer {
id = 'velocitycareerlabs'
name = 'Michael Avoyan'
email = '[email protected]'
}
}

scm {
// Library info on Github
connection = 'scm:github.com/velocitycareerlabs/WalletAndroid.git'
developerConnection = 'scm:git:ssh://github.com/velocitycareerlabs/WalletAndroid.git'
url = 'https://github.com/velocitycareerlabs/WalletAndroid'
}
}
}
//def performPublish = {
//// Two artifacts, the `aar` (or `jar`) and the sources
// if (project.plugins.findPlugin("com.android.library")) {
// from components.release
// } else {
// from components.java
// }
//
// artifact androidSourcesJar
//
// // Mostly self-explanatory metadata
// pom {
// name = getArtifactId()
// // Library description
// description = 'Velocity Career Labs Android library'
// // Library Github URL
// url = 'https://github.com/velocitycareerlabs/WalletAndroid'
// licenses {
// license {
// name = 'Apache License 2.0'
// // Library license
// url = 'https://github.com/velocitycareerlabs/WalletAndroid/blob/dev/VCL/LICENSE'
// }
// }
// developers {
// developer {
// id = 'velocitycareerlabs'
// name = 'Michael Avoyan'
// email = '[email protected]'
// }
// }
//
// scm {
// // Library info on Github
// connection = 'scm:github.com/velocitycareerlabs/WalletAndroid.git'
// developerConnection = 'scm:git:ssh://github.com/velocitycareerlabs/WalletAndroid.git'
// url = 'https://github.com/velocitycareerlabs/WalletAndroid'
// }
// }
//}

afterEvaluate {
publishing {
Expand All @@ -158,14 +158,88 @@ afterEvaluate {
// version = "${vers}-${rcSuffix}"
version getVersionName()

performPublish
// Two artifacts, the `aar` (or `jar`) and the sources
if (project.plugins.findPlugin("com.android.library")) {
from components.release
} else {
from components.java
}

artifact androidSourcesJar

// Mostly self-explanatory metadata
pom {
name = getArtifactId()
// Library description
description = 'Velocity Career Labs Android library'
// Library Github URL
url = 'https://github.com/velocitycareerlabs/WalletAndroid'
licenses {
license {
name = 'Apache License 2.0'
// Library license
url = 'https://github.com/velocitycareerlabs/WalletAndroid/blob/dev/VCL/LICENSE'
}
}
developers {
developer {
id = 'velocitycareerlabs'
name = 'Michael Avoyan'
email = '[email protected]'
}
}

scm {
// Library info on Github
connection = 'scm:github.com/velocitycareerlabs/WalletAndroid.git'
developerConnection = 'scm:git:ssh://github.com/velocitycareerlabs/WalletAndroid.git'
url = 'https://github.com/velocitycareerlabs/WalletAndroid'
}
}
}
release(MavenPublication) {
groupId getGroupId()
artifactId getArtifactId()
version getVersionName()

performPublish
// Two artifacts, the `aar` (or `jar`) and the sources
if (project.plugins.findPlugin("com.android.library")) {
from components.release
} else {
from components.java
}

artifact androidSourcesJar

// Mostly self-explanatory metadata
pom {
name = getArtifactId()
// Library description
description = 'Velocity Career Labs Android library'
// Library Github URL
url = 'https://github.com/velocitycareerlabs/WalletAndroid'
licenses {
license {
name = 'Apache License 2.0'
// Library license
url = 'https://github.com/velocitycareerlabs/WalletAndroid/blob/dev/VCL/LICENSE'
}
}
developers {
developer {
id = 'velocitycareerlabs'
name = 'Michael Avoyan'
email = '[email protected]'
}
}

scm {
// Library info on Github
connection = 'scm:github.com/velocitycareerlabs/WalletAndroid.git'
developerConnection = 'scm:git:ssh://github.com/velocitycareerlabs/WalletAndroid.git'
url = 'https://github.com/velocitycareerlabs/WalletAndroid'
}
}
}
}
}
Expand Down

0 comments on commit e3daaca

Please sign in to comment.