I have a SpringBoot application that was developed with JDK8 and was now ported to JDK11. I get the following exception at startup: Here is my pom.xml: I have tried SpringWebStarter from 2.1.8 up to 2.2.1, I am always getting the same error. I cannot use JDK8 again, since the computer has been updated from Windows 7 to Windows 10
Tag: groovy
Gradle – throw exception if project still has SNAPSHOT dependencies
I want to fail the gradle build if the current project still has snapshot dependencies. My code so far only looks for java dependencies, missing the .NET ones so it only works for java projects. I want to make it work for all projects. I need some help in generifying this snippet to be applicable to all types of dependencies(not
NoSuchMethodError when using @Step annotation in Allure2
I’m trying to implement Allure2 as a reporting tool for our automation suite but I seem to be running into an issue with the @Step annotation. I have the imports in place, the IDE recognizes it perfectly, I can see the package under dependencies and the specific class is available to browse and everything seems to be correct but when
Gradle is failing on malformed pom.xml in Central Maven
I have this gradle script snippet: Now when running a build, Gradle consistently fails on downloading transitive dependencies and gives me this message: When I had a look at the content of the pom.xml file from the repository, I noticed that, although the pom.xml is in the right place, it indicates a version different than what is expected. In this
How to receive a GZIP response with RESTClient
I am using a service that only works with GZIP compression. I added the accept header and the service works, but RESTClient can not parse the content correctly. My code: The error message is Answer Just add the following after RESTClient instantiation client.setContentEncoding(ContentEncoding.Type.GZIP, ContentEncoding.Type.DEFLATE)
Spock Error:Groovyc: Could not instantiate global transform class
I m new to Spock, tried to write a simple Spock but it failed: here is my Spec: and here is my pom.xml: what is wrong my Spec or pom setting? do i have to install Groovy to make it work? Answer Here is your test, re-written in more idiomatic Spock/Groovy: A couple of notes: Groovy (in which Spock tests
Groovy HTTP ResponseParseException not found
I am trying to make simple GET request using groovy HTTP request. I am expecting JSON response in this form: So far I have done this in my code: and I am always getting this response: I have googled and found out that it’s problem related to groovy and this problem was not occurring before version 2.3.0, like this post
Apache Http Client 4 Form Post Multi-part data
I need to post some form parameters to a server through an HTTP request (one of which is a file). So I use Apache HTTP Client like so… The server returns an error, stack trace is.. I understand from other posts that I need to somehow come up with a boundary, which is a string not found in the content.
Should I use Bean Scripting Framework or JSR 223 javax.script ?
I was reading the groovy doc about integrating groovy into applications. From the paragraph 2. Bean Scripting Framework I can read The Bean Scripting Framework is an attempt to create an API to allow calling scripting languages from Java. It hasn’t been updated for long and abandoned in favor of the standard JSR-223 API. From the paragraph 3. JSR 223
Testing Java code with Groovy under Intellij: unable to resolve class GroovyTestCase
I need to write a short test for some Java code. I used CTRL+SHIFT+T to generate one with IntelliJ, and selected “Groovy JUnit” as the testing library, then wrote the following test: However, when I right click on the test case in the project window, I don’t get the “Run All Tests” option that I normally do with JUnit tests,