From 51dd674ac7191b7c14b6e9f15c290b2bde7dc18d Mon Sep 17 00:00:00 2001 From: Gabriel-Trintinalia Date: Fri, 23 Aug 2024 12:55:46 +1000 Subject: [PATCH] Remove unused files (#62) Signed-off-by: Gabriel-Trintinalia --- gradle/cloudsmith.gradle | 10 -------- gradle/publish.gradle | 45 ------------------------------------ scripts/cloudsmith-upload.sh | 19 --------------- 3 files changed, 74 deletions(-) delete mode 100644 gradle/cloudsmith.gradle delete mode 100644 gradle/publish.gradle delete mode 100755 scripts/cloudsmith-upload.sh diff --git a/gradle/cloudsmith.gradle b/gradle/cloudsmith.gradle deleted file mode 100644 index eae37bc..0000000 --- a/gradle/cloudsmith.gradle +++ /dev/null @@ -1,10 +0,0 @@ - -tasks.register('cloudsmithUpload') { - dependsOn([distTar, distZip]) - doLast { - exec { - executable project.file("scripts/cloudsmith-upload.sh") - args rootProject.version, distTar.archiveFile.get(), distZip.archiveFile.get() - } - } -} diff --git a/gradle/publish.gradle b/gradle/publish.gradle deleted file mode 100644 index 284b38c..0000000 --- a/gradle/publish.gradle +++ /dev/null @@ -1,45 +0,0 @@ - -def cloudsmithUser = project.hasProperty('cloudsmithUser') ? project.property('cloudsmithUser') : System.getenv('CLOUDSMITH_USER') -def cloudsmithKey = project.hasProperty('cloudsmithApiKey') ? project.property('cloudsmithApiKey') : System.getenv('CLOUDSMITH_API_KEY') - -publishing { - repositories { - maven { - name = "cloudsmith" - url = "https://api-g.cloudsmith.io/maven/consensys/quorum-besu-plugins/" - credentials { - username = cloudsmithUser - password = cloudsmithKey - } - } - } - publications { - mavenJava(MavenPublication) { - groupId "net.consensys.besu.plugin" - version "${project.version}" - from components.java - - versionMapping { - usage('java-api') { fromResolutionOf('runtimeClasspath') } - usage('java-runtime') { fromResolutionResult() } - } - suppressPomMetadataWarningsFor('testFixturesApiElements') - suppressPomMetadataWarningsFor('testFixturesRuntimeElements') - pom { - name = "Besu plugins - ${project.name}" - url = 'https://github.com/ConsenSys/besu-plugins' - licenses { - license { - name = 'The Apache License, Version 2.0' - url = 'http://www.apache.org/licenses/LICENSE-2.0.txt' - } - } - scm { - connection = 'scm:git:git://github.com/ConsenSys/besu-plugins.git' - developerConnection = 'https://github.com/ConsenSys/besu-plugins.git' - url = 'https://github.com/ConsenSys/besu-plugins' - } - } - } - } -} \ No newline at end of file diff --git a/scripts/cloudsmith-upload.sh b/scripts/cloudsmith-upload.sh deleted file mode 100755 index 779c954..0000000 --- a/scripts/cloudsmith-upload.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash -set -euo pipefail - -PLUGINS_VERSION=${1:?Must specify plugins version} -TAR_DIST=${2:?Must specify path to tar distribution} -ZIP_DIST=${3:?Must specify path to zip distribution} - -ENV_DIR=./build/tmp/cloudsmith-env -if [[ -d ${ENV_DIR} ]] ; then - source ${ENV_DIR}/bin/activate -else - python3 -m venv ${ENV_DIR} - source ${ENV_DIR}/bin/activate -fi - -python3 -m pip install --upgrade cloudsmith-cli - -cloudsmith push raw consensys/lina-besu-package $TAR_DIST --name "lina-besu-package-${PLUGINS_VERSION}.tar.gz" --version "${PLUGINS_VERSION}" --summary "lina-besu-package ${PLUGINS_VERSION} binary distribution" --description "Binary distribution of lina-besu-package ${PLUGINS_VERSION}." --content-type 'application/tar+gzip' -cloudsmith push raw consensys/lina-besu-package $ZIP_DIST --name "lina-besu-package-${PLUGINS_VERSION}.zip" --version "${PLUGINS_VERSION}" --summary "lina-besu-package ${PLUGINS_VERSION} binary distribution" --description "Binary distribution of lina-besu-package ${PLUGINS_VERSION}." --content-type 'application/zip' \ No newline at end of file