Mercurial > public > develkit
view artifactory20.gradle @ 348:aa5e8be335d6
add println to see env props
author | Marc Davis <marc.davis@mcoecn.org> |
---|---|
date | Tue, 25 Jul 2023 15:58:59 -0400 |
parents | 7ca1fbf8636a |
children | de8c350c511a |
line wrap: on
line source
logger.info("applying SSDT bamboo/artifactory Gradle Settings") //plugins { // id 'com.jfrog.artifactory-upload' version '3.0.1' //} // buildscript { repositories { maven { url 'https://docker.ssdt.io/artifactory/gradle-plugins' } } dependencies { classpath "org.jfrog.buildinfo:build-info-extractor-gradle:3.0.1" } } 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 if (isFeature) { ivy { ivyLayout = "${project.gradle.branchHash}/[organization]/[module]/ivy-[revision].xml" artifactLayout = "${project.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 } }