Added source files for JaCoCo

This commit is contained in:
Erik C. Thauvin 2024-05-10 00:18:33 -07:00
parent a110ce5420
commit 0cfe6c7274
Signed by: erik
GPG key ID: 776702A6A2DA330E

View file

@ -57,6 +57,7 @@ import static rife.bld.dependencies.Scope.test;
public class BitlyShortenBuild extends Project { public class BitlyShortenBuild extends Project {
final File srcMainKotlin = new File(srcMainDirectory(), "kotlin"); final File srcMainKotlin = new File(srcMainDirectory(), "kotlin");
public BitlyShortenBuild() { public BitlyShortenBuild() {
pkg = "net.thauvin.erik"; pkg = "net.thauvin.erik";
name = "bitly-shorten"; name = "bitly-shorten";
@ -74,7 +75,7 @@ public class BitlyShortenBuild extends Project {
.include(dependency("org.jetbrains.kotlin", "kotlin-stdlib", kotlin)) .include(dependency("org.jetbrains.kotlin", "kotlin-stdlib", kotlin))
.include(dependency("org.jetbrains.kotlin", "kotlin-stdlib-common", kotlin)) .include(dependency("org.jetbrains.kotlin", "kotlin-stdlib-common", kotlin))
.include(dependency("org.jetbrains.kotlin", "kotlin-stdlib-jdk8", kotlin)) .include(dependency("org.jetbrains.kotlin", "kotlin-stdlib-jdk8", kotlin))
// // OkHttp
.include(dependency("com.squareup.okhttp3", "okhttp", okHttp)) .include(dependency("com.squareup.okhttp3", "okhttp", okHttp))
.include(dependency("com.squareup.okhttp3", "logging-interceptor", okHttp)) .include(dependency("com.squareup.okhttp3", "logging-interceptor", okHttp))
// JSON // JSON
@ -172,6 +173,7 @@ public class BitlyShortenBuild extends Project {
public void jacoco() throws IOException { public void jacoco() throws IOException {
new JacocoReportOperation() new JacocoReportOperation()
.fromProject(this) .fromProject(this)
.sourceFiles(srcMainKotlin)
.execute(); .execute();
} }