Skip to content

Commit

Permalink
Update gradle (#21)
Browse files Browse the repository at this point in the history
* Update to latest gradle version

* Update gradle wrapper
  • Loading branch information
thsaravana authored Jul 21, 2023
1 parent 9b75233 commit 4308a51
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 7 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
id 'java'
id 'jacoco'
id 'org.jetbrains.kotlin.jvm' version '1.4.30'
id 'org.jetbrains.kotlin.jvm' version '1.9.0'
}

group 'com.madrapps'
Expand All @@ -13,7 +13,7 @@ repositories {

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib"
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.6.0'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
}

Expand All @@ -22,11 +22,12 @@ test {
}

jacoco {
toolVersion '0.8.0'
toolVersion '0.8.10'
}

tasks.withType(Test) {
jacoco.includeNoLocationClasses = true
jacoco.excludes = ['jdk.internal.*']
}

tasks.create(name: "testCoverage", type: JacocoReport, dependsOn: "test") {
Expand All @@ -35,8 +36,8 @@ tasks.create(name: "testCoverage", type: JacocoReport, dependsOn: "test") {
description = "Generate Jacoco coverage reports for the test build."

reports {
html.enabled = true
xml.enabled = true
html.required.set(true)
xml.required.set(true)
}

def excludes = [
Expand All @@ -60,4 +61,4 @@ tasks.create(name: "testCoverage", type: JacocoReport, dependsOn: "test") {
])

executionData.from = files("${project.buildDir}/jacoco/test.exec")
}
}
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

0 comments on commit 4308a51

Please sign in to comment.