ttaolu commented on issue #5794:
URL: https://github.com/apache/jmeter/issues/5794#issuecomment-1477448014
no, that was I run autostyleApply ,
```
$ ./gradlew autostyleApply --stacktrace
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
> Configure project :buildSrc
Multiple files present for artifact
org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.7.10:
D:\Gradle\GradleUserHome\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-gradle-plugin-api\1.7.10\3b38be7ed8f8c678b13991d5b3ec99c4908d3313\kotlin-gradle-plugin-api-1.7.10-gradle70.jar
and
D:\Gradle\GradleUserHome\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-gradle-plugin-api\1.7.10\3b38be7ed8f8c678b13991d5b3ec99c4908d3313\kotlin-gradle-plugin-api-1.7.10.jar
> Task :buildSrc:batchtest:compileKotlin UP-TO-DATE
Multiple files present for artifact
org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.7.10:
D:\Gradle\GradleUserHome\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-gradle-plugin-api\1.7.10\3b38be7ed8f8c678b13991d5b3ec99c4908d3313\kotlin-gradle-plugin-api-1.7.10-gradle70.jar
and
D:\Gradle\GradleUserHome\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-gradle-plugin-api\1.7.10\3b38be7ed8f8c678b13991d5b3ec99c4908d3313\kotlin-gradle-plugin-api-1.7.10.jar
> Task :buildSrc:autostyleKotlinGradleCheck FAILED
> Task :buildSrc:batchtest:autostyleKotlinCheck FAILED
checksum-dependency elapsed time: 1087ms, configurations processed: 13 (add
-PchecksumTimingsPrint to print detailed timings)
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':buildSrc:autostyleKotlinGradleCheck'.
> The following files have format violations:
build.gradle.kts
settings.gradle.kts
You might want to adjust -PmaxCheckMessageLines=50
-PmaxFilesToList=10
-PminLinesPerFile=4
to see more violations
Run './gradlew autostyleApply' to fix the violations.
* Try:
> Run with --info or --debug option to get more log output.
* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task
':buildSrc:autostyleKotlinGradleCheck'.
at
org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:142)
at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:282)
...
at
org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:379)
at
org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
at
org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:49)
Caused by: org.gradle.api.GradleException: The following files have format
violations:
build.gradle.kts
settings.gradle.kts
You might want to adjust -PmaxCheckMessageLines=50
-PmaxFilesToList=10
-PminLinesPerFile=4
to see more violations
Run './gradlew autostyleApply' to fix the violations.
at
com.github.autostyle.gradle.AutostyleCheckTask.run(AutostyleCheckTask.kt:94)
at jdk.internal.reflect.GeneratedMethodAccessor360.invoke(Unknown
Source)
at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:125)
...
at
org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:379)
at
org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
at
org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:49)
==============================================================================
2: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':buildSrc:batchtest:autostyleKotlinCheck'.
> The following files have format violations:
src\main\kotlin\org\apache\jmeter\buildtools\batchtest\BatchTest.kt
You might want to adjust -PmaxCheckMessageLines=50
-PmaxFilesToList=10
-PminLinesPerFile=4
to see more violations
Run './gradlew autostyleApply' to fix the violations.
* Try:
> Run with --info or --debug option to get more log output.
* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task
':buildSrc:batchtest:autostyleKotlinCheck'.
at
org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:142)
at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:282)
...
at
org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:49)
at
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: org.gradle.api.GradleException: The following files have format
violations:
src\main\kotlin\org\apache\jmeter\buildtools\batchtest\BatchTest.kt
You might want to adjust -PmaxCheckMessageLines=50
-PmaxFilesToList=10
-PminLinesPerFile=4
to see more violations
Run './gradlew autostyleApply' to fix the violations.
at
com.github.autostyle.gradle.AutostyleCheckTask.run(AutostyleCheckTask.kt:94)
...
at
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
==============================================================================
* Get more help at https://help.gradle.org
BUILD FAILED in 2s
13 actionable tasks: 2 executed, 11 up-to-date
```
any task not sucess e.g. refresh
```
$ ./gradlew refresh -q
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':buildSrc:autostyleKotlinGradleCheck'.
> The following files have format violations:
build.gradle.kts
settings.gradle.kts
You might want to adjust -PmaxCheckMessageLines=50
-PmaxFilesToList=10
-PminLinesPerFile=4
to see more violations
Run './gradlew autostyleApply' to fix the violations.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
* Get more help at https://help.gradle.org
BUILD FAILED in 1s
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]