Gradle Artifactory插件似乎忽略了publishPom=false

Gradle Artifactory插件似乎忽略了publishPom=false,gradle,build.gradle,artifactory,Gradle,Build.gradle,Artifactory,我有以下基本的发布代码 buildscript { repositories { maven { url "${artifactory_contextUrl}/plugins-release" credentials { username = "${artifactory_user}" password = "${artifactory_password}"

我有以下基本的发布代码

buildscript {
    repositories {
        maven {
            url "${artifactory_contextUrl}/plugins-release"
            credentials {
                username = "${artifactory_user}"
                password = "${artifactory_password}"
            }
        }
    }
    dependencies {
        classpath "org.jfrog.buildinfo:build-info-extractor-gradle:4+"
    }
}

allprojects {
    apply plugin: "com.jfrog.artifactory"
    apply plugin: 'maven'
    apply plugin: 'maven-publish'
}

artifactory {
    contextUrl = "${artifactory_contextUrl}"
    publish {
        repository {
            repoKey = "${publish_repository_key}"
            username = "${artifactory_user}"
            password = "${artifactory_password}"
            maven = true
        }
    }
    resolve {
        repository {
            repoKey = "${resolve_repository_key}"
            username = "${artifactory_user}"
            password = "${artifactory_password}"
            maven = true
        }
    }
    clientConfig.timeout = 10
}

publishing {
    publications {
        mavenJava(MavenPublication) {
            artifact 'test-1.1/abc-1.1.py'
            version "1.5"
            groupId "com.example"
            artifactId "script"
        }
    }
}

artifactoryPublish {
    publications ('mavenJava')
    publishBuildInfo = false
    publishArtifacts = false
    publishPom = false
    publishIvy = false
}
对于测试,我不想发布BuildInfo和Pom。尽管事实上所有发布都设置为false invoking

gradle clean generatePomFileForMavenJavaPublication artifactoryPublish
通过观察http流量和控制台输出,可以确认所有上传仍在进行

Deploying artifact: https://artifactory/publish_repository_key/com/example/script/1.5/script-1.5.py
Deploying artifact: https://artifactory/publish_repository_key/com/example/script/1.5/script-1.5.pom
Error occurred for request PUT /publish_repository_key/com/example/script/1.5/script-1.5.pom.sha1;build.name=script;build.number=1512095807403 HTTP/1.1: Read timed out.

此外,最后一个错误完全让我困惑。

它看起来像一个bug。随你的便。一旦这个答案被修复,我将更新它。

我刚刚用最新的Artifactory插件版本(classpath(group:'org.jfrog.buildinfo',name:'build info extractor gradle',version:'4.+')测试了这个问题,并且功能似乎按照预期工作。可能是你使用的是旧版本的插件吗?还是坏掉了-即使是GitHub问题的解决方案对我也不起作用