jfrog / artifactory-gradle-plugin

JFrog Gradle plugin for Build Info extraction and Artifactory publishing.
Apache License 2.0
20 stars 15 forks source link

Allow providing release and snapshot repositories #100

Closed yahavi closed 5 months ago

yahavi commented 6 months ago

Resolves https://github.com/jfrog/artifactory-gradle-plugin/issues/47 Resolves https://github.com/jfrog/artifactory-gradle-plugin/issues/97

Option 1: Let the plugin decide which to repository to publish the artifacts to by allowing the provision of both snapshot and release repositories.

configure<ArtifactoryPluginConvention> {
    publish {
        repoKey = "libs-snapshot-local"
    }
}
artifactory {
    publish {
        repository {
            repoKey = "libs-snapshot-local"
        }
    }
}

Option 2 (new):

configure<ArtifactoryPluginConvention> {
    publish {
            releaseRepoKey = "libs-release-local"
            snapshotRepoKey = "libs-snapshot-local"
    }
}
artifactory {
    publish {
        repository {
             releaseRepoKey = 'libs-release-local'
             snapshotRepoKey = 'libs-snapshot-local'
        }
    }
}
github-actions[bot] commented 6 months ago
[![👍 Frogbot scanned this pull request and found that it did not add vulnerable dependencies.](https://raw.githubusercontent.com/jfrog/frogbot/master/resources/v2/noVulnerabilityBannerPR.png)](https://docs.jfrog-applications.jfrog.io/jfrog-applications/frogbot)

[🐸 JFrog Frogbot](https://docs.jfrog-applications.jfrog.io/jfrog-applications/frogbot)