ここだがscalaStyle
プラグインを使用するサンプルbuild.gradle
です:
buildscript {
repositories {
maven {
url 'http://jcenter.bintray.com/'
}
}
dependencies {
classpath 'org.github.ngbinh.scalastyle:gradle-scalastyle-plugin_2.11:0.9.0' //version 1.0.0 is not published yet.
}
}
apply plugin: 'scalaStyle'
scalaStyle {
configLocation = '/path/to/scalaStyle.xml'
includeTestSourceDirectory = true
source = 'src/main/scala'
testSource = 'src/test/scala'
}
あなたは依存関係を宣言するbuildscript
ブロックを定義する必要がありますスクリプトそのもの。完了したら、プラグインを適用する必要があります。最後にscalaStyle
ブロックを使用してプラグインの動作を設定できます。
@kevinjoeiy、分かりません。あなたはドキュメントを読んだり、別の質問をする必要があります。 – Opal