[求教] 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編譯
- VS 編譯錯誤編譯
- 編譯除錯Net6原始碼編譯除錯原始碼
- PHP原始碼包編譯安裝錯誤及解決方法彙總PHP原始碼編譯
- ipvs編譯錯誤編譯
- php編譯小錯誤PHP編譯
- 編譯PHP的錯誤編譯PHP
- opencv 編譯常見錯誤OpenCV編譯
- 專案編譯報錯編譯
- 最近編譯tolua_runtime安卓編譯錯誤編譯安卓
- Idea除錯Rocketmq原始碼編譯執行Idea除錯MQ原始碼編譯
- maven 混合編譯 java/scala 程式碼報錯(qbit)Maven編譯Java
- 經典的編譯錯誤 (轉)編譯
- PHP編譯安裝時常見錯誤解決辦法,php編譯常見錯誤PHP編譯
- Spark原始碼編譯與匯入IDEA除錯Spark原始碼編譯Idea除錯
- cesium原始碼編譯除錯及呼叫全過程原始碼編譯除錯
- C 語言常用錯誤程式碼釋義大全,讓你編譯執行報錯不是煩惱編譯
- C語言程式碼區錯誤以及編譯過程C語言編譯
- 原始碼編譯Vim 8原始碼編譯
- MongoDB(0)- 原始碼編譯MongoDB原始碼編譯
- 編譯Android原始碼編譯Android原始碼
- 編譯hibernate原始碼編譯原始碼
- Docker編譯Azerothcore原始碼Docker編譯原始碼
- Spring原始碼編譯Spring原始碼編譯
- Include檔案易犯編譯錯誤編譯
- 編譯錯誤,請教一下!編譯
- GDB 除錯 Mysql 實戰(一)原始碼編譯安裝除錯MySql原始碼編譯
- 樹莓派編譯OpenCV報錯樹莓派編譯OpenCV
- PHP編譯,執行make報錯PHP編譯
- Android逆向之旅---反編譯利器Apktool和Jadx原始碼分析以及錯誤糾正Android編譯APK原始碼
- 編譯FFMPEG原始碼的指令碼編寫案例編譯原始碼指令碼
- hadoop編譯原始碼報錯:package-info.java:6: 未結束的字串字面值Hadoop編譯原始碼PackageJava字串
- WebRTC研究 (一) 編譯原始碼Web編譯原始碼
- 原始碼編譯 apache2.4原始碼編譯Apache
- Kubernetes原始碼編譯原始碼編譯
- Swift原始碼專案編譯Swift原始碼編譯
- 龍芯原始碼編譯MySQL原始碼編譯MySql
- Ceph原始碼編譯與打包原始碼編譯