You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use prior proper handling of file-existence-checking or locking so do not fail in IDE clean task or at least report that as warn not as error (so do not stop cleaning of subproject) especially as build directory is deleted after this task.
group = 'snadbox'
version = '3.0.0.0.SNAPSHOT'
sourceCompatibility='11'
targetCompatibility="${sourceCompatibility}"
if ("${gradle.gradleVersion}" != "5.6.4") {
logger.error("ERROR (Gradle ${gradle.gradleVersion}): Build script is not done for your version of Gradle, you have to use 5.6.4.")
}
Seems that from version 5.4 (e.g. 5.2.1 seems OK), but properly tested with 5.6.4 and 6.0.1.
Gradle: 5.6.4 for wrapped 6.0.1
JVM: 11.0.2 (Oracle Corporation 11.0.2+9)
IDE: Netbeans 11.2
Expected Behavior
Use prior proper handling of file-existence-checking or locking so do not fail in IDE clean task or at least report that as warn not as error (so do not stop cleaning of subproject) especially as build directory is deleted after this task.
Current Behavior
When it is executed "clean" task build is failed and you have to run possibly even N-times a clean task about each subproject that you have under root. But the build directory is deleted after execution such "clean" task.
See also: https://discuss.gradle.org/t/gradle-clean-task-fails-in-gradle-version-5-6-4-and-6-0-1/34218
Context
IDE: Netbeans 11.2
Task: clean
Clean all by one call not failing all the time and no need to run N-times.
Steps to Reproduce
I miss there attach so I put herein at least build.gradle:
apply plugin: 'base'
apply plugin: 'java'
apply plugin: 'distribution'
apply plugin: 'application'
apply plugin: 'com.jfrog.artifactory'
apply plugin: 'eclipse'
buildscript {
repositories {
mavenCentral()
jcenter()
maven { url 'https://oss.jfrog.org/artifactory/oss-snapshot-local' }
maven { url 'https://plugins.gradle.org/m2/' }
}
}
mainClassName = 'sandbox2.Main'
group = 'snadbox'
version = '3.0.0.0.SNAPSHOT'
sourceCompatibility='11'
targetCompatibility="${sourceCompatibility}"
if ("${gradle.gradleVersion}" != "5.6.4") {
logger.error("ERROR (Gradle ${gradle.gradleVersion}): Build script is not done for your version of Gradle, you have to use 5.6.4.")
}
repositories {
mavenCentral()
jcenter()
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
dependencies {
annotationProcessor 'org.projectlombok:lombok:1.18.10'
testCompile 'junit:junit:4.12'
}
Your Environment
Gradle: 5.6.4 for wrapped 6.0.1
JVM: 11.0.2 (Oracle Corporation 11.0.2+9)
IDE: Netbeans 11.2
The text was updated successfully, but these errors were encountered: