Skip to content

Tag: gradle

Unable to build Java 16 app with Gradle via Docker

I have a standard Springboot application written with Java 16. This compiles and builds just fine in my IDE and via CI/CD etc. However, attempting to move the building to a docker file and I’m hit with: I assume this is some under the hood thing but I can’t figure out how to resolve it. I’ve…

Do an exclusion in build.gradle?

I want to add an exclusion to my build.gradle because my jar doesnt run after I compile it. The problem can be fixed if some modules are excluded. How do I do that correctly? The following code should fix the problem: Answer For the most recent gradle versions (7+), you need to use the new syntax implementati…

How to provide JAXB dependency via Gradle package?

TLDR: Which packages (and with which scopes) does one has to include for: using JAXB in a library using XJC in a library running tests in that library include the library as a dependency into another library without having JAXB related runtime errors Details: I’m working with JAXB and XJC with JDK 16 an…

React native issue firebase messaging

I am trying to install the react native firebase messaging module to my project so I can remotely send notifications. When I built my app yarn android/react-native build-android I got an error in which I have been trying to fix for the last 3 hours. build.gradle: settings.gradle: MainApplication.java: Error/O…