annotate artifactory70-github.gradle @ 362:de8c350c511a tip

domain change from ssdt.io to ssdt-ohio.org
author Marc Davis <marc.davis@mcoecn.org>
date Wed, 04 Sep 2024 10:18:53 -0400
parents 77ca22c4a0b3
children
rev   line source
357
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
1
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
2 logger.info("applying SSDT bamboo/artifactory Gradle Settings")
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
3
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
4 buildscript {
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
5 repositories {
362
de8c350c511a domain change from ssdt.io to ssdt-ohio.org
Marc Davis <marc.davis@mcoecn.org>
parents: 359
diff changeset
6 // maven { url 'https://docker.ssdt-ohio.org/artifactory/gradle-plugins' }
357
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
7 mavenCentral()
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
8 }
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
9 dependencies {
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
10 classpath "org.jfrog.buildinfo:build-info-extractor-gradle:4.28.4"
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
11 }
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
12 }
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
13
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
14 //apply plugin: org.jfrog.gradle.plugin.artifactory.ArtifactoryConfigurationsPlugin
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
15
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
16 allprojects {
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
17 apply plugin: org.jfrog.gradle.plugin.artifactory.ArtifactoryPlugin
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
18 apply plugin: 'ivy-publish'
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
19 apply plugin: 'java'
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
20
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
21 afterEvaluate {
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
22 publishing {
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
23 publications {
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
24 ivyJava(IvyPublication) {
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
25 from components.java
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
26 }
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
27 }
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
28 }
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
29 }
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
30 }
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
31
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
32 artifactory {
362
de8c350c511a domain change from ssdt.io to ssdt-ohio.org
Marc Davis <marc.davis@mcoecn.org>
parents: 359
diff changeset
33 contextUrl = 'https://docker.ssdt-ohio.org/artifactory'
357
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
34 publish {
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
35 def isFeature = gradle.branchStream == 'feature'
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
36 repository {
358
3a33f23a26db try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents: 357
diff changeset
37 repoKey = isFeature ? "libs-branches-local/${project.gradle.branchHash}" : 'libs-snapshots-local'
357
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
38 if (gradle.branch.isRelease()) {
358
3a33f23a26db try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents: 357
diff changeset
39 repoKey = "libs-releases-local"
357
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
40 }
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
41 // Publisher username and password
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
42 // Sub projects must provide these values via command line or properties file
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
43 username = artifactoryUsername
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
44 password = artifactoryPassword
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
45 if (isFeature) {
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
46 ivy {
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
47 ivyLayout = "[organization]/[module]/ivy-[revision].xml"
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
48 artifactLayout = "[organization]/[module]/[revision]/[module]-[revision](-[classifier]).[ext]"
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
49 mavenCompatible = true
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
50 }
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
51 }
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
52 }
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
53 defaults {
359
77ca22c4a0b3 remove maven publications
Marc Davis <marc.davis@mcoecn.org>
parents: 358
diff changeset
54 publications('ivyJava')
357
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
55 publishBuildInfo = true
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
56 publishArtifacts = true
359
77ca22c4a0b3 remove maven publications
Marc Davis <marc.davis@mcoecn.org>
parents: 358
diff changeset
57 publishPom = false
357
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
58 publishIvy = true
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
59 properties = [ 'ssdt-branch.branchName': gradle.branchName.replaceAll('/','-'), 'ssdt-branch.branchStream': gradle.branchStream ]
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
60 }
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
61 }
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
62 }
ab7103f0c154 try some more maven publishing items
Marc Davis <marc.davis@mcoecn.org>
parents:
diff changeset
63