Rename artifacts group it to linea-besu and remove uneeded stuff

Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
This commit is contained in:
Fabio Di Fabio
2023-10-04 18:27:18 +02:00
parent 0096356936
commit 5ff9889efc
8 changed files with 11 additions and 61 deletions

View File

@@ -29,27 +29,14 @@ plugins {
id 'me.champeau.jmh' version '0.7.0' apply false
id 'net.ltgt.errorprone' version '2.0.2'
id 'maven-publish'
id 'org.sonarqube' version '3.4.0.2513'
}
sonarqube {
properties {
property "sonar.projectKey", "hyperledger_besu"
property "sonar.organization", "hyperledger"
property "sonar.host.url", "https://sonarcloud.io"
property "sonar.coverage.jacoco.xmlReportPaths", "${buildDir}/reports/jacoco/jacocoRootReport/jacocoRootReport.xml"
property "sonar.coverage.exclusions", "acceptance-tests/**/*"
}
}
project.tasks["sonarqube"].dependsOn "jacocoRootReport"
if (!JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_17)) {
throw new GradleException("Java 17 or later is required to build Besu.\n" +
" Detected version ${JavaVersion.current()}")
}
group = 'org.hyperledger.besu'
group = 'com.consensys.linea-besu'
defaultTasks 'build', 'checkLicenses', 'javadoc'
@@ -612,43 +599,6 @@ distZip {
}
}
publishing {
publications {
distArtifactory(MavenPublication) {
groupId = '.'
version = project.version
artifactId = 'besu'
artifact("$buildDir/distributions/besu-${project.version}.zip")
artifact("$buildDir/distributions/besu-${project.version}.tar.gz") { extension = 'tar.gz' }
}
}
}
def artifactoryUser = project.hasProperty('artifactoryUser') ? project.property('artifactoryUser') : System.getenv('ARTIFACTORY_USER')
def artifactoryKey = project.hasProperty('artifactoryApiKey') ? project.property('artifactoryApiKey') : System.getenv('ARTIFACTORY_KEY')
def artifactoryOrg = System.getenv('ARTIFACTORY_ORG') ?: 'hyperledger'
artifactory {
contextUrl = "https://hyperledger.jfrog.io/${artifactoryOrg}"
publish {
repository {
repoKey = "besu-binaries"
username = artifactoryUser
password = artifactoryKey
}
defaults {
publications('distArtifactory')
publishArtifacts = true
publishPom = false
}
}
}
artifactoryPublish {
dependsOn distTar
dependsOn distZip
}
def dockerBuildVersion = project.hasProperty('release.releaseVersion') ? project.property('release.releaseVersion') : "${rootProject.version}"
def dockerOrgName = project.hasProperty('dockerOrgName') ? project.getProperty("dockerOrgName") : "hyperledger"
def dockerArtifactName = project.hasProperty("dockerArtifactName") ? project.getProperty("dockerArtifactName") : "besu"

View File

@@ -23,7 +23,7 @@ jar {
'Specification-Version': project.version,
'Implementation-Title': archiveBaseName,
'Implementation-Version': calculateVersion(),
'Automatic-Module-Name': 'org.hyperledger.besu.internal.crypto'
'Automatic-Module-Name': 'com.consensys.linea-besu.internal.crypto'
)
}
}

View File

@@ -23,7 +23,7 @@ jar {
'Specification-Version': project.version,
'Implementation-Title': archiveBaseName,
'Implementation-Version': calculateVersion(),
'Automatic-Module-Name': 'org.hyperledger.besu.internal.crypto'
'Automatic-Module-Name': 'com.consensys.linea-besu.internal.crypto'
)
}
}

View File

@@ -23,7 +23,7 @@ jar {
'Specification-Version': project.version,
'Implementation-Title': archiveBaseName,
'Implementation-Version': calculateVersion(),
'Automatic-Module-Name': 'org.hyperledger.besu.datatypes'
'Automatic-Module-Name': 'com.consensys.linea-besu.datatypes'
)
}
}
@@ -48,7 +48,7 @@ configurations { testArtifacts }
publishing {
publications {
mavenJava(MavenPublication) {
groupId 'org.hyperledger.besu'
groupId 'com.consensys.linea-besu'
artifactId 'besu-datatypes'
pom {
name = 'Besu Datatypes'

View File

@@ -23,7 +23,7 @@ jar {
'Specification-Version': project.version,
'Implementation-Title': archiveBaseName,
'Implementation-Version': calculateVersion(),
'Automatic-Module-Name': 'org.hyperledger.besu.internal.rlp'
'Automatic-Module-Name': 'com.consensys.linea-besu.internal.rlp'
)
}
}

View File

@@ -25,7 +25,7 @@ jar {
'Specification-Version': project.version,
'Implementation-Title': archiveBaseName,
'Implementation-Version': calculateVersion(),
'Automatic-Module-Name': 'org.hyperledger.besu.evm'
'Automatic-Module-Name': 'com.consensys.linea-besu.evm'
)
}
}
@@ -61,7 +61,7 @@ dependencies {
publishing {
publications {
mavenJava(MavenPublication) {
groupId 'org.hyperledger.besu'
groupId 'com.consensys.linea-besu'
pom {
name = 'Besu EVM'
description = 'EVM Engine component'

View File

@@ -22,7 +22,7 @@ jar {
'Specification-Version': project.version,
'Implementation-Title': archiveBaseName,
'Implementation-Version': calculateVersion(),
'Automatic-Module-Name': 'org.hyperledger.besu.plugin.api'
'Automatic-Module-Name': 'com.consensys.linea-besu.plugin.api'
)
}
}
@@ -76,7 +76,7 @@ check.dependsOn('checkAPIChanges')
publishing {
publications {
mavenJava(MavenPublication) {
groupId 'org.hyperledger.besu'
groupId 'com.consensys.linea-besu'
pom {
name = 'Besu Plugins Library'
description = 'Core Plugins Libraries for Besu'

View File

@@ -23,7 +23,7 @@ jar {
'Specification-Version': project.version,
'Implementation-Title': archiveBaseName,
'Implementation-Version': calculateVersion(),
'Automatic-Module-Name': 'org.hyperledger.besu.internal.util'
'Automatic-Module-Name': 'com.consensys.linea-besu.internal.util'
)
}
}