@@ -96,8 +96,8 @@ class MillBuildRootModule()(implicit
9696 Agg .from(
9797 MillIvy .processMillIvyDepSignature(parseBuildFiles().ivyDeps)
9898 .map(mill.scalalib.Dep .parse)
99- ) ++
100- Agg (ivy " com.lihaoyi::mill-moduledefs: ${Versions .millModuledefsVersion}" )
99+ ) /* ++
100+ Agg(ivy"com.lihaoyi::mill-moduledefs:${Versions.millModuledefsVersion}")*/
101101 }
102102
103103 override def runIvyDeps = T {
@@ -232,8 +232,9 @@ class MillBuildRootModule()(implicit
232232 * We exclude them to avoid incompatible or duplicate artifacts on the classpath.
233233 */
234234 protected def resolveDepsExclusions : T [Seq [(String , String )]] = T {
235- Lib .millAssemblyEmbeddedDeps.toSeq.map(d =>
236- (d.dep.module.organization.value, d.dep.module.name.value)
235+ Lib .millAssemblyEmbeddedDeps.toSeq.flatMap(d =>
236+ if d.dep.module.name.value == " scala-library" && scalaVersion().startsWith(" 3." ) then None
237+ else Some ((d.dep.module.organization.value, d.dep.module.name.value))
237238 )
238239 }
239240
@@ -246,26 +247,27 @@ class MillBuildRootModule()(implicit
246247 }
247248
248249 override def scalacPluginIvyDeps : T [Agg [Dep ]] = Agg (
249- ivy " com.lihaoyi:::scalac-mill-moduledefs-plugin: ${Versions .millModuledefsVersion}"
250+ // ivy"com.lihaoyi:::scalac-mill-moduledefs-plugin:${Versions.millModuledefsVersion}"
250251 )
251252
252253 override def scalacOptions : T [Seq [String ]] = T {
253254 super .scalacOptions() ++
254255 Seq (
255- " -Xplugin:" + lineNumberPluginClasspath().map(_.path).mkString(" ," ),
256+ // "-Xplugin:" + lineNumberPluginClasspath().map(_.path).mkString(","),
256257 " -deprecation" ,
257258 // Make sure we abort of the plugin is not found, to ensure any
258259 // classpath/plugin-discovery issues are surfaced early rather than
259260 // after hours of debugging
260- " -Xplugin-require:mill-linenumber-plugin"
261+ // "-Xplugin-require:mill-linenumber-plugin"
261262 )
262263 }
263264
264265 override def scalacPluginClasspath : T [Agg [PathRef ]] =
265266 super .scalacPluginClasspath() ++ lineNumberPluginClasspath()
266267
267268 def lineNumberPluginClasspath : T [Agg [PathRef ]] = T {
268- millProjectModule(" mill-runner-linenumbers" , repositoriesTask())
269+ // millProjectModule("mill-runner-linenumbers", repositoriesTask())
270+ Agg .empty
269271 }
270272
271273 /** Used in BSP IntelliJ, which can only work with directories */
0 commit comments