On Fri, Mar 5, 2021 at 9:03 AM Tong Sun <[email protected]> wrote:
>
> Hi,
>
> I'm having trouble building JMeter from source and I have no idea why.
> I'm using Java 8.
>
> $ groovy -v
> Groovy Version: 3.0.3 JVM: 1.8.0_261 Vendor: Oracle Corporation OS: Mac OS X
>
> $ gradlew -v
>
> ------------------------------------------------------------
> Gradle 6.7
> ------------------------------------------------------------
>
> Build time:   2020-10-14 16:13:12 UTC
> Revision:     312ba9e0f4f8a02d01854d1ed743b79ed996dfd3
>
> Kotlin:       1.3.72
> Groovy:       2.5.12
> Ant:          Apache Ant(TM) version 1.10.8 compiled on May 10 2020
> JVM:          1.8.0_261 (Oracle Corporation 25.261-b12)
> OS:           Mac OS X 10.15.7 x86_64
>
> I got the source from
> https://jmeter.apache.org/download_jmeter.cgi
> https://apache.claz.org//jmeter/source/apache-jmeter-5.4.1_src.zip
>
> The error is:
>
> 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
>       @@ -1,77 +1,77 @@
>       -/*\r\n
>
> I've published the full build scan at
> https://gradle.com/s/73bo65dlralmy

$ ./gradlew autostyleApply -PmaxCheckMessageLines=50
-PmaxFilesToList=10 -PminLinesPerFile=4
> Task :buildSrc:autostyleKotlinGradleCheck FAILED
> Task :buildSrc:batchtest:autostyleKotlinCheck FAILED

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
      @@ -1,77 +1,77 @@
      -/*\r\n
      - * Licensed to the Apache Software Foundation (ASF) under one or more\r\n
...

2: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':buildSrc:batchtest:autostyleKotlinCheck'.
> The following files have format violations:
    
subprojects/batchtest/src/main/kotlin/org/apache/jmeter/buildtools/batchtest/BatchTest.kt
. . .

  Violations also present in:
    
subprojects/batchtest/src/main/kotlin/org/apache/jmeter/buildtools/batchtest/BatchTestServer.kt
    
subprojects/batchtest/src/main/kotlin/org/apache/jmeter/buildtools/batchtest/BatchtestPlugin.kt
    
subprojects/batchtest/src/main/kotlin/org/apache/jmeter/buildtools/batchtest/WriterExtensions.kt
  You might want to adjust -PmaxCheckMessageLines=50
-PmaxFilesToList=10 -PminLinesPerFile=4 to see more violations
  Run './gradlew autostyleApply' to fix the violations.

I've tried
./gradlew autostyleApply -PmaxCheckMessageLines=50 -PmaxFilesToList=10
-PminLinesPerFile=4
several times and it always returns errors like this.

> My work is blocked because of this -- I must get the jmeter build from
> source. I know, it's weird, but that's what is required from my work.
>
> Any help appreciated. Thanks

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to