Quantcast
Channel: Gradle Forums - Latest posts
Browsing all 19850 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Eclipse running with JDK 11 -> Gradle 6.2.1 fails to compile source for JDK 8

I’m somewhat sure now that I’m not doing something wrong, but I simply misunderstood things: The problem is that my project gets build with JDK 11 in Eclipse and some packages have simply been removed...

View Article


Expressing optional Java 11 dependencies in published metadata

For JDK 11 specifics, I do it directly in the build.gradle: if (JavaVersion.current().isJava11Compatible()) { // JAXB removed from JDK 11 dependencies { "com.sun.xml.bind:jaxb-impl:2.3.3" } } I have...

View Article


How to order object files for a linker task cpp-application (say linkDebug or...

I have the same need from a different use case where objects retrieved from a remote HTTP build cache cause link issues. Did you find a way to handle this?

View Article

Jacoco & Gradle Test Kit with Java

Looks like my first issue about the code coverage was that an unit test was covering up the real issue. The bug/issue is https://github.com/koral--/jacoco-gradle-testkit-plugin/issues/17. I was using...

View Article

Maven-publish and snapshot metadata

I have an odd issue with consuming published snapshot artifacts from one project, in another project. In the consuming project i have configured a snapshot repo as follows: allprojects { repositories...

View Article


Jacoco & Gradle Test Kit with Java

I looked at that plugin and remembered there was a bug in the kotlin DSL with testkit. Normally if you want code coverage with testkit you just have to run GradleRunner using withDebug(true). It fails...

View Article

Could not extract native JNI library in Android Studio

I am trying to create a simple flutter app in Android Studio. When I run my main.dart file, I get the following output. Launching lib\main.dart on SM J730F in debug mode… Running Gradle task...

View Article

Jacoco & Gradle Test Kit with Java

Yeah I was using ProjectBuilder as well, doing that caused the error message for jacoco-gradle-testkit-plugin to be hidden. I figured out the default dependencies issue, it is very important you use "...

View Article


JDK9 -> java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException

From the exception, I looks like its an annotation processor failing to load. Which annotation processor(s) are you using? Perhaps something like dependencies { annotationProcessor...

View Article


Gradle Enterprise Maven Extension 1.5.3 has been released

The Gradle Enterprise Maven Extension v1.5.3 has been released. See release notes for the changelog. Compatible with scans.gradle.com and Gradle Enterprise 2020.2 or later.

View Article

Caused by: java.lang.NoSuchMethodError:...

I am using below nebula dependency versions with Gradle 6.1 version, Still I am getting the same issue. compile "com.netflix.nebula:gradle-info-plugin:8.0.0" compile...

View Article

JDK9 -> java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException

Solved the problem. Several projects had dataBinding { enabled = true } in build.gradle. I do not use this functionality. After removing it from build.gradle, the project builds successfully.

View Article

Factorizing-out common configuration in root project based on subprojects...

I have a multi-module project where some of the subprojects use Kotlin, others Spring Boot and so on. I am trying to avoid repeating myself so I want to factor-out common configuration in the root...

View Article


Error after running fluttter run

Hello, i am stuck at the same problem . if you get any solution kindly tell me.

View Article

Error after running fluttter run

Finally i fixed it. The problem is mostly due to android SDK or gradle built tool There are different ways you can try to fix it. way 1. check whether google drivers are installed . you can find them...

View Article


Custom gcc executable

Hi Iharh, I have a similar problem. Did you find a solution?

View Article

Declaring (mutual) exclusive content for more than 1 repository

Hi! As described in the documentation, the possibility exists to declare repositories and what content they have. I’d like to do that for multiple repositories which have mutually exclusive content...

View Article


Unable to find method...

I am also getting the same error - Unable to find method...

View Article

Unable to access System property in Src code

Because the JVM is different in Gradle and Cucumber, when I am running gradle cucumber there is no report in build. Report is only coming when running gradle test.I am able to generate...

View Article

Image may be NSFW.
Clik here to view.

Unable to find method...

Could not get unknown property 'classesDir' for main classes Help/Discuss The problem is that either your build.gradle or a plugin referenced in your build.gradle is using a method that was deprecated...

View Article
Browsing all 19850 articles
Browse latest View live