Skip to content

Commit

Permalink
Declare requires
Browse files Browse the repository at this point in the history
  • Loading branch information
olafurpg committed Jun 14, 2018
1 parent f9b26fe commit 8d5347a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plugin/src/main/scala/com/geirsson/CiReleasePlugin.scala
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
package com.geirsson

import com.typesafe.sbt.GitPlugin
import sbtdynver.DynVerPlugin.autoImport._
import com.typesafe.sbt.SbtPgp
import com.typesafe.sbt.SbtPgp.autoImport._
import sbt.Def
import sbt._
import sbt.Keys._
import sbt.plugins.JvmPlugin
import sbtdynver.DynVerPlugin
import sys.process._
import xerial.sbt.Sonatype

object CiReleasePlugin extends AutoPlugin {

override def trigger = allRequirements
override def requires = JvmPlugin && SbtPgp
override def requires =
JvmPlugin && SbtPgp && DynVerPlugin && GitPlugin && Sonatype

def isTravisTag: Boolean =
Option(System.getenv("TRAVIS_TAG")).exists(_.nonEmpty)
Expand Down

0 comments on commit 8d5347a

Please sign in to comment.