在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):MansurAshraf/gradle-scalastyle-plugin开源软件地址(OpenSource Url):https://github.com/MansurAshraf/gradle-scalastyle-plugin开源编程语言(OpenSource Language):Groovy 81.9%开源软件介绍(OpenSource Introduction):Scala Style Gradle PluginIMPORTANTThis project is not actively maintained anymore. Go to https://github.com/ngbinh/gradle-scalastyle-plugin for Gradle Scala Style plugin Instructions
apply plugin: 'scalaStyle' Add following dependencies to your buildScript classpath "org.github.mansur.scalastyle:gradle-scalastyle-plugin_2.10:0.5.0" Configure the plugin scalaStyle {
configLocation = "/path/to/scalaStyle.xml"
includeTestSourceDirectory = true
source = "src/main/scala"
testSource = "src/test/scala"
}
Other optional properties are outputFile //Default => $buildDir/scala_style_result.xml
outputEncoding //Default => UTF-8
failOnViolation //Default => true
failOnWarning //Default => false
skip //Default => false
verbose //Default => false
quiet //Default => false
includeTestSourceDirectory //Default => false
inputEncoding //Default => UTF-8 Full Buildscript Exampleapply plugin: 'scalaStyle'
buildscript {
repositories {
mavenLocal()
mavenCentral()
maven { url "http://dl.bintray.com/releashaus/release" }
}
dependencies {
classpath 'org.github.mansur.scalastyle:gradle-scalastyle-plugin_2.10:0.5.0'
}
}
scalaStyle {
configLocation = "mega-project/sub-project/scalastyle_config.xml"
includeTestSourceDirectory = true
source = "src/main/scala"
testSource = "src/test/scala"
} |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论