Hi
Trying to build the project with gradle on windows fails with the following
message:
> Task :core:spotlessJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':core:spotlessJava'.
> The following files had format violations:
core\build\generated\sources\version\org\apache\calcite\jdbc\CalciteDriverVersion.java
@@ -1,41 +1,41 @@G [6s]sed in this build, making it incompatible
with Gradle 7.0.
-/*\r\nde all' to show the individual deprecation warnings.
- * Licensed to the Apache Software Foundation (ASF) under one or
more\r\nline_warnings
- * contributor license agreements. See the NOTICE file
distributed with\r\n
- * this work for additional information regarding copyright
ownership.\r\n
- * The ASF licenses this file to you under the Apache License,
Version 2.0\r\n
- * (the "License"); you may not use this file except in
compliance with\r\n
- * the License. You may obtain a copy of the License at\r\n
- *\r\n
- * http://www.apache.org/licenses/LICENSE-2.0\r\n
- *\r\nessTestResources
- * Unless required by applicable law or agreed to in writing,
software\r\n
- * distributed under the License is distributed on an "AS IS"
BASIS,\r\n
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
or implied.\r\n
- * See the License for the specific language governing
permissions and\r\n
- * limitations under the License.\r\n
- */\r\n
-package org.apache.calcite.jdbc;\r\n
-\r\n
-import org.apache.calcite.avatica.DriverVersion;\r\n
-\r\n
-/**\r\n
- * Provides information on the current Calcite version.\r\n
- */\r\n
-class CalciteDriverVersion {\r\n
- static final DriverVersion INSTANCE =\r\n
- new DriverVersion(\r\n
- "Calcite JDBC Driver",\r\n
- "1.22.0-SNAPSHOT" /* :version */,\r\n
- "Calcite",\r\n
- "1.22.0-SNAPSHOT" /* :version */,\r\n
- true,\r\n
- 1 /* :major */,\r\n
- 22 /* :minor */,\r\n
- 1 /* :major */,\r\n
- 22 /* :minor */);\r\n
-\r\n
- private CalciteDriverVersion() {\r\n
- }\r\n
-}\r\n
-\r\n
-// End CalciteDriverVersion.java\r\n
+/*\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
... (34 more lines that didn't fit)
Run 'gradlew spotlessApply' to fix these violations.
Needless to say I tried running gradlew spotlessApply and building again
and it had no effect ( the file
core\build\generated\sources\version\org\apache\calcite\jdbc\CalciteDriverVersion.java
which seems to be the problem is overwritten on every build...)
Best
Amir
On Wed, Nov 20, 2019 at 11:31 AM Danny Chan <[email protected]> wrote:
> When I use the IDEA 2019.9 version, it works ~
>
> But the travis test is failing for the slow test: here is my log
> https://travis-ci.org/apache/calcite/jobs/614406384?utm_medium=notification&utm_source=github_status
>
> Best,
> Danny Chan
> 在 2019年11月20日 +0800 PM2:28,Vladimir Sitnikov <[email protected]
> >,写道:
> > > Here is the stacktrace:
> > java.lang.NoClassDefFoundError: org/gradle/api/internal/plugin
> > s/DefaultConvention
> > at org.jetbrains.plugins.gradle.tooling.builder.ProjectExtensio
> > nsDataBuilderImpl.buildAll(ProjectExtensionsDataBuilderImpl.groovy:50)
> >
> > What is IDEA version?
> >
> > Vladimir
>
--
[image: Sisense]
<https://www.sisense.com/?source=xink&utm_source=xink&utm_medium=email&utm_campaign=emailsignature2018>
*Amir Gajst*
Software Engineer
+972-54-4766239
amir.gajst
[image: Instagram] <https://www.instagram.com/sisense/> [image: LinkedIn]
<https://www.linkedin.com/company/sisense> [image: Facebook]
<https://www.facebook.com/Sisense> [image: Twitter]
<https://twitter.com/Sisense>
<https://t.xink.io/Tracking/Index/jtIBAPDBAADdv0QA0>