Skip to content

Commit

Permalink
Only apply archive.gradle when we publish the package
Browse files Browse the repository at this point in the history
  • Loading branch information
supl committed Nov 20, 2023
1 parent df98662 commit d7a7bb6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,9 @@ test {
}
}

apply from: 'archive.gradle'
// 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('publishToMavenLocal'))) {
apply from: 'archive.gradle'
}

0 comments on commit d7a7bb6

Please sign in to comment.