From 16e67cb248ba96fc3722561bcadbba27a2779a03 Mon Sep 17 00:00:00 2001 From: "Joseph K. Strauss" Date: Thu, 16 Aug 2018 21:59:01 -0400 Subject: Visualize plan (#409) * Add VisualizePlan.svg to docs build * Use simpler graph --- docs/VisualizePlan.svg | 866 +++++++++------------------------------- docs/build.sc | 1 + docs/pages/1 - Intro to Mill.md | 2 +- 3 files changed, 198 insertions(+), 671 deletions(-) (limited to 'docs') diff --git a/docs/VisualizePlan.svg b/docs/VisualizePlan.svg index 973b44c3..f6e50b39 100644 --- a/docs/VisualizePlan.svg +++ b/docs/VisualizePlan.svg @@ -1,829 +1,355 @@ - - + + example1 - - - -core.mainClass - -core.mainClass - + - + mill.scalalib.ScalaWorkerModule.classpath - -mill.scalalib.ScalaWorkerModule.classpath + +mill.scalalib.ScalaWorkerModule.classpath - + mill.scalalib.ScalaWorkerModule.compilerInterfaceClasspath - -mill.scalalib.ScalaWorkerModule.compilerInterfaceClasspath + +mill.scalalib.ScalaWorkerModule.compilerInterfaceClasspath - + mill.scalalib.ScalaWorkerModule.worker - -mill.scalalib.ScalaWorkerModule.worker + +mill.scalalib.ScalaWorkerModule.worker mill.scalalib.ScalaWorkerModule.worker->mill.scalalib.ScalaWorkerModule.classpath - - + + mill.scalalib.ScalaWorkerModule.worker->mill.scalalib.ScalaWorkerModule.compilerInterfaceClasspath - - - - - -core.scalaVersion - -core.scalaVersion - - - -core.sources - -core.sources - - - -core.generatedSources - -core.generatedSources - - - -core.allSources - -core.allSources - - - -core.allSources->core.sources - - - - - -core.allSources->core.generatedSources - - - - - -core.allSourceFiles - -core.allSourceFiles - - - -core.allSourceFiles->core.allSources - - - - - -core.platformSuffix - -core.platformSuffix - - - -core.scalaCompilerBridgeSources - -core.scalaCompilerBridgeSources - - - -core.scalaCompilerBridgeSources->core.scalaVersion - - - - - -core.scalaCompilerBridgeSources->core.platformSuffix - - - - - -moduledefs.resources - -moduledefs.resources + + - + moduledefs.scalaVersion - -moduledefs.scalaVersion + +moduledefs.scalaVersion - + moduledefs.sources - -moduledefs.sources + +moduledefs.sources - + moduledefs.generatedSources - -moduledefs.generatedSources + +moduledefs.generatedSources - + moduledefs.allSources - -moduledefs.allSources + +moduledefs.allSources - + moduledefs.allSources->moduledefs.sources - - + + - + moduledefs.allSources->moduledefs.generatedSources - - + + - + moduledefs.allSourceFiles - -moduledefs.allSourceFiles + +moduledefs.allSourceFiles - + moduledefs.allSourceFiles->moduledefs.allSources - - + + + + + +moduledefs.scalaOrganization + +moduledefs.scalaOrganization + + + +moduledefs.scalaOrganization->moduledefs.scalaVersion + + - + moduledefs.platformSuffix - -moduledefs.platformSuffix + +moduledefs.platformSuffix - + moduledefs.scalaCompilerBridgeSources - -moduledefs.scalaCompilerBridgeSources + +moduledefs.scalaCompilerBridgeSources - - -moduledefs.scalaCompilerBridgeSources->moduledefs.scalaVersion - - + + +moduledefs.scalaCompilerBridgeSources->moduledefs.scalaOrganization + + - + moduledefs.scalaCompilerBridgeSources->moduledefs.platformSuffix - - + + - + moduledefs.transitiveLocalClasspath - -moduledefs.transitiveLocalClasspath + +moduledefs.transitiveLocalClasspath + + + +moduledefs.resources + +moduledefs.resources - + moduledefs.unmanagedClasspath - -moduledefs.unmanagedClasspath + +moduledefs.unmanagedClasspath - + moduledefs.compileIvyDeps - -moduledefs.compileIvyDeps + +moduledefs.compileIvyDeps - + moduledefs.scalaLibraryIvyDeps - -moduledefs.scalaLibraryIvyDeps + +moduledefs.scalaLibraryIvyDeps - - -moduledefs.scalaLibraryIvyDeps->moduledefs.scalaVersion - - + + +moduledefs.scalaLibraryIvyDeps->moduledefs.scalaOrganization + + - + moduledefs.ivyDeps - -moduledefs.ivyDeps + +moduledefs.ivyDeps - + moduledefs.ivyDeps->moduledefs.scalaVersion - - + + - + moduledefs.transitiveIvyDeps - -moduledefs.transitiveIvyDeps + +moduledefs.transitiveIvyDeps - + moduledefs.transitiveIvyDeps->moduledefs.ivyDeps - - + + - + moduledefs.compileClasspath - -moduledefs.compileClasspath - - - -moduledefs.compileClasspath->moduledefs.resources - - + +moduledefs.compileClasspath - + moduledefs.compileClasspath->moduledefs.platformSuffix - - + + - + moduledefs.compileClasspath->moduledefs.transitiveLocalClasspath - - + + + + + +moduledefs.compileClasspath->moduledefs.resources + + - + moduledefs.compileClasspath->moduledefs.unmanagedClasspath - - + + - + moduledefs.compileClasspath->moduledefs.compileIvyDeps - - + + - + moduledefs.compileClasspath->moduledefs.scalaLibraryIvyDeps - - + + - + moduledefs.compileClasspath->moduledefs.transitiveIvyDeps - - + + - + moduledefs.scalaCompilerClasspath - -moduledefs.scalaCompilerClasspath + +moduledefs.scalaCompilerClasspath - - -moduledefs.scalaCompilerClasspath->moduledefs.scalaVersion - - + + +moduledefs.scalaCompilerClasspath->moduledefs.scalaOrganization + + - + moduledefs.scalaCompilerClasspath->moduledefs.platformSuffix - - + + - + moduledefs.scalacOptions - -moduledefs.scalacOptions + +moduledefs.scalacOptions - + moduledefs.scalacPluginIvyDeps - -moduledefs.scalacPluginIvyDeps + +moduledefs.scalacPluginIvyDeps - + moduledefs.scalacPluginClasspath - -moduledefs.scalacPluginClasspath + +moduledefs.scalacPluginClasspath - - -moduledefs.scalacPluginClasspath->moduledefs.scalaVersion - - + + +moduledefs.scalacPluginClasspath->moduledefs.scalaOrganization + + - + moduledefs.scalacPluginClasspath->moduledefs.platformSuffix - - + + - + moduledefs.scalacPluginClasspath->moduledefs.scalacPluginIvyDeps - - + + - + moduledefs.javacOptions - -moduledefs.javacOptions + +moduledefs.javacOptions - + moduledefs.upstreamCompileOutput - -moduledefs.upstreamCompileOutput + +moduledefs.upstreamCompileOutput - + moduledefs.compile - -moduledefs.compile + +moduledefs.compile - + moduledefs.compile->mill.scalalib.ScalaWorkerModule.worker - - + + - + moduledefs.compile->moduledefs.allSourceFiles - - + + - + moduledefs.compile->moduledefs.scalaCompilerBridgeSources - - + + - + moduledefs.compile->moduledefs.compileClasspath - - + + - + moduledefs.compile->moduledefs.scalaCompilerClasspath - - + + - + moduledefs.compile->moduledefs.scalacOptions - - + + - + moduledefs.compile->moduledefs.scalacPluginClasspath - - + + - + moduledefs.compile->moduledefs.javacOptions - - + + - + moduledefs.compile->moduledefs.upstreamCompileOutput - - - - - -moduledefs.localClasspath - -moduledefs.localClasspath - - - -moduledefs.localClasspath->moduledefs.compile - - - - - -core.transitiveLocalClasspath - -core.transitiveLocalClasspath - - - -core.transitiveLocalClasspath->moduledefs.localClasspath - - - - - -core.resources - -core.resources - - - -core.unmanagedClasspath - -core.unmanagedClasspath - - - -core.compileIvyDeps - -core.compileIvyDeps - - - -core.compileIvyDeps->core.scalaVersion - - - - - -core.scalaLibraryIvyDeps - -core.scalaLibraryIvyDeps - - - -core.scalaLibraryIvyDeps->core.scalaVersion - - - - - -core.ivyDeps - -core.ivyDeps - - - -core.transitiveIvyDeps - -core.transitiveIvyDeps - - - -core.transitiveIvyDeps->moduledefs.transitiveIvyDeps - - - - - -core.transitiveIvyDeps->core.ivyDeps - - - - - -core.compileClasspath - -core.compileClasspath - - - -core.compileClasspath->core.platformSuffix - - - - - -core.compileClasspath->core.transitiveLocalClasspath - - - - - -core.compileClasspath->core.resources - - - - - -core.compileClasspath->core.unmanagedClasspath - - - - - -core.compileClasspath->core.compileIvyDeps - - - - - -core.compileClasspath->core.scalaLibraryIvyDeps - - - - - -core.compileClasspath->core.transitiveIvyDeps - - - - - -core.scalaCompilerClasspath - -core.scalaCompilerClasspath - - - -core.scalaCompilerClasspath->core.scalaVersion - - - - - -core.scalaCompilerClasspath->core.platformSuffix - - - - - -core.scalacOptions - -core.scalacOptions - - - -core.scalacPluginIvyDeps - -core.scalacPluginIvyDeps - - - -core.scalacPluginClasspath - -core.scalacPluginClasspath - - - -core.scalacPluginClasspath->core.scalaVersion - - - - - -core.scalacPluginClasspath->core.platformSuffix - - - - - -core.scalacPluginClasspath->core.scalacPluginIvyDeps - - - - - -core.javacOptions - -core.javacOptions - - - -core.upstreamCompileOutput - -core.upstreamCompileOutput - - - -core.upstreamCompileOutput->moduledefs.compile - - - - - -core.compile - -core.compile - - - -core.compile->mill.scalalib.ScalaWorkerModule.worker - - - - - -core.compile->core.allSourceFiles - - - - - -core.compile->core.scalaCompilerBridgeSources - - - - - -core.compile->core.compileClasspath - - - - - -core.compile->core.scalaCompilerClasspath - - - - - -core.compile->core.scalacOptions - - - - - -core.compile->core.scalacPluginClasspath - - - - - -core.compile->core.javacOptions - - - - - -core.compile->core.upstreamCompileOutput - - - - - -core.finalMainClassOpt - -core.finalMainClassOpt - - - -core.finalMainClassOpt->core.mainClass - - - - - -core.finalMainClassOpt->mill.scalalib.ScalaWorkerModule.worker - - - - - -core.finalMainClassOpt->core.compile - - - - - -core.finalMainClass - -core.finalMainClass - - - -core.finalMainClass->core.finalMainClassOpt - - - - - -core.localClasspath - -core.localClasspath - - - -core.localClasspath->core.compile - - - - - -core.runIvyDeps - -core.runIvyDeps - - - -core.upstreamAssemblyClasspath - -core.upstreamAssemblyClasspath - - - -core.upstreamAssemblyClasspath->core.platformSuffix - - - - - -core.upstreamAssemblyClasspath->core.transitiveLocalClasspath - - - - - -core.upstreamAssemblyClasspath->core.unmanagedClasspath - - - - - -core.upstreamAssemblyClasspath->core.scalaLibraryIvyDeps - - - - - -core.upstreamAssemblyClasspath->core.transitiveIvyDeps - - - - - -core.upstreamAssemblyClasspath->core.runIvyDeps - - - - - -core.runClasspath - -core.runClasspath - - - -core.runClasspath->core.localClasspath - - - - - -core.runClasspath->core.upstreamAssemblyClasspath - - - - - -core.forkArgs - -core.forkArgs - - - -core.launcher - -core.launcher - - - -core.launcher->core.finalMainClass - - - - - -core.launcher->core.runClasspath - - - - - -core.launcher->core.forkArgs - - + + diff --git a/docs/build.sc b/docs/build.sc index e216ea65..42a4f141 100644 --- a/docs/build.sc +++ b/docs/build.sc @@ -145,6 +145,7 @@ def main(publish: Boolean = false) = { cp(pwd/"logo-white.svg", targetFolder/"logo-white.svg") cp(pwd/"VisualizeCompile.svg", targetFolder/"VisualizeCompile.svg") cp(pwd/"VisualizeCore.svg", targetFolder/"VisualizeCore.svg") + cp(pwd/"VisualizePlan.svg", targetFolder/"VisualizePlan.svg") %('zip, "-r", targetFolder/"example-1.zip", "example-1")(pwd) %('zip, "-r", targetFolder/"example-2.zip", "example-2")(pwd) diff --git a/docs/pages/1 - Intro to Mill.md b/docs/pages/1 - Intro to Mill.md index b6606211..48c2ac0f 100644 --- a/docs/pages/1 - Intro to Mill.md +++ b/docs/pages/1 - Intro to Mill.md @@ -561,7 +561,7 @@ compilation output: ### visualizePlan ```bash -$ mill show visualizePlan core.launcher +$ mill show visualizePlan moduledefs.compile [ ".../out/visualizePlan/dest/out.txt", ".../out/visualizePlan/dest/out.dot", -- cgit v1.2.3