Skip to content

Commit

Permalink
fix publishing JARs only during the Linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
deepanjan90 authored May 4, 2022
1 parent 152471f commit 816b7f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

def releaseVersion = '1.1.3rc2'
def releaseBuild = false;
import org.apache.tools.ant.taskdefs.condition.Os;

if (System.getenv('CI')) {
defaultTasks 'build', 'publish'
Expand Down Expand Up @@ -103,6 +104,5 @@ subprojects {

// Only publish JARs once during the Linux build.
configure(subprojects.findAll { it.name != 'gyro-cli' }) {
def osName = System.getenv('OSTYPE') ?: 'linux-gnu'
publishMavenPublicationToMavenRepository.onlyIf { osName.equals("linux-gnu") }
publishMavenPublicationToMavenRepository.onlyIf { Os.isFamily(Os.FAMILY_UNIX) && !Os.isFamily(Os.FAMILY_MAC) }
}

0 comments on commit 816b7f5

Please sign in to comment.