comparison artifactory40.gradle @ 322:7ca1fbf8636a

Add new artifactory*.gradle that removes the credentials. Update the init*-git.gradle to use this new script. The script will require a parameters in bamboo but will allow us to remove the gradlekit project.
author Marc Davis <davis@ssdt-ohio.org>
date Thu, 09 Feb 2023 13:53:42 -0500
parents
children de8c350c511a
comparison
equal deleted inserted replaced
321:6c62c55b613f 322:7ca1fbf8636a
1
2 logger.info("applying SSDT bamboo/artifactory Gradle Settings")
3
4 buildscript {
5 repositories {
6 maven { url 'https://docker.ssdt.io/artifactory/gradle-plugins' }
7 }
8 dependencies {
9 classpath "org.jfrog.buildinfo:build-info-extractor-gradle:3.0.1"
10 }
11 }
12
13 //apply plugin: org.jfrog.gradle.plugin.artifactory.ArtifactoryConfigurationsPlugin
14
15 allprojects {
16
17 apply plugin: org.jfrog.gradle.plugin.artifactory.ArtifactoryConfigurationsPlugin
18
19 }
20
21 artifactory {
22 contextUrl = 'https://docker.ssdt.io/artifactory'
23 publish {
24 def isFeature = gradle.branchStream == 'feature'
25 repository {
26 repoKey = isFeature ? 'libs-branches-local' : 'libs-snapshots-local'
27 if (gradle.branch.isRelease()) {
28 repoKey = 'libs-releases-local'
29 }
30 // Publisher username and password
31 // Sub projects must provide these values via command line or properties file
32 username = artifactoryUsername
33 password = artifactoryPassword
34 if (isFeature) {
35 ivy {
36 ivyLayout = "${project.gradle.branchHash}/[organization]/[module]/ivy-[revision].xml"
37 artifactLayout = "${project.gradle.branchHash}/[organization]/[module]/[revision]/[module]-[revision](-[classifier]).[ext]"
38 mavenCompatible = false
39 }
40 }
41 }
42 defaults {
43 publishBuildInfo = true
44 publishArtifacts = true
45 publishPom = false
46 publishIvy = true
47 properties = [ 'ssdt-branch.branchName': gradle.branchName.replaceAll('/','-'), 'ssdt-branch.branchStream': gradle.branchStream ]
48 }
49 }
50 }