Mercurial > public > develkit
comparison artifactory20.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 | |
5 //plugins { | |
6 // id 'com.jfrog.artifactory-upload' version '3.0.1' | |
7 //} | |
8 // | |
9 | |
10 buildscript { | |
11 repositories { | |
12 maven { url 'https://docker.ssdt.io/artifactory/gradle-plugins' } | |
13 } | |
14 dependencies { | |
15 classpath "org.jfrog.buildinfo:build-info-extractor-gradle:3.0.1" | |
16 } | |
17 } | |
18 apply { | |
19 apply plugin: org.jfrog.gradle.plugin.artifactory.ArtifactoryConfigurationsPlugin | |
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 // Publisher username and password | |
28 // Sub projects must provide these values via command line or properties file | |
29 username = artifactoryUsername | |
30 password = artifactoryPassword | |
31 if (isFeature) { | |
32 ivy { | |
33 ivyLayout = "${project.gradle.branchHash}/[organization]/[module]/ivy-[revision].xml" | |
34 artifactLayout = "${project.gradle.branchHash}/[organization]/[module]/[revision]/[module]-[revision](-[classifier]).[ext]" | |
35 mavenCompatible = false | |
36 } | |
37 } | |
38 } | |
39 defaults { | |
40 publishBuildInfo = true | |
41 publishArtifacts = true | |
42 publishPom = false | |
43 publishIvy = true | |
44 properties = [ 'ssdt-branch.branchName': gradle.branchName.replaceAll('/','-'), 'ssdt-branch.branchStream': gradle.branchStream ] | |
45 } | |
46 } | |
47 } | |
48 | |
49 subprojects { | |
50 apply { | |
51 apply plugin: org.jfrog.gradle.plugin.artifactory.ArtifactoryConfigurationsPlugin | |
52 } | |
53 } | |
54 | |
55 |