Skip to content

Commit

Permalink
Adding code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
jtgasper3 committed Jan 30, 2025
1 parent 804e972 commit 969f0eb
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=0.0.5-SNAPSHOT
version=0.0.6-SNAPSHOT
27 changes: 23 additions & 4 deletions lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,18 @@
plugins {
// Apply the java-library plugin for API and implementation separation.
id 'java-library'
id 'jacoco'
id 'maven-publish'
}

repositories {
mavenCentral()
}

jacoco {
toolVersion = "0.8.12"
}

sourceCompatibility = 1.8
targetCompatibility = 1.8

Expand Down Expand Up @@ -48,15 +53,29 @@ dependencies {
testImplementation 'org.json:json:20211205'
}

test {
useJUnitPlatform()
}

java {
withSourcesJar()
withJavadocJar()
}

tasks.withType(JavaCompile) {
options.debug = true
options.debugOptions.debugLevel = 'lines,vars,source'
}

jacocoTestReport {
reports {
xml.required = false
csv.required = false
html.outputLocation = file("${buildDir}/jacocoHtml")
}
}

test {
useJUnitPlatform()
finalizedBy jacocoTestReport
}

publishing {
publications {
maven(MavenPublication) {
Expand Down

0 comments on commit 969f0eb

Please sign in to comment.