Minor cleanups
This commit is contained in:
parent
8d4f608e90
commit
258b8126bb
6 changed files with 427 additions and 6 deletions
|
@ -54,6 +54,9 @@ import static rife.bld.dependencies.Scope.compile;
|
|||
import static rife.bld.dependencies.Scope.test;
|
||||
|
||||
public class ReadingTimeBuild extends Project {
|
||||
private static final String DETEKT_BASELINE = "config/detekt/baseline.xml";
|
||||
private final File srcMainKotlin = new File(srcMainDirectory(), "kotlin");
|
||||
|
||||
public ReadingTimeBuild() {
|
||||
pkg = "net.thauvin.erik";
|
||||
name = "readingtime";
|
||||
|
@ -104,7 +107,7 @@ public class ReadingTimeBuild extends Project {
|
|||
.signKey(property("sign.key"))
|
||||
.signPassphrase(property("sign.passphrase"));
|
||||
|
||||
jarSourcesOperation().sourceDirectories(new File(srcMainDirectory(), "kotlin"));
|
||||
jarSourcesOperation().sourceDirectories(srcMainKotlin);
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
@ -123,7 +126,7 @@ public class ReadingTimeBuild extends Project {
|
|||
public void detekt() throws ExitStatusException, IOException, InterruptedException {
|
||||
new DetektOperation()
|
||||
.fromProject(this)
|
||||
.baseline("config/detekt/baseline.xml")
|
||||
.baseline(DETEKT_BASELINE)
|
||||
.execute();
|
||||
}
|
||||
|
||||
|
@ -131,7 +134,7 @@ public class ReadingTimeBuild extends Project {
|
|||
public void detektBaseline() throws ExitStatusException, IOException, InterruptedException {
|
||||
new DetektOperation()
|
||||
.fromProject(this)
|
||||
.baseline("config/detekt/baseline.xml")
|
||||
.baseline(DETEKT_BASELINE)
|
||||
.createBaseline(true)
|
||||
.execute();
|
||||
}
|
||||
|
@ -140,7 +143,7 @@ public class ReadingTimeBuild extends Project {
|
|||
public void jacoco() throws IOException {
|
||||
new JacocoReportOperation()
|
||||
.fromProject(this)
|
||||
.sourceFiles(new File(srcMainDirectory(), "kotlin"))
|
||||
.sourceFiles(srcMainKotlin)
|
||||
.execute();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue