annotate artifactory.gradle @ 331:7bc7c6c79d7c

check for current release and hotfix branches when looking for latest snapshot
author Marc Davis <davis@ssdt-ohio.org>
date Mon, 06 Mar 2023 13:37:28 -0500
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 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
5 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
6 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
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 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
9 classpath(group: 'org.jfrog.buildinfo', name: 'build-info-extractor-gradle', version: '2.1.0')
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 }
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 }
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
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 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
14 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
15 }
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 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
18 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
19 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
20 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
21 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
22 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
23 // 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
24 // 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
25 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
26 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
27 maven = !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
28 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
29 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
30 ivyLayout = "${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
31 artifactLayout = "${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
32 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
33 }
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 }
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 }
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 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
37 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
38 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
39 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
40 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
41 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
42 }
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 }
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 }
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 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
47 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
48 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
49 }
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 }
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
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