Skip to content
This repository was archived by the owner on Nov 10, 2025. It is now read-only.

Commit 0faeb34

Browse files
committed
Bring back artifactory config
1 parent 25e2c57 commit 0faeb34

File tree

1 file changed

+19
-10
lines changed

1 file changed

+19
-10
lines changed

publish-maven.gradle

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,24 @@ publishing {
5454
}
5555
}
5656

57-
tasks.named('artifactoryPublish') {
58-
publications(publishing.publications.mavenJava)
59-
def zipArtifactProps =
60-
['zip.name' : 'spring-integration-aws',
61-
'zip.displayname': 'Spring Integration Aws',
62-
'zip.deployed' : 'false']
63-
properties {
64-
mavenJava zipArtifactProps, '*:*:*:*@zip'
65-
mavenJava 'zip.type': 'docs', '*:*:*:docs@zip'
66-
mavenJava 'zip.type': 'dist', '*:*:*:dist@zip'
57+
if (isCI) {
58+
artifactory {
59+
publish {
60+
defaults {
61+
def zipArtifactProps =
62+
['zip.name': 'spring-integration-aws',
63+
'zip.displayname': 'Spring Integration Aws',
64+
'zip.deployed': 'false']
65+
properties {
66+
mavenJava zipArtifactProps, '*:*:*:*@zip'
67+
mavenJava 'zip.type': 'docs', '*:*:*:docs@zip'
68+
mavenJava 'zip.type': 'dist', '*:*:*:dist@zip'
69+
}
70+
}
71+
}
72+
}
73+
74+
tasks.named('artifactoryPublish') {
75+
publications(publishing.publications.mavenJava)
6776
}
6877
}

0 commit comments

Comments
 (0)