2017-10-15 11 views

答えて

0

ここだが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ブロックを使用してプラグインの動作を設定できます。

+0

@kevinjoeiy、分かりません。あなたはドキュメントを読んだり、別の質問をする必要があります。 – Opal

関連する問題