Skip to content

Commit

Permalink
Add publishToMavenLocal for archiving and uploading to maven central (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
brfrn169 authored Aug 16, 2021
1 parent 7fcab82 commit 3d8d1c2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ archivesBaseName = "scalardb"

// for archiving and uploading to maven central
if (!project.gradle.startParameter.taskNames.isEmpty() &&
project.gradle.startParameter.taskNames[0].endsWith('publish')) {
(project.gradle.startParameter.taskNames[0].endsWith('publish') ||
project.gradle.startParameter.taskNames[0].endsWith('publishToMavenLocal'))) {
apply from: 'archive.gradle'
}
3 changes: 2 additions & 1 deletion rpc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ archivesBaseName = "scalardb-rpc"

// for archiving and uploading to maven central
if (!project.gradle.startParameter.taskNames.isEmpty() &&
project.gradle.startParameter.taskNames[0].endsWith('publish')) {
(project.gradle.startParameter.taskNames[0].endsWith('publish') ||
project.gradle.startParameter.taskNames[0].endsWith('publishToMavenLocal'))) {
apply from: 'archive.gradle'
}
3 changes: 2 additions & 1 deletion server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ distTar {

// for archiving and uploading to maven central
if (!project.gradle.startParameter.taskNames.isEmpty() &&
project.gradle.startParameter.taskNames[0].endsWith('publish')) {
(project.gradle.startParameter.taskNames[0].endsWith('publish') ||
project.gradle.startParameter.taskNames[0].endsWith('publishToMavenLocal'))) {
apply from: 'archive.gradle'
}

0 comments on commit 3d8d1c2

Please sign in to comment.