@@ -1133,21 +1133,21 @@ object Build {
1133
1133
state
1134
1134
}
1135
1135
1136
+ lazy val commonDistSettings = packSettings ++ Seq (
1137
+ publishArtifact := false ,
1138
+ packGenerateMakefile := false ,
1139
+ packExpandedClasspath := true ,
1140
+ packResourceDir += (baseDirectory.value / " bin" -> " bin" ),
1141
+ packArchiveName := " dotty-" + dottyVersion
1142
+ )
1143
+
1136
1144
lazy val dist = project.
1137
1145
dependsOn(`dotty-interfaces`).
1138
1146
dependsOn(`dotty-compiler`).
1139
1147
dependsOn(`dotty-library`).
1140
1148
dependsOn(`dotty-doc`).
1141
1149
settings(commonNonBootstrappedSettings).
1142
- settings(packSettings).
1143
- settings(
1144
- publishArtifact := false ,
1145
- // packMain := Map("dummy" -> "dotty.tools.dotc.Main"),
1146
- packGenerateMakefile := false ,
1147
- packExpandedClasspath := true ,
1148
- packResourceDir += (baseDirectory.value / " bin" -> " bin" ),
1149
- packArchiveName := " dotty-" + dottyVersion
1150
- )
1150
+ settings(commonDistSettings)
1151
1151
1152
1152
// Same as `dist` but using bootstrapped projects.
1153
1153
lazy val `dist-bootstrapped` = project.
@@ -1156,14 +1156,8 @@ object Build {
1156
1156
dependsOn(`dotty-compiler-bootstrapped`).
1157
1157
dependsOn(`dotty-doc-bootstrapped`).
1158
1158
settings(commonBootstrappedSettings).
1159
- settings(packSettings ).
1159
+ settings(commonDistSettings ).
1160
1160
settings(
1161
- target := baseDirectory.value / " target" , // override setting in commonBootstrappedSettings
1162
- publishArtifact := false ,
1163
- // packMain := Map("dummy" -> "dotty.tools.dotc.Main"),
1164
- packExpandedClasspath := true ,
1165
- packGenerateMakefile := false ,
1166
- packResourceDir += (baseDirectory.value / " bin" -> " bin" ),
1167
- packArchiveName := " dotty-" + dottyVersion
1161
+ target := baseDirectory.value / " target" // override setting in commonBootstrappedSettings
1168
1162
)
1169
1163
}
0 commit comments