[求教] jmeter5.3 原始碼編譯報 autostyleKotlinCheck 錯誤
操作步驟
1、在 jmeter 原始碼下載原始碼,解壓到本地
2、在解壓目錄執行命令 gradlew build 報錯
環境
作業系統:Windows7,64 位
java 版本:1.8.0_201
報錯資訊
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
- * http://www.apache.org/licenses/LICENSE-2.0\n
- *\n
- * Unless required by applicable law or agreed to in writing, software\n
- * distributed under the License is distributed on an "AS IS" BASIS,\n
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n
- * See the License for the specific language governing permissions and\n
- * limitations under the License.\n
- *\n
- */\n
-\n
-import org.jetbrains.kotlin.gradle.tasks.KotlinCompile\n
-\n
-plugins {\n
- java\n
- `kotlin-dsl` apply false\n
- id("com.github.autostyle")\n
-}\n
-\n
-repositories {\n
- jcenter()\n
- gradlePluginPortal()\n
-}\n
-\n
-allprojects {\n
- repositories {\n
- jcenter()\n
- gradlePluginPortal()\n
- }\n
- applyKotlinProjectConventions()\n
-}\n
-\n
-fun Project.applyKotlinProjectConventions() {\n
- apply(plugin = "org.gradle.kotlin.kotlin-dsl")\n
-\n
- plugins.withType<KotlinDslPlugin> {\n
- configure<KotlinDslPluginOptions> {\n
- experimentalWarning.set(false)\n
- }\n
- }\n
-\n
... (106 more lines that didn't fit)
Violations also present in:
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. Run with --scan to get full insights.
==============================================================================
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
@@ -1,213 +1,213 @@
-/*\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
- * http://www.apache.org/licenses/LICENSE-2.0\n
- *\n
- * Unless required by applicable law or agreed to in writing, software\n
- * distributed under the License is distributed on an "AS IS" BASIS,\n
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n
- * See the License for the specific language governing permissions and\n
- * limitations under the License.\n
- *\n
- */\n
-\n
-package org.apache.jmeter.buildtools.batchtest\n
-\n
-import org.eclipse.jgit.diff.DiffAlgorithm\n
-import org.eclipse.jgit.diff.DiffFormatter\n
-import org.eclipse.jgit.diff.RawText\n
-import org.eclipse.jgit.diff.RawTextComparator\n
-import org.eclipse.jgit.util.io.AutoCRLFInputStream\n
-import org.gradle.api.GradleException\n
-import org.gradle.api.model.ObjectFactory\n
-import org.gradle.api.tasks.Input\n
-import org.gradle.api.tasks.InputDirectory\n
-import org.gradle.api.tasks.InputFile\n
-import org.gradle.api.tasks.InputFiles\n
-import org.gradle.api.tasks.Internal\n
-import org.gradle.api.tasks.JavaExec\n
-import org.gradle.kotlin.dsl.property\n
-import java.io.File\n
-import java.net.InetAddress\n
-import javax.inject.Inject\n
-\n
-open class BatchTest @Inject constructor(objects: ObjectFactory) : JavaExec() {\n
- companion object {\n
- const val BATCH_TESTS_GROUP_NAME = "Batch test"\n
- }\n
-\n
- @Input\n
- val ignoreErrorLogs = objects.property<Boolean>().convention(false)\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
CONFIGURE FAILED in 3s
相關文章
- IDEA報錯java: 編譯失敗: 內部 java 編譯器錯誤IdeaJava編譯
- ipvs編譯錯誤編譯
- 編譯除錯Net6原始碼編譯除錯原始碼
- opencv 編譯常見錯誤OpenCV編譯
- Idea除錯Rocketmq原始碼編譯執行Idea除錯MQ原始碼編譯
- Spark原始碼編譯與匯入IDEA除錯Spark原始碼編譯Idea除錯
- PHP編譯安裝時常見錯誤解決辦法,php編譯常見錯誤PHP編譯
- C語言程式碼區錯誤以及編譯過程C語言編譯
- 專案編譯報錯編譯
- Kubernetes原始碼編譯原始碼編譯
- Spring原始碼編譯Spring原始碼編譯
- maven 混合編譯 java/scala 程式碼報錯(qbit)Maven編譯Java
- cesium原始碼編譯除錯及呼叫全過程原始碼編譯除錯
- C 語言常用錯誤程式碼釋義大全,讓你編譯執行報錯不是煩惱編譯
- AndroidStudio之NDK常見編譯錯誤Android編譯
- Include檔案易犯編譯錯誤編譯
- path_provider 編譯錯誤指導IDE編譯
- Idea編譯錯誤解決辦法Idea編譯
- Android編譯通過,執行編譯錯誤問題總結Android編譯
- 原始碼編譯Vim 8原始碼編譯
- MongoDB(0)- 原始碼編譯MongoDB原始碼編譯
- XCode 編譯 PAG 原始碼XCode編譯原始碼
- Docker編譯Azerothcore原始碼Docker編譯原始碼
- GDB 除錯 Mysql 實戰(一)原始碼編譯安裝除錯MySql原始碼編譯
- xcode6編譯錯誤,提示Expected a typeXCode編譯
- 樹莓派編譯OpenCV報錯樹莓派編譯OpenCV
- PHP編譯configure時常見錯誤,和PHP7.1.4 編譯安裝PHP編譯
- MacOS X 編譯Android原始碼Mac編譯Android原始碼
- 原始碼編譯 apache2.4原始碼編譯Apache
- WebRTC研究 (一) 編譯原始碼Web編譯原始碼
- 原始碼編譯安裝Redis原始碼編譯Redis
- nvme driver 原始碼修改、編譯原始碼編譯
- Android FrameWork 之原始碼編譯AndroidFramework原始碼編譯
- 龍芯原始碼編譯MySQL原始碼編譯MySql
- Swift原始碼專案編譯Swift原始碼編譯
- Ubuntu上的pycrypto給出了編譯器錯誤Ubuntu編譯
- Docker環境編譯時的錯誤記錄Docker編譯
- 精讀《手寫 SQL 編譯器 - 錯誤提示》SQL編譯