Upgraded to Gradle 7.1.
This commit is contained in:
parent
4c4f7da0da
commit
eb14e72255
20 changed files with 139 additions and 48 deletions
|
@ -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")
|
||||
}
|
||||
|
|
BIN
examples/gradle/wrapper/gradle-wrapper.jar
vendored
BIN
examples/gradle/wrapper/gradle-wrapper.jar
vendored
Binary file not shown.
|
@ -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
2
examples/gradlew
vendored
|
@ -72,7 +72,7 @@ case "`uname`" in
|
|||
Darwin* )
|
||||
darwin=true
|
||||
;;
|
||||
MINGW* )
|
||||
MSYS* | MINGW* )
|
||||
msys=true
|
||||
;;
|
||||
NONSTOP* )
|
||||
|
|
|
@ -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.");
|
||||
}
|
||||
|
|
|
@ -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.")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue