Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Groovy
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src
.gitignore
LICENSE.md
README.md
build.gradle

README.md

Development freezed

This notice is kind of late, but my focus was somewhere else. I am not working with dart anymore and, therefore, I will not develope the plugin any further. Hopefully there are people working on the code in their own forks. Feel free to do so.

Gradle Dart Plugin

Provides gradle integration for Dart projects.

Example usage

apply plugin: de.bolchsteinegger.gradle.plugin.DartPlugin
dart {
    dartSdkHome: '/usr/share/dart-sdk'
    relativeSourceDirectory: 'lib/src'
}
defaultTask 'pubGet', 'pubBuild', 'testDart'
buildscript {
        repositories {
                maven { url "http://travep.de/maven/" }
        }
        dependencies {
                classpath 'de.bolchsteinegger:gradle-dart-plugin:0.1.0'
        }
}

Available gradle tasks

  • 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)

Available settings

  • 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.
  • 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.
  • testPackagesFolders

    • Default: false
    • Define whether packages folder shall be tested.
Something went wrong with that request. Please try again.