Provides Gradle integration for Dart projects.
Forked from steineggerroland/gradle-dart
plugins {
id 'com.github.ngyewch.dart' version '0.3.0'
}
- pubGet (resolves dependencies with pub get)
- pubUpgrade (upgrade project with latest versions of dependencies with pub upgrade)
- pubBuild (build project)
- pubServe (start a development server for your webapp)
- pubPublish (publishes the project with pub publish)
- analyseDart (alayses files in source folder)
- testDart (executes tests in test folder)
-
dartSdkHome / dartSdkBin
- Default: empty string or 'DART_SDK' environment variable
- Used for execution of dart commands. Set 'dartSdkHome' or 'dartSdkBin' if you don't have the dart sdk bin in your path variables.
-
commandLineParameters
- Default: empty set
- Additional parameters for command execution.
-
pubspecDirectory
- Default: Project directory (Location of build.gradle)
- Directory of 'pubspec.yaml' file.
-
sourceDirectory / relativeSourceDirectory
- Default:
$ProjectDirectory$ /lib/src (according to preferred project structure) - Needed for analysing source files. The path can be set relative to the project directory.
- Default:
-
analysePackagesFolders
- Default: false
- Define whether packages folder shall be analysed.
-
testDirectory / relativeTestDirectory
- Default:
$ProjectDirectory$ /test (according to preferred project structure) - Needed for executing tests. The path can be set relative to the project directory.
- Default:
-
testPackagesFolders
- Default: false
- Define whether packages folder shall be tested.