Mercurial > public > develkit
view artifactory.gradle @ 331:7bc7c6c79d7c
check for current release and hotfix branches when looking for latest snapshot
author | Marc Davis <davis@ssdt-ohio.org> |
---|---|
date | Mon, 06 Mar 2023 13:37:28 -0500 |
parents | 7ca1fbf8636a |
children | de8c350c511a |
line wrap: on
line source
logger.info("applying SSDT bamboo/artifactory Gradle Settings") buildscript { repositories { maven { url 'https://docker.ssdt.io/artifactory/gradle-plugins' } } dependencies { classpath(group: 'org.jfrog.buildinfo', name: 'build-info-extractor-gradle', version: '2.1.0') } } apply { apply plugin: org.jfrog.gradle.plugin.artifactory.ArtifactoryConfigurationsPlugin } artifactory { contextUrl = 'https://docker.ssdt.io/artifactory' publish { def isFeature = gradle.branchStream == 'feature' repository { repoKey = isFeature ? 'libs-branches-local' : 'libs-snapshots-local' // Publisher username and password // Sub projects must provide these values via command line or properties file username = artifactoryUsername password = artifactoryPassword maven = !isFeature if (isFeature) { ivy { ivyLayout = "${gradle.branchHash}/[organization]/[module]/ivy-[revision].xml" artifactLayout = "${gradle.branchHash}/[organization]/[module]/[revision]/[module]-[revision](-[classifier]).[ext]" mavenCompatible = false } } } defaults { publishBuildInfo = true publishArtifacts = true publishPom = false publishIvy = true properties = [ 'ssdt-branch.branchName': gradle.branchName.replaceAll('/','-'), 'ssdt-branch.branchStream': gradle.branchStream ] } } } subprojects { apply { apply plugin: org.jfrog.gradle.plugin.artifactory.ArtifactoryConfigurationsPlugin } }