@@ -1132,11 +1132,30 @@ object Build {
1132
1132
case Bootstrapped => `scala3-presentation-compiler-bootstrapped`
1133
1133
}
1134
1134
1135
+ def scala3PresentationCompilerBuildInfo (implicit mode : Mode ) =
1136
+ Seq (
1137
+ ideTestsDependencyClasspath := {
1138
+ val dottyLib = (dottyLibrary / Compile / classDirectory).value
1139
+ val scalaLib =
1140
+ (dottyLibrary / Compile / dependencyClasspath)
1141
+ .value
1142
+ .map(_.data)
1143
+ .filter(_.getName.matches(" scala-library.*\\ .jar" ))
1144
+ .toList
1145
+ dottyLib :: scalaLib
1146
+ // Nil
1147
+ },
1148
+ Compile / buildInfoPackage := " dotty.tools.pc.util" ,
1149
+ Compile / buildInfoKeys := Seq (scalaVersion),
1150
+ Test / buildInfoKeys := Seq (scalaVersion, ideTestsDependencyClasspath)
1151
+ ) ++ BuildInfoPlugin .buildInfoScopedSettings(Compile ) ++
1152
+ BuildInfoPlugin .buildInfoScopedSettings(Test ) ++
1153
+ BuildInfoPlugin .buildInfoDefaultSettings
1154
+
1135
1155
lazy val presentationCompilerSettings = {
1136
1156
val mtagsVersion = " 0.11.12+45-45df705d-SNAPSHOT" // Will be set to stable release after 0.11.13 is published
1137
1157
1138
1158
Seq (
1139
- moduleName := " scala3-presentation-compiler" ,
1140
1159
libraryDependencies ++= Seq (
1141
1160
" org.lz4" % " lz4-java" % " 1.8.0" ,
1142
1161
" io.get-coursier" % " interface" % " 1.0.13" ,
@@ -1177,22 +1196,7 @@ object Build {
1177
1196
mtagsSharedSources
1178
1197
} (Set (mtagsSharedSourceJar)).toSeq
1179
1198
}.taskValue,
1180
- ideTestsDependencyClasspath := {
1181
- val dottyLib = (`scala3-library-bootstrapped` / Compile / classDirectory).value
1182
- val scalaLib =
1183
- (`scala3-library-bootstrapped` / Compile / dependencyClasspath)
1184
- .value
1185
- .map(_.data)
1186
- .filter(_.getName.matches(" scala-library.*\\ .jar" ))
1187
- .toList
1188
- dottyLib :: scalaLib
1189
- },
1190
- Compile / buildInfoPackage := " dotty.tools.pc.util" ,
1191
- Compile / buildInfoKeys := Seq (scalaVersion),
1192
- Test / buildInfoKeys := Seq (scalaVersion, ideTestsDependencyClasspath)
1193
- ) ++ BuildInfoPlugin .buildInfoScopedSettings(Compile ) ++
1194
- BuildInfoPlugin .buildInfoScopedSettings(Test ) ++
1195
- BuildInfoPlugin .buildInfoDefaultSettings
1199
+ )
1196
1200
}
1197
1201
1198
1202
lazy val `scala3-language-server` = project.in(file(" language-server" )).
@@ -1994,8 +1998,9 @@ object Build {
1994
1998
enablePlugins(JmhPlugin )
1995
1999
1996
2000
def asScala3PresentationCompiler (implicit mode : Mode ): Project = project.withCommonSettings.
1997
- dependsOn(dottyCompiler).
1998
- settings(presentationCompilerSettings)
2001
+ dependsOn(dottyCompiler, dottyLibrary).
2002
+ settings(presentationCompilerSettings).
2003
+ settings(scala3PresentationCompilerBuildInfo)
1999
2004
2000
2005
def asDist (implicit mode : Mode ): Project = project.
2001
2006
enablePlugins(PackPlugin ).
0 commit comments