Skip to content

Commit

Permalink
Revert "publish abi"
Browse files Browse the repository at this point in the history
This reverts commit 032dfb8.
  • Loading branch information
gtebrean committed Jan 9, 2025
1 parent 55fee39 commit 12cfc15
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 106 deletions.
65 changes: 15 additions & 50 deletions abi/build.gradle
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
Expand Down
65 changes: 14 additions & 51 deletions eea/build.gradle
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
Expand Down
9 changes: 4 additions & 5 deletions gradle/publish/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
apply plugin: 'maven-publish'
apply plugin: 'signing'
apply plugin: "de.marcphilipp.nexus-publish"
apply plugin: 'com.android.library'

publishing {
publications {
Expand All @@ -20,14 +19,14 @@ publishing {
}

scm {
def slug = project.name
def slug = rootProject.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"
url = "https://github.com/hyperledger/$slug"
connection = "scm:https://github.com/hyperledger/${slug}.git"
developerConnection = "scm:git://github.com/hyperledger/${slug}.git"
}

developers {
Expand Down

0 comments on commit 12cfc15

Please sign in to comment.