Skip to content
This repository has been archived by the owner on Mar 5, 2023. It is now read-only.

Commit

Permalink
Merge 45c008c into 5509159
Browse files Browse the repository at this point in the history
  • Loading branch information
fzdy1914 committed Mar 2, 2019
2 parents 5509159 + 45c008c commit cdd5f64
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
18 changes: 7 additions & 11 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Gradle Configuration File
// For more details take a look at the Java Quickstart chapter in the Gradle
// user guide available at http://gradle.org/docs/4.8.1/userguide/tutorial_java_projects.html
// user guide available at http://gradle.org/docs/5.2.1/userguide/tutorial_java_projects.html

import org.gradle.api.tasks.testing.logging.TestLogEvent

Expand All @@ -9,7 +9,7 @@ plugins {
id 'jacoco'
id 'checkstyle'
id 'com.github.kt3k.coveralls' version '2.4.0'
id 'com.github.johnrengelman.shadow' version '2.0.3'
id 'com.github.johnrengelman.shadow' version '5.0.0'
id 'org.asciidoctor.convert' version '1.5.6'
id 'application'
}
Expand Down Expand Up @@ -65,18 +65,14 @@ shadowJar {
destinationDir = file("${buildDir}/jar/")
}

task wrapper(type: Wrapper) {
gradleVersion = '4.8.1'
}

task coverage(type: JacocoReport) {
sourceDirectories = files(sourceSets.main.allSource.srcDirs)
classDirectories = files(sourceSets.main.output)
executionData = files(jacocoTestReport.executionData)
sourceDirectories.from(files(sourceSets.main.allSource.srcDirs))
classDirectories.from(files(sourceSets.main.output))
executionData.from(files(jacocoTestReport.executionData))
afterEvaluate {
classDirectories = files(classDirectories.files.collect {
classDirectories.from(files(classDirectories.files.collect {
fileTree(dir: it, exclude: ['**/*.jar'])
})
}))
}
reports {
html.enabled = true
Expand Down
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-4.8.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-5.2.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

0 comments on commit cdd5f64

Please sign in to comment.