@@ -172,7 +172,6 @@ lazy val scalafixRules = project
172172 .settings(
173173 scalaModuleAutomaticModuleName := None ,
174174 organization := (compat212JVM / organization).value,
175- publishTo := (compat212JVM / publishTo).value,
176175 versionPolicyIntention := Compatibility .None ,
177176 name := " scala-collection-migrations" ,
178177 scalaVersion := scalafixScala212,
@@ -292,7 +291,6 @@ lazy val scalafixTests = project
292291 .enablePlugins(BuildInfoPlugin , ScalafixTestkitPlugin )
293292
294293val ciScalaVersion = sys.env.get(" CI_SCALA_VERSION" ).flatMap(Version .parse)
295- val isTravisTag = sys.env.get(" CI_TAG" ).exists(_.nonEmpty)
296294val isScalaJs = sys.env.get(" CI_PLATFORM" ) == Some (" js" )
297295val isScalaNative = sys.env.get(" CI_PLATFORM" ) == Some (" native" )
298296val isScalafix = sys.env.get(" CI_MODE" ) == Some (" testScalafix" )
@@ -322,7 +320,6 @@ inThisBuild {
322320 else {
323321 List (
324322 " CI_SCALA_VERSION" ,
325- " CI_TAG" ,
326323 " CI_PLATFORM" ,
327324 " CI_MODE" ,
328325 " CI_JDK" ,
@@ -352,31 +349,11 @@ inThisBuild {
352349 compatProject
353350 }
354351
355- val publishTask =
356- if (isTravisTag && ! isBinaryCompat && jdkVersion == Some (8 )) {
357- // we cannot run "ci-release" because that reads the `CI_RELEASE` / `CI_SONATYPE_RELEASE`
358- // env vars, which we cannot modify from java (easily). so we inline what this command does.
359- CiReleasePlugin .setupGpg()
360- List (
361- // same fix as https://github.com/olafurpg/sbt-ci-release/pull/66
362- // need to replicate it here since we're not using the `ci-release` command
363- " set pgpSecretRing := pgpSecretRing.value" ,
364- " set pgpPublicRing := pgpPublicRing.value" ,
365- s " $projectPrefix/publishSigned " ,
366- " sonatypePrepare" ,
367- " sonatypeBundleUpload" ,
368- " sonatypeClose"
369- )
370- } else {
371- Nil
372- }
373-
374352 Seq (
375353 List (s """ ++ ${sys.env.get(" CI_SCALA_VERSION" ).get}! """ ),
376354 List (s " $projectPrefix/clean " ),
377355 List (s " $testProjectPrefix/test " ),
378356 List (s " $projectPrefix/publishLocal " ),
379- publishTask
380357 ).flatten
381358 }
382359
0 commit comments