Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kts-publish example: PublishBuildInfo #297

Open
alexsapps opened this issue Dec 20, 2021 · 2 comments
Open

kts-publish example: PublishBuildInfo #297

alexsapps opened this issue Dec 20, 2021 · 2 comments

Comments

@alexsapps
Copy link

The Groovy example of publishBuildInfo = true from the Gradle Artifactory Plugin docs has no equivalent in the KTS publishing example. So, there are docs for how to do this in Groovy, but not Kotlin. The solution is to use invokeMethod, which took me a long time to find. It would be great if invokeMethod("setPublishBuildInfo", true) could be added to the KTS-publish example along with any other properties that require invokeMethod.

@eyalbe4
Copy link
Contributor

eyalbe4 commented Dec 20, 2021

Thanks a lot for sharing this @alexsapps!
In case you're able to contribute this through a pull request to thiis repository, this would be wonderful!

@JiangHongTiao
Copy link

Seems like the plugin in version 5.2.0 can call it in PublisherConfig scope:

configure<ArtifactoryPluginConvention> {
    setContextUrl("https://company.jfrog.io/artifactory")
    publish {
        repository {
            repoKey = "maven-snapshot-local"
            username = "user"
            password = "password"
        }
        isPublishBuildInfo = false
        defaults {
            publications("buildPublication")
        }
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants