Upgraded to Gradle 7.0.1
This commit is contained in:
parent
b1810846a5
commit
b55e3a6956
4 changed files with 18 additions and 8 deletions
|
@ -4,8 +4,8 @@ plugins {
|
|||
application
|
||||
}
|
||||
|
||||
// ./gradlew run --args="example.html"
|
||||
// ./gradlew runJava --args="example.html"
|
||||
// ./gradlew run
|
||||
// ./gradlew runJava
|
||||
|
||||
repositories {
|
||||
mavenLocal()
|
||||
|
@ -17,7 +17,7 @@ dependencies {
|
|||
}
|
||||
|
||||
application {
|
||||
mainClassName = "com.example.ReadingTimeExampleKt"
|
||||
mainClass.set("com.example.ReadingTimeExampleKt")
|
||||
}
|
||||
|
||||
tasks {
|
||||
|
@ -28,7 +28,7 @@ tasks {
|
|||
register<JavaExec>("runJava") {
|
||||
group = "application"
|
||||
main = "com.example.ReadingTimeSample"
|
||||
classpath = sourceSets["main"].runtimeClasspath
|
||||
classpath = sourceSets.main.get().runtimeClasspath
|
||||
args = listOf("${project.projectDir}/example.html")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue