forked from spring-projects/spring-security
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
deploy to a local tempdir instead of upstream archives
- Loading branch information
Benjamin Reed
committed
Jun 22, 2023
1 parent
dff27dd
commit 56c394a
Showing
5 changed files
with
25 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
def isSnapshot = version?.matches(/^.*[.-]BUILD-SNAPSHOT$/) | ||
|
||
apply plugin: 'maven' | ||
|
||
uploadArchives { | ||
repositories { | ||
mavenDeployer { | ||
repository(url: "file:///tmp/spring-security") | ||
} | ||
} | ||
} | ||
|
||
task deployArtifacts { | ||
group = 'Deploy tasks' | ||
description = "Deploys the artifacts to either Artifactory or Maven Central" | ||
if(isSnapshot) { | ||
dependsOn "artifactoryPublish" | ||
} else { | ||
dependsOn "uploadArchives" | ||
} | ||
dependsOn "uploadArchives" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters