annotate artifactory70.gradle @ 323:af7191641c3b

fix url path
author Marc Davis <davis@ssdt-ohio.org>
date Thu, 09 Feb 2023 14:00:54 -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 mavenCentral()
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 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
10 classpath "org.jfrog.buildinfo:build-info-extractor-gradle:4.28.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
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
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 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
17 apply plugin: org.jfrog.gradle.plugin.artifactory.ArtifactoryPlugin
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 plugin: 'ivy-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
19 apply plugin: 'java'
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 afterEvaluate {
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 publishing {
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 publications {
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 ivyJava(IvyPublication) {
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 from components.java
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 }
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 }
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 }
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 }
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
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 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
33 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
34 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
35 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
36 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
37 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
38 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
39 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
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 // 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
42 // 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
43 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
44 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
45 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
46 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
47 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
48 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
49 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
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 }
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 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
54 publications('ivyJava')
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 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
56 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
57 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
58 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
59 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
60 }
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
61 }
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
62 }
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
63