Upgraded to Gradle 7.1.

This commit is contained in:
Erik C. Thauvin 2021-06-20 01:34:19 -07:00
parent 4c4f7da0da
commit eb14e72255
20 changed files with 139 additions and 48 deletions

View file

@ -22,12 +22,12 @@ application {
tasks {
named<JavaExec>("run") {
args = listOf("${project.projectDir}/example.html")
args = listOf("${project.projectDir}/example.html")
}
register<JavaExec>("runJava") {
group = "application"
main = "com.example.ReadingTimeSample"
mainClass.set("com.example.ReadingTimeSample")
classpath = sourceSets.main.get().runtimeClasspath
args = listOf("${project.projectDir}/example.html")
}

Binary file not shown.

View file

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

2
examples/gradlew vendored
View file

@ -72,7 +72,7 @@ case "`uname`" in
Darwin* )
darwin=true
;;
MINGW* )
MSYS* | MINGW* )
msys=true
;;
NONSTOP* )

View file

@ -16,8 +16,8 @@ public class ReadingTimeSample {
rt.setPlural("minutes to read");
System.out.println("It will take " + rt.calcReadingTime() + ' ' + ReadingTime.wordCount(rt.getText())
+ " words and " + ReadingTime.imgCount(rt.getText()) + " images at " + rt.getWpm()
+ " words per minute.");
+ " words and " + ReadingTime.imgCount(rt.getText()) + " images at " + rt.getWpm()
+ " words per minute.");
} catch (IOException e) {
System.err.println("The file could not be read or found.");
}

View file

@ -13,7 +13,7 @@ fun main(args: Array<String>) {
println(
"It will take ${rt.calcReadingTime()} ${ReadingTime.wordCount(rt.text)} words and " +
"${ReadingTime.imgCount(rt.text)} images at ${rt.wpm} words per minute."
"${ReadingTime.imgCount(rt.text)} images at ${rt.wpm} words per minute."
)
} else {
System.err.println("The file could not be read or found.")