-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
To develop a task that extends JavaExecFork in a buildSrc folder, I have to define buildSrc/build.gradle like this:
plugins {
id 'java-gradle-plugin'
}
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
implementation 'com.github.psxpaul:gradle-execfork-plugin:0.1.4'
}
Version 0.1.4 from 2016 is the latest version available on Maven Central.
With current Gradle 7.5.1, I get a conflict because of the definition of timeout in AbstractExecFork:
@Input
var timeout: Long = 60
The compiler detects a conflict with Gradle's DefaultTask.getTimeout:
https://docs.gradle.org/current/javadoc/org/gradle/api/DefaultTask.html#getTimeout--
Unfortunately, due to the way Kotlin generates final properties, one cannot even override getTimeout() to be compatible with Gradle's DefaultTask.
Metadata
Metadata
Assignees
Labels
No labels