jb library

Classes

CompileOutput
Compilation output destination.
ConfigSource
CreateOptions
The 'create' command options.
DependencySpec
Specification of a dependency.
Developer
Developers that have contributed to this project.
ExtensionTask
Definition of a jb extension task.
FileConfigSource
FileDeps
FileDiff
FileTree
A tree of files describing files' dependencies.
InstanceConfigSource
JarDependency
JbCliOptions
JbConfiguration
jb configuration model.
JbDartle
jb Dartle build definition.
JbExtensionModel
jb extension model.
JUnit
JUnit Testing Framework information.
License
A SPDX License.
LocalDependencies
Grouping of all local dependencies, which can be local JarDependency or ProjectDependencys.
PathDependency
A dependency that refers to a local path.
ProjectDependency
ResolvedLocalDependencies
ResolvedProjectDependency
SourceControlManagement
Source control Management settings.
TransitiveChanges

Enums

DependencyScope
Scope of a dependency.

Properties

logger → Logger
final

Functions

computeAllChanges(ChangeSet? changeSet, File srcFileTree) Future<TransitiveChanges?>
copyDartleOptions(Options options, List<String> tasksInvocation) → Options
createCompileRunCondition(JbConfiguration config, DartleCache cache) → RunOnChanges
Create run condition for the compile task.
createCompileTask(JbFiles jbFiles, JbConfiguration config, DartleCache cache, JBuildSender jBuildSender) → Task
Create the compile task.
createDepsTask(File jbuildJar, JbConfiguration config, DartleCache cache, LocalDependencies localDependencies, LocalDependencies localProcessorDeps) → Task
Create the dependencies task.
createDownloadTestRunnerTask(JbConfiguration config, JBuildSender jBuildSender, DartleCache cache, FileCollection jbFileInputs) → Task
Create the downloadTestRunner task.
createEclipseTask(JbConfiguration config) → Task
createGeneratePomTask(JbConfiguration config, ResolvedLocalDependencies localDependencies) → Task
createIfNeededAndGetJBuildJarFile() Future<File>
createInstallCompileDepsTask(JbFiles files, JbConfiguration config, JBuildSender jBuildSender, DartleCache cache, ResolvedLocalDependencies localDependencies) → Task
Create the installCompileDependencies task.
createInstallProcessorDepsTask(JbFiles files, JbConfiguration config, JBuildSender jBuildSender, DartleCache cache, ResolvedLocalDependencies localDependencies) → Task
Create the installProcessorDependencies task.
createInstallRuntimeDepsTask(JbFiles files, JbConfiguration config, JBuildSender jBuildSender, DartleCache cache, ResolvedLocalDependencies localDependencies) → Task
Create the installRuntimeDependencies task.
createNewProject(List<String> arguments) Future<void>
Create a new jb project.
createPom(JbConfiguration config, ResolvedLocalDependencies localDependencies) Object
Create a Maven POM for publishing purposes.
createRequirementsTask(File jbuildJar, JbConfiguration config) → Task
Create the requirements task.
createRunTask(JbFiles files, JbConfiguration config, DartleCache cache) → Task
Create the run task.
createShowConfigTask(JbConfiguration config, bool noColor) → Task
createTestTask(File jbuildJar, JbConfiguration config, DartleCache cache, bool noColor) → Task
Create the test task.
createWriteDependenciesTask(JbFiles jbFiles, JbConfiguration config, DartleCache cache, FileCollection jbFileInputs, LocalDependencies localDependencies, LocalDependencies localProcessorDeps) → Task
Create the writeDependencies task.
execJava(String taskName, List<String> args, {ProcessOutputConsumer? onStdout, ProcessOutputConsumer? onStderr, Map<String, String> env = const {}}) Future<int>
Execute a java process.
execJBuild(String taskName, File jbuildJar, List<String> preArgs, String command, List<String> commandArgs, {ProcessOutputConsumer? onStdout, ProcessOutputConsumer? onStderr, Map<String, String> env = const {}}) Future<int>
Execute the jbuild tool.
findJUnitSpec(Map<String, DependencySpec> dependencies) JUnit?
Find JUnit information from a jb project dependencies, if available.
jbuildCliHome() String
Find the jb home directory.
jbuildJarPath() String
The jbuild.jar path. This jar is created, if necessary, from the embedded jar in jb, but may be updated.
junitConsoleLib(String version) String
Dependency coordinates for the JUnit ConsoleLauncher.
loadConfig(File configFile) Future<JbConfiguration>
Parse the YAML/JSON jbuild file.
loadConfigString(String config) Future<JbConfiguration>
Parse the YAML/JSON jb configuration.
loadFileTree(Stream<String> requirements) Future<FileTree>
loadFileTreeFrom(File file) Future<FileTree>
loadJbExtensionModel(String config, Uri yamlUri) Future<JbExtensionModel>
Parse the YAML/JSON jb extension model.
printDependencies(File jbuildJar, JbConfiguration config, DartleCache cache, LocalDependencies localDependencies, LocalDependencies localProcessorDependencies, List<String> args) Future<int>
runJb(JbCliOptions jbOptions, Options dartleOptions, Stopwatch stopwatch, [ConfigSource? configSource]) Future<bool>
Run jb.
storeNewFileTree(String taskName, JbConfiguration config, JBuildSender jBuildSender, String buildOutput, File fileTreeFile) Future<void>
writeDependencies({required File depsFile, required LocalDependencies localDeps, required LocalDependencies localProcessorDeps, required Map<String, DependencySpec> deps, required Set<String> exclusions, required File processorDepsFile, required Map<String, DependencySpec> processorDeps, required Set<String> processorsExclusions}) Future<void>