Skip to content

Commit

Permalink
pom configuaration added
Browse files Browse the repository at this point in the history
Signed-off-by: Shashank Kumar <shashank.kumar.phe22@itbhu.ac.in>
  • Loading branch information
shashankiitbhu committed Dec 6, 2024
1 parent af4c671 commit 3d5c51e
Show file tree
Hide file tree
Showing 16 changed files with 211 additions and 55 deletions.
18 changes: 15 additions & 3 deletions abi/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,23 @@ plugins {
publishing {
publications {
release(MavenPublication) {
groupId = 'org.web3j'
artifactId = 'abi'
version = '4.12.4'
groupId = group
artifactId = project.name
version = version

artifact("$buildDir/outputs/aar/${project.name}-release.aar")

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)
}
}
}
}
}
repositories {
Expand Down
18 changes: 15 additions & 3 deletions android-test-utils/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,23 @@ plugins {
publishing {
publications {
release(MavenPublication) {
groupId = 'org.web3j'
artifactId = 'android-test-utils'
version = '4.12.4'
groupId = group
artifactId = project.name
version = version

artifact("$buildDir/outputs/aar/${project.name}-release.aar")

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)
}
}
}
}
}
repositories {
Expand Down
18 changes: 15 additions & 3 deletions besu/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,23 @@ plugins {
publishing {
publications {
release(MavenPublication) {
groupId = 'org.web3j'
artifactId = 'besu'
version = '4.12.4'
groupId = group
artifactId = project.name
version = version

artifact("$buildDir/outputs/aar/${project.name}-release.aar")

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)
}
}
}
}
}
repositories {
Expand Down
18 changes: 15 additions & 3 deletions codegen/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,23 @@ plugins {
publishing {
publications {
release(MavenPublication) {
groupId = 'org.web3j'
artifactId = 'codegen'
version = '4.12.4'
groupId = group
artifactId = project.name
version = version

artifact("$buildDir/outputs/aar/${project.name}-release.aar")

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)
}
}
}
}
}
repositories {
Expand Down
18 changes: 15 additions & 3 deletions contracts/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,23 @@ plugins {
publishing {
publications {
release(MavenPublication) {
groupId = 'org.web3j'
artifactId = 'contracts'
version = '4.12.4'
groupId = group
artifactId = project.name
version = version

artifact("$buildDir/outputs/aar/${project.name}-release.aar")

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)
}
}
}
}
}
repositories {
Expand Down
18 changes: 15 additions & 3 deletions core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,23 @@ plugins {
publishing {
publications {
release(MavenPublication) {
groupId = 'org.web3j'
artifactId = 'core'
version = '4.12.4'
groupId = group
artifactId = project.name
version = version

artifact("$buildDir/outputs/aar/${project.name}-release.aar")

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)
}
}
}
}
}
repositories {
Expand Down
18 changes: 15 additions & 3 deletions crypto/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,23 @@ plugins {
publishing {
publications {
release(MavenPublication) {
groupId = 'org.web3j'
artifactId = 'crypto'
version = '4.12.4'
groupId = group
artifactId = project.name
version = version

artifact("$buildDir/outputs/aar/${project.name}-release.aar")

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)
}
}
}
}
}
repositories {
Expand Down
18 changes: 15 additions & 3 deletions eea/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,23 @@ plugins {
publishing {
publications {
release(MavenPublication) {
groupId = 'org.web3j'
artifactId = 'eea'
version = '4.12.4'
groupId = group
artifactId = project.name
version = version

artifact("$buildDir/outputs/aar/${project.name}-release.aar")

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)
}
}
}
}
}
repositories {
Expand Down
18 changes: 15 additions & 3 deletions geth/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,23 @@ plugins {
publishing {
publications {
release(MavenPublication) {
groupId = 'org.web3j'
artifactId = 'geth'
version = '4.12.4'
groupId = group
artifactId = project.name
version = version

artifact("$buildDir/outputs/aar/${project.name}-release.aar")

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)
}
}
}
}
}
repositories {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
group=org.web3j
version=4.12.3-ANDROID
version=4.12.3-android
android.useAndroidX=true

18 changes: 15 additions & 3 deletions hosted-providers/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,23 @@ plugins {
publishing {
publications {
release(MavenPublication) {
groupId = 'org.web3j'
artifactId = 'hosted-providers'
version = '4.12.4'
groupId = group
artifactId = project.name
version = version

artifact("$buildDir/outputs/aar/${project.name}-release.aar")

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)
}
}
}
}
}
repositories {
Expand Down
12 changes: 0 additions & 12 deletions integration-tests/build.gradle
Original file line number Diff line number Diff line change
@@ -1,19 +1,7 @@
plugins {
id 'com.android.library'
id 'maven-publish'
// id("org.web3j") version "4.12.1"
}
//web3j {
// generatedPackageName = "org.web3j.integration-tests"
//}

//solidity {
// evmVersion = EVMVersion.ISTANBUL
//}

//node {
// nodeProjectDir.set(file("$projectDir"))
//}


publishing {
Expand Down
18 changes: 15 additions & 3 deletions parity/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,23 @@ plugins {
publishing {
publications {
release(MavenPublication) {
groupId = 'org.web3j'
artifactId = 'parity'
version = '4.12.4'
groupId = group
artifactId = project.name
version = version

artifact("$buildDir/outputs/aar/${project.name}-release.aar")

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)
}
}
}
}
}
repositories {
Expand Down
18 changes: 15 additions & 3 deletions rlp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,23 @@ plugins {
publishing {
publications {
release(MavenPublication) {
groupId = 'org.web3j'
artifactId = 'rlp'
version = '4.12.4'
groupId = group
artifactId = project.name
version = version

artifact("$buildDir/outputs/aar/${project.name}-release.aar")

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)
}
}
}
}
}
repositories {
Expand Down
18 changes: 15 additions & 3 deletions tuples/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,23 @@ plugins {
publishing {
publications {
release(MavenPublication) {
groupId = 'org.web3j'
artifactId = 'tuples'
version = '4.12.4'
groupId = group
artifactId = project.name
version = version

artifact("$buildDir/outputs/aar/${project.name}-release.aar")

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)
}
}
}
}
}
repositories {
Expand Down
Loading

0 comments on commit 3d5c51e

Please sign in to comment.