-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8cc984c
commit e3daaca
Showing
1 changed file
with
117 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
|
@@ -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 { | ||
|
@@ -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' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|