I'm trying to stop our artifactory job from publishing any build info. According to the jfrog docs, setting publishBuildInfo = false should do that for me. However, if I try to set the property in our gradle kotlin dsl, I get the following error:
Could not set unknown property 'publishBuildInfo' for task ':artifactoryPublish' of type org.jfrog.gradle.plugin.artifactory.task.ArtifactoryTask.
Here is our build.gradle.kts file. I replaced everything that should be irrelevant by ...:
...
plugins {
...
id("com.jfrog.artifactory") version "4.24.20"
...
}
...
artifactory {
setContextUrl("someUrl")
...
publish(delegateClosureOf<org.jfrog.gradle.plugin.artifactory.dsl.PublisherConfig> {
repository(delegateClosureOf<groovy.lang.GroovyObject> {
...
})
defaults(delegateClosureOf<groovy.lang.GroovyObject> {
invokeMethod("publications", "mavenJava")
setProperty("publishPom", true)
setProperty("publishArtifacts", true)
setProperty("publishBuildInfo", false)
})
})
}