-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This reverts commit 032dfb8.
- Loading branch information
Showing
3 changed files
with
33 additions
and
106 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 |
---|---|---|
@@ -1,70 +1,35 @@ | ||
plugins { | ||
id 'com.android.library' | ||
id 'maven-publish' id 'signing' | ||
id 'de.marcphilipp.nexus-publish' | ||
id 'maven-publish' | ||
} | ||
|
||
publishing { | ||
publications { | ||
maven(MavenPublication) { | ||
release(MavenPublication) { | ||
groupId = group | ||
artifactId = project.name | ||
version = version | ||
|
||
pom { | ||
name = project.name | ||
description.set(project.provider({ project.description })) | ||
url = 'https://web3j.io' | ||
|
||
licenses { | ||
license { | ||
name = 'The Apache License, Version 2.0' | ||
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt' | ||
} | ||
} | ||
|
||
scm { | ||
def slug = project.name | ||
if (project.hasProperty('rootProjectOverride')) { | ||
slug = project.rootProjectOverride | ||
} | ||
|
||
url = "https://github.com/hyperledger-web3j/$slug" | ||
connection = "scm:https://github.com/hyperledger-web3j/${slug}.git" | ||
developerConnection = "scm:git://github.com/hyperledger-web3j/${slug}.git" | ||
} | ||
artifact("$buildDir/outputs/aar/${project.name}-release.aar") | ||
|
||
developers { | ||
developer { | ||
id = 'conor10' | ||
name = 'Conor Svensson' | ||
email = '[email protected]' | ||
pom { | ||
withXml { | ||
def dependenciesNode = asNode().appendNode('dependencies') | ||
configurations.api.allDependencies.each { dependency -> | ||
def dependencyNode = dependenciesNode.appendNode('dependency') | ||
dependencyNode.appendNode('groupId', dependency.group) | ||
dependencyNode.appendNode('artifactId', dependency.name) | ||
dependencyNode.appendNode('version', dependency.version) | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
nexusPublishing { | ||
repositories { | ||
sonatype { | ||
username = System.getenv('OSSRH_USERNAME') | ||
password = System.getenv('OSSRH_PASSWORD') | ||
} | ||
mavenLocal() | ||
} | ||
} | ||
|
||
|
||
nexusStaging { | ||
username System.getenv('OSSRH_USERNAME') | ||
password System.getenv('OSSRH_PASSWORD') | ||
packageGroup = rootProject.group | ||
} | ||
|
||
signing { | ||
sign publishing.publications.maven | ||
def gpgSecretKey = System.getenv('OSSRH_GPG_SECRET_KEY') | ||
def password = System.getenv('OSSRH_GPG_SECRET_KEY_PASSWORD') | ||
useInMemoryPgpKeys(gpgSecretKey, password) | ||
} | ||
android { | ||
namespace "com.org.web3j" | ||
compileSdkVersion 33 | ||
|
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 |
---|---|---|
@@ -1,72 +1,35 @@ | ||
plugins { | ||
id 'com.android.library' // Android library plugin for Android compatibility | ||
id 'maven-publish' | ||
id 'signing' | ||
id 'de.marcphilipp.nexus-publish' | ||
} | ||
|
||
publishing { | ||
publications { | ||
maven(MavenPublication) { | ||
release(MavenPublication) { | ||
groupId = group | ||
artifactId = project.name | ||
version = version | ||
|
||
pom { | ||
name = project.name | ||
description.set(project.provider({ project.description })) | ||
url = 'https://web3j.io' | ||
artifact("$buildDir/outputs/aar/${project.name}-release.aar") | ||
|
||
licenses { | ||
license { | ||
name = 'The Apache License, Version 2.0' | ||
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt' | ||
} | ||
} | ||
|
||
scm { | ||
def slug = project.name | ||
if (project.hasProperty('rootProjectOverride')) { | ||
slug = project.rootProjectOverride | ||
} | ||
|
||
url = "https://github.com/hyperledger-web3j/$slug" | ||
connection = "scm:https://github.com/hyperledger-web3j/${slug}.git" | ||
developerConnection = "scm:git://github.com/hyperledger-web3j/${slug}.git" | ||
} | ||
|
||
developers { | ||
developer { | ||
id = 'conor10' | ||
name = 'Conor Svensson' | ||
email = '[email protected]' | ||
pom { | ||
withXml { | ||
def dependenciesNode = asNode().appendNode('dependencies') | ||
configurations.api.allDependencies.each { dependency -> | ||
def dependencyNode = dependenciesNode.appendNode('dependency') | ||
dependencyNode.appendNode('groupId', dependency.group) | ||
dependencyNode.appendNode('artifactId', dependency.name) | ||
dependencyNode.appendNode('version', dependency.version) | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
nexusPublishing { | ||
repositories { | ||
sonatype { | ||
username = System.getenv('OSSRH_USERNAME') | ||
password = System.getenv('OSSRH_PASSWORD') | ||
} | ||
mavenLocal() | ||
} | ||
} | ||
|
||
|
||
nexusStaging { | ||
username System.getenv('OSSRH_USERNAME') | ||
password System.getenv('OSSRH_PASSWORD') | ||
packageGroup = rootProject.group | ||
} | ||
|
||
signing { | ||
sign publishing.publications.maven | ||
def gpgSecretKey = System.getenv('OSSRH_GPG_SECRET_KEY') | ||
def password = System.getenv('OSSRH_GPG_SECRET_KEY_PASSWORD') | ||
useInMemoryPgpKeys(gpgSecretKey, password) | ||
} | ||
|
||
android { | ||
namespace 'org.web3j' | ||
compileSdkVersion 34 | ||
|
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