You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jmeter.apache.org by Vincent Daburon <vd...@gmail.com> on 2020/04/16 13:56:18 UTC

Compilation errors, how skip autostyle check ?

 Hi,

I download the current version of JMeter (the 16 april 2020) in a zip file
format from github master.

How skip the autostyle check ?

When i try to compile with gradle tool, i have this errors :

D:\usr\vdaburon\dev\github\jmeter_pacing\jmeter-master>gradlew.bat runGui
> Task :buildSrc:autostyleKotlinGradleCheck FAILED
> Task :buildSrc:batchtest:autostyleKotlinCheck FAILED
checksum-dependency elapsed time: 2410ms, configurations processed: 14 (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
      @@ -1,77 +1,77 @@
      -/*\n
      - * Licensed to the Apache Software Foundation (ASF) under one or
more\n
      - * contributor license agreements.  See the NOTICE file distributed
with\n
      - * this work for additional information regarding copyright
ownership.\n
      - * The ASF licenses this file to You under the Apache License,
Version 2.0\n
      - * (the "License"); you may not use this file except in compliance
with\n
      - * the License.  You may obtain a copy of the License at\n
...
      -\n
      -    @Input\n
      -    val testName = objects.property<String>()\n
    ... (378 more lines that didn't fit)
  Violations also present in:

subprojects\batchtest\src\main\kotlin\org\apache\jmeter\buildtools\batchtest\BatchtestPlugin.kt

subprojects\batchtest\src\main\kotlin\org\apache\jmeter\buildtools\batchtest\BatchTestServer.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.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or
--debug option to get more log output. Run with --scan to get full insights.
==============================================================================

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible
with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See
https://docs.gradle.org/6.3/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 8s

Regards.
Vincent DAB.

Re: Compilation errors, how skip autostyle check ?

Posted by Vladimir Sitnikov <si...@gmail.com>.
>How skip the autostyle check ?

Please use -PskipAutostyle

An alternative option is to download the sources via git clone ...
Or execute ./gradlew autostyleApply (from within buildSrc directory first)
to fix line endings.

Vladimir