@@ -40,15 +40,7 @@ object ProjectPlugin extends AutoPlugin {
4040 rfSparkVersion in ThisBuild := " 2.3.2" ,
4141 rfGeoTrellisVersion in ThisBuild := " 2.1.0" ,
4242 rfGeoMesaVersion in ThisBuild := " 2.1.0" ,
43-
44- credentials += Credentials (Path .userHome / " .sbt" / " .credentials" ),
45- publishTo := {
46- val base = " https://s22s.mycloudrepo.io/repositories"
47- if (isSnapshot.value)
48- Some (" Astraea Internal Snapshots" at s " $base/snapshots/ " )
49- else
50- Some (" Astraea Internal Releases" at s " $base/releases/ " )
51- },
43+ publishTo := sonatypePublishTo.value,
5244 publishMavenStyle := true ,
5345 publishArtifact in (Compile , packageDoc) := true ,
5446 publishArtifact in Test := false ,
@@ -119,17 +111,17 @@ object ProjectPlugin extends AutoPlugin {
119111 MergeStrategy .rename
120112 case PathList (" META-INF" , xs @ _* ) ⇒
121113 xs map {_.toLowerCase} match {
122- case ( " manifest.mf" :: Nil ) | ( " index.list" :: Nil ) | ( " dependencies" :: Nil ) ⇒
114+ case " manifest.mf" :: Nil | " index.list" :: Nil | " dependencies" :: Nil ⇒
123115 MergeStrategy .discard
124- case ps @ (x :: _) if ps.last.endsWith(" .sf" ) || ps.last.endsWith(" .dsa" ) ⇒
116+ case ps @ _ :: _ if ps.last.endsWith(" .sf" ) || ps.last.endsWith(" .dsa" ) ⇒
125117 MergeStrategy .discard
126118 case " plexus" :: _ ⇒
127119 MergeStrategy .discard
128120 case " services" :: _ ⇒
129121 MergeStrategy .filterDistinctLines
130- case ( " spring.schemas" :: Nil ) | ( " spring.handlers" :: Nil ) ⇒
122+ case " spring.schemas" :: Nil | " spring.handlers" :: Nil ⇒
131123 MergeStrategy .filterDistinctLines
132- case ( " maven" :: rest ) if rest.lastOption.exists(_.startsWith(" pom" )) ⇒
124+ case " maven" :: rest if rest.lastOption.exists(_.startsWith(" pom" )) ⇒
133125 MergeStrategy .discard
134126 case _ ⇒ MergeStrategy .deduplicate
135127 }
@@ -139,8 +131,8 @@ object ProjectPlugin extends AutoPlugin {
139131 )
140132
141133 def releaseSettings : Seq [Def .Setting [_]] = {
142- val buildSite : ( State ) ⇒ State = releaseStepTask(makeSite in LocalProject (" docs" ))
143- val publishSite : ( State ) ⇒ State = releaseStepTask(ghpagesPushSite in LocalProject (" docs" ))
134+ val buildSite : State ⇒ State = releaseStepTask(makeSite in LocalProject (" docs" ))
135+ val publishSite : State ⇒ State = releaseStepTask(ghpagesPushSite in LocalProject (" docs" ))
144136 Seq (
145137 releaseIgnoreUntrackedFiles := true ,
146138 releaseTagName := s " ${version.value}" ,
0 commit comments