@@ -65,7 +65,7 @@ object Build {
65
65
// Shorthand for compiling a docs site
66
66
lazy val dottydoc = inputKey[Unit ](" run dottydoc" )
67
67
68
- lazy val commonSettings = Seq (
68
+ lazy val commonSettings = publishSettings ++ Seq (
69
69
scalaVersion := scalacVersion,
70
70
version := dottyVersion,
71
71
organization := dottyOrganization,
@@ -133,8 +133,7 @@ object Build {
133
133
134
134
addCommandAlias(" run" , " dotty-compiler/run" ) ++
135
135
addCommandAlias(" legacyTests" , " dotty-compiler/testOnly dotc.tests" )
136
- ).
137
- settings(publishing)
136
+ )
138
137
139
138
// Meta project aggregating all bootstrapped projects
140
139
lazy val `dotty-bootstrapped` = project.
@@ -155,8 +154,7 @@ object Build {
155
154
EclipseKeys .projectFlavor := EclipseProjectFlavor .Java ,
156
155
// Remove javac invalid options in Compile doc
157
156
javacOptions in (Compile , doc) --= Seq (" -Xlint:unchecked" , " -Xlint:deprecation" )
158
- ).
159
- settings(publishing)
157
+ )
160
158
161
159
// Settings shared between dotty-doc and dotty-doc-bootstrapped
162
160
lazy val dottyDocSettings = Seq (
@@ -216,7 +214,7 @@ object Build {
216
214
dependsOn(`dotty-compiler`, `dotty-compiler` % " test->test" ).
217
215
settings(commonSettings).
218
216
settings(dottyDocSettings).
219
- settings(publishing )
217
+ settings(publishSettings )
220
218
221
219
lazy val `dotty-doc-bootstrapped` = project.in(file(" doc-tool" )).
222
220
dependsOn(`dotty-compiler-bootstrapped`, `dotty-compiler-bootstrapped` % " test->test" ).
@@ -502,8 +500,7 @@ object Build {
502
500
" dotty-compiler-test" -> (packageBin in Test ).value
503
501
) map { case (k, v) => (k, v.getAbsolutePath) }
504
502
}
505
- ).
506
- settings(publishing)
503
+ )
507
504
508
505
lazy val `dotty-compiler-bootstrapped` = project.in(file(" compiler" )).
509
506
dependsOn(`dotty-library-bootstrapped`).
@@ -544,7 +541,7 @@ object Build {
544
541
lazy val `dotty-library` = project.in(file(" library" )).
545
542
settings(commonSettings).
546
543
settings(dottyLibrarySettings).
547
- settings(publishing )
544
+ settings(publishSettings )
548
545
549
546
lazy val `dotty-library-bootstrapped` = project.in(file(" library" )).
550
547
settings(commonSettings).
@@ -629,8 +626,7 @@ object DottyInjectedPlugin extends AutoPlugin {
629
626
""")
630
627
}
631
628
*/
632
- ).
633
- settings(publishing)
629
+ )
634
630
635
631
/** A sandbox to play with the Scala.js back-end of dotty.
636
632
*
@@ -721,8 +717,7 @@ object DottyInjectedPlugin extends AutoPlugin {
721
717
settings(commonSettings).
722
718
settings(
723
719
crossPaths := false
724
- ).
725
- settings(publishing)
720
+ )
726
721
727
722
// sbt >= 0.13.12 will automatically rewrite transitive dependencies on
728
723
// any version in any organization of scala{-library,-compiler,-reflect,p}
@@ -735,26 +730,22 @@ object DottyInjectedPlugin extends AutoPlugin {
735
730
settings(commonSettings).
736
731
settings(
737
732
crossPaths := false
738
- ).
739
- settings(publishing)
733
+ )
740
734
lazy val `scala-reflect` = project.
741
735
settings(commonSettings).
742
736
settings(
743
737
crossPaths := false ,
744
738
libraryDependencies := Seq (" org.scala-lang" % " scala-reflect" % scalaVersion.value)
745
- ).
746
- settings(publishing)
739
+ )
747
740
lazy val scalap = project.
748
741
settings(commonSettings).
749
742
settings(
750
743
crossPaths := false ,
751
744
libraryDependencies := Seq (" org.scala-lang" % " scalap" % scalaVersion.value)
752
- ).
753
- settings(publishing)
745
+ )
754
746
755
- lazy val publishing = Seq (
747
+ lazy val publishSettings = Seq (
756
748
publishMavenStyle := true ,
757
- publishArtifact := true ,
758
749
isSnapshot := version.value.contains(" SNAPSHOT" ),
759
750
publishTo := {
760
751
val nexus = " https://oss.sonatype.org/"
0 commit comments