Mercurial > public > develkit
annotate artifactory20.gradle @ 336:6258c89efe9e
add a new init70 for github actions
author | marc_davis <davis@ssdt-ohio.org> |
---|---|
date | Tue, 30 May 2023 12:54:59 -0400 |
parents | 7ca1fbf8636a |
children | de8c350c511a |
rev | line source |
---|---|
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.
Marc Davis <davis@ssdt-ohio.org>
parents:
diff
changeset
|
1 |
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.
Marc Davis <davis@ssdt-ohio.org>
parents:
diff
changeset
|
2 logger.info("applying SSDT bamboo/artifactory Gradle Settings") |
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.
Marc Davis <davis@ssdt-ohio.org>
parents:
diff
changeset
|
3 |
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.
Marc Davis <davis@ssdt-ohio.org>
parents:
diff
changeset
|
4 |
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.
Marc Davis <davis@ssdt-ohio.org>
parents:
diff
changeset
|
5 //plugins { |
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.
Marc Davis <davis@ssdt-ohio.org>
parents:
diff
changeset
|
6 // id 'com.jfrog.artifactory-upload' version '3.0.1' |
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.
Marc Davis <davis@ssdt-ohio.org>
parents:
diff
changeset
|
7 //} |
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.
Marc Davis <davis@ssdt-ohio.org>
parents:
diff
changeset
|
8 // |
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.
Marc Davis <davis@ssdt-ohio.org>
parents:
diff
changeset
|
9 |
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.
Marc Davis <davis@ssdt-ohio.org>
parents:
diff
changeset
|
10 buildscript { |
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.
Marc Davis <davis@ssdt-ohio.org>
parents:
diff
changeset
|
11 repositories { |
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.
Marc Davis <davis@ssdt-ohio.org>
parents:
diff
changeset
|
12 maven { url 'https://docker.ssdt.io/artifactory/gradle-plugins' } |
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.
Marc Davis <davis@ssdt-ohio.org>
parents:
diff
changeset
|
13 } |
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.
Marc Davis <davis@ssdt-ohio.org>
parents:
diff
changeset
|
14 dependencies { |
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.
Marc Davis <davis@ssdt-ohio.org>
parents:
diff
changeset
|
15 classpath "org.jfrog.buildinfo:build-info-extractor-gradle:3.0.1" |
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.
Marc Davis <davis@ssdt-ohio.org>
parents:
diff
changeset
|
16 } |
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.
Marc Davis <davis@ssdt-ohio.org>
parents:
diff
changeset
|
17 } |
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.
Marc Davis <davis@ssdt-ohio.org>
parents:
diff
changeset
|
18 apply { |
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.
Marc Davis <davis@ssdt-ohio.org>
parents:
diff
changeset
|
19 apply plugin: org.jfrog.gradle.plugin.artifactory.ArtifactoryConfigurationsPlugin |
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.
Marc Davis <davis@ssdt-ohio.org>
parents:
diff
changeset
|
20 } |
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.
Marc Davis <davis@ssdt-ohio.org>
parents:
diff
changeset
|
21 artifactory { |
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.
Marc Davis <davis@ssdt-ohio.org>
parents:
diff
changeset
|
22 contextUrl = 'https://docker.ssdt.io/artifactory' |
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.
Marc Davis <davis@ssdt-ohio.org>
parents:
diff
changeset
|
23 publish { |
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.
Marc Davis <davis@ssdt-ohio.org>
parents:
diff
changeset
|
24 def isFeature = gradle.branchStream == 'feature' |
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.
Marc Davis <davis@ssdt-ohio.org>
parents:
diff
changeset
|
25 repository { |
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.
Marc Davis <davis@ssdt-ohio.org>
parents:
diff
changeset
|
26 repoKey = isFeature ? 'libs-branches-local' : 'libs-snapshots-local' |
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.
Marc Davis <davis@ssdt-ohio.org>
parents:
diff
changeset
|
27 // Publisher username and password |
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.
Marc Davis <davis@ssdt-ohio.org>
parents:
diff
changeset
|
28 // Sub projects must provide these values via command line or properties file |
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.
Marc Davis <davis@ssdt-ohio.org>
parents:
diff
changeset
|
29 username = artifactoryUsername |
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.
Marc Davis <davis@ssdt-ohio.org>
parents:
diff
changeset
|
30 password = artifactoryPassword |
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.
Marc Davis <davis@ssdt-ohio.org>
parents:
diff
changeset
|
31 if (isFeature) { |
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.
Marc Davis <davis@ssdt-ohio.org>
parents:
diff
changeset
|
32 ivy { |
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.
Marc Davis <davis@ssdt-ohio.org>
parents:
diff
changeset
|
33 ivyLayout = "${project.gradle.branchHash}/[organization]/[module]/ivy-[revision].xml" |
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.
Marc Davis <davis@ssdt-ohio.org>
parents:
diff
changeset
|
34 artifactLayout = "${project.gradle.branchHash}/[organization]/[module]/[revision]/[module]-[revision](-[classifier]).[ext]" |
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.
Marc Davis <davis@ssdt-ohio.org>
parents:
diff
changeset
|
35 mavenCompatible = false |
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.
Marc Davis <davis@ssdt-ohio.org>
parents:
diff
changeset
|
36 } |
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.
Marc Davis <davis@ssdt-ohio.org>
parents:
diff
changeset
|
37 } |
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.
Marc Davis <davis@ssdt-ohio.org>
parents:
diff
changeset
|
38 } |
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.
Marc Davis <davis@ssdt-ohio.org>
parents:
diff
changeset
|
39 defaults { |
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.
Marc Davis <davis@ssdt-ohio.org>
parents:
diff
changeset
|
40 publishBuildInfo = true |
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.
Marc Davis <davis@ssdt-ohio.org>
parents:
diff
changeset
|
41 publishArtifacts = true |
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.
Marc Davis <davis@ssdt-ohio.org>
parents:
diff
changeset
|
42 publishPom = false |
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.
Marc Davis <davis@ssdt-ohio.org>
parents:
diff
changeset
|
43 publishIvy = true |
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.
Marc Davis <davis@ssdt-ohio.org>
parents:
diff
changeset
|
44 properties = [ 'ssdt-branch.branchName': gradle.branchName.replaceAll('/','-'), 'ssdt-branch.branchStream': gradle.branchStream ] |
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.
Marc Davis <davis@ssdt-ohio.org>
parents:
diff
changeset
|
45 } |
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.
Marc Davis <davis@ssdt-ohio.org>
parents:
diff
changeset
|
46 } |
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.
Marc Davis <davis@ssdt-ohio.org>
parents:
diff
changeset
|
47 } |
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.
Marc Davis <davis@ssdt-ohio.org>
parents:
diff
changeset
|
48 |
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.
Marc Davis <davis@ssdt-ohio.org>
parents:
diff
changeset
|
49 subprojects { |
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.
Marc Davis <davis@ssdt-ohio.org>
parents:
diff
changeset
|
50 apply { |
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.
Marc Davis <davis@ssdt-ohio.org>
parents:
diff
changeset
|
51 apply plugin: org.jfrog.gradle.plugin.artifactory.ArtifactoryConfigurationsPlugin |
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.
Marc Davis <davis@ssdt-ohio.org>
parents:
diff
changeset
|
52 } |
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.
Marc Davis <davis@ssdt-ohio.org>
parents:
diff
changeset
|
53 } |
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.
Marc Davis <davis@ssdt-ohio.org>
parents:
diff
changeset
|
54 |
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.
Marc Davis <davis@ssdt-ohio.org>
parents:
diff
changeset
|
55 |