Giriş
plugins {// Apply the java-library plugin for API and implementation separation.id 'java-library'id 'checkstyle'}
Modulün bulunduğu yerde şöyle bir dosya oluşturulur
config\checkstyle\checkstyle.xml
Sonra şöyle yaparız
checkstyle {
configFile = file("${rootDir}/config/checkstyle/checkstyle.xml")
}
checkstyleMain {
source ='src/main/java'
}
checkstyleTest {
source ='src/test/java'
}Daha sonra şöyle yaparız.
gradle check
Açıklaması şöyle
The Checkstyle plugin adds the following dependencies to tasks defined by the Java plugin.checkDepends on: All Checkstyle tasks, including checkstyleMain and checkstyleTest.
veya şöyle yaparız
gradle build
Hiç yorum yok:
Yorum Gönder