Mercurial > public > develkit
comparison artifactory.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(group: 'org.jfrog.buildinfo', name: 'build-info-extractor-gradle', version: '2.1.0') | |
10 } | |
11 } | |
12 | |
13 apply { | |
14 apply plugin: org.jfrog.gradle.plugin.artifactory.ArtifactoryConfigurationsPlugin | |
15 } | |
16 | |
17 artifactory { | |
18 contextUrl = 'https://docker.ssdt.io/artifactory' | |
19 publish { | |
20 def isFeature = gradle.branchStream == 'feature' | |
21 repository { | |
22 repoKey = isFeature ? 'libs-branches-local' : 'libs-snapshots-local' | |
23 // Publisher username and password | |
24 // Sub projects must provide these values via command line or properties file | |
25 username = artifactoryUsername | |
26 password = artifactoryPassword | |
27 maven = !isFeature | |
28 if (isFeature) { | |
29 ivy { | |
30 ivyLayout = "${gradle.branchHash}/[organization]/[module]/ivy-[revision].xml" | |
31 artifactLayout = "${gradle.branchHash}/[organization]/[module]/[revision]/[module]-[revision](-[classifier]).[ext]" | |
32 mavenCompatible = false | |
33 } | |
34 } | |
35 } | |
36 defaults { | |
37 publishBuildInfo = true | |
38 publishArtifacts = true | |
39 publishPom = false | |
40 publishIvy = true | |
41 properties = [ 'ssdt-branch.branchName': gradle.branchName.replaceAll('/','-'), 'ssdt-branch.branchStream': gradle.branchStream ] | |
42 } | |
43 } | |
44 } | |
45 | |
46 subprojects { | |
47 apply { | |
48 apply plugin: org.jfrog.gradle.plugin.artifactory.ArtifactoryConfigurationsPlugin | |
49 } | |
50 } | |
51 | |
52 |