diff --git a/build.gradle b/build.gradle index 52d902e310..85980cfa12 100644 --- a/build.gradle +++ b/build.gradle @@ -37,7 +37,6 @@ plugins { alias(libs.plugins.versions) alias(libs.plugins.spotbugs) alias(libs.plugins.nexus) - alias(libs.plugins.artifactory) alias(libs.plugins.download) } diff --git a/fdb-record-layer-core-shaded/fdb-record-layer-core-shaded.gradle b/fdb-record-layer-core-shaded/fdb-record-layer-core-shaded.gradle index d90fc9316b..95ace73223 100644 --- a/fdb-record-layer-core-shaded/fdb-record-layer-core-shaded.gradle +++ b/fdb-record-layer-core-shaded/fdb-record-layer-core-shaded.gradle @@ -119,9 +119,6 @@ publishing { } } - artifactoryPublish { - publications (publishing.publications.shadow) - } } if (Boolean.parseBoolean(centralPublish)) { diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 736de5a3e5..3b54962824 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -150,7 +150,6 @@ test-compileOnly = [ "autoService", "jsr305" ] [plugins] -artifactory = { id = "com.jfrog.artifactory", version = "4.29.2" } download = { id = "de.undercouch.download", version = "5.6.0" } gitversion = { id = "com.palantir.git-version", version = "3.1.0" } jmh = { id = "me.champeau.jmh", version = "0.7.2" } diff --git a/gradle/publishing.gradle b/gradle/publishing.gradle index 3719545adc..79e4d82ef9 100644 --- a/gradle/publishing.gradle +++ b/gradle/publishing.gradle @@ -18,7 +18,6 @@ * limitations under the License. */ -apply plugin: 'com.jfrog.artifactory' apply plugin: 'signing' // Add various details to the pom file to allow for publishing @@ -74,17 +73,6 @@ if (ext.publishLibrary) { } } } - artifactoryPublish { - // As a safeguard, only actually publish to artifactory if -PpublishBuild=true is passed to gradle - // Note: skip is documented, but onlyIf seems to also be required to make this work for some reason - // See: https://gist.github.com/DALDEI/40925568cef57e16e8a7 - def publishBuild = Boolean.parseBoolean(publishBuild) - skip = !publishBuild - onlyIf { - publishBuild - } - publications(publishing.publications.library) - } createDistribution.configure { afterEvaluate { dependsOn generatePomFileForLibraryPublication @@ -128,25 +116,3 @@ publishing { } } } - -if (System.getenv('ARTIFACTORY_USER') != null && System.getenv('ARTIFACTORY_KEY') != null) { - artifactory { - clientConfig.setIncludeEnvVars(true) - publish { - def artifactoryUrl = System.getenv('ARTIFACTORY_URL') ?: 'https://ossartifacts.jfrog.io/artifactory/' - contextUrl = artifactoryUrl - repository { - repoKey = System.getenv('ARTIFACTORY_REPO') ?: 'fdb-record-layer' - username = System.getenv('ARTIFACTORY_USER') - password = System.getenv('ARTIFACTORY_KEY') - } - defaults { - publications('mavenJava') - publishPom = publishBuild - publishArtifacts = publishBuild - publishBuildInfo = publishBuild - publishIvy = false - } - } - } -}