annotate artifactory40.gradle @ 342:9791f84cfc67

Add github init40 gradle plugin script
author Marc Davis <marc.davis@mcoecn.org>
date Fri, 09 Jun 2023 14:28:13 -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 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 "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
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 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
14
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 allprojects {
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 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
18
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 }
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 if (gradle.branch.isRelease()) {
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 repoKey = 'libs-releases-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
29 }
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 // 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
31 // 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
32 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
33 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
34 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
35 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
36 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
37 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
38 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
39 }
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 }
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 }
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 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
43 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
44 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
45 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
46 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
47 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
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 }
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 }