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

Image may be NSFW.
Clik here to view.

Print list of sub-projects

Thanks so much!!! I can’t believe I missed that

View Article


Joint compilation of Java/Scala in 6.1

Thank you. That’s what I thought. Just didn’t want to avoid passing on a new cool feature to improve build times.

View Article


Does the scala compiler have some inherent lock?

Gradle 6.1, sbt/zinc compiler 1.3.1 In our multi-module projects, there are some modules that use scala. These projects severely increase compilation times, even beyond what you typically expect from...

View Article

Dependencies on configuration of a subproject

I have a multi project with 2 layers of subprojects as follow root |—subProj1 |—subProj2 |----subProj21 |----subProj22 Project subProj21 has 2 sourcetSets : ‘main’ and ‘api’ I would like subProj22...

View Article

Image may be NSFW.
Clik here to view.

Dependencies on configuration of a subproject

pmignerey: dependencies { api project(path: ‘:subProj2:subProj21’, configuration: ‘apiImplementation’) } In general, this would work (instead of apiImplementation you would need to use...

View Article


Run JUnit/TestFX tests against specific JRE

Hi, is it possible to specify JRE for JUnit and integration tests (TestFX) execution with Gradle? For instance, we are using custom JRE to run our product so we would like to run integration tests...

View Article

Run JUnit/TestFX tests against specific JRE

Assuming that the TestFx task extends the Test task you can set executable property Eg: tasks.withType(Test) { it.executable = "path/to/my/jdk/bin/java.exe" }

View Article

How can I apply SpotBugs using a script plugin?

I ran into a similar issue to this, and found that declaring the spotbugs dependency at the top level of the plugin’s build.gradle fixed my issue: dependencies { compile...

View Article


Swagger code generation plugin

Hello, I am new to Gradle and I am going to create a set of api rest using OpenAPI as Specification and Swagger as Tools for implementing the specification I have the YAML file available which defines...

View Article


How to pass arguments to the linker when building a cpp-application

I’m also trying to set linker args, but when I do what’s in your code snippet (using library instead of application), I get Unresolved reference: linkerTask. Gradle version is 6.1. Is there some...

View Article

About the Help/Discuss category

I have installed gradle 5.5 but when trying to star a build it command prompt says this: Configure project : Fabric Loom: 0.2.6-SNAPSHOT Build(jenkins #31) :setting up loom dependencies FAILURE: Build...

View Article

Gradle 6.1.1 released

Gradle 6.1.1 is out! See the full release notes.

View Article

Gradle 6.1.1 released

View Article


Reuse of buildscript block

I can’t get this to work in 5.6.1. I tried exactly as noted above (“apply from: …” within the “buildscript {…}” block with one exception - I did not use the URLs in “apply from: …” but a file path...

View Article

Groovy extension methods in gradle plugin

Unfortunately Groovy extensions currently don’t work in Gradle Groovy scripts. See https://github.com/gradle/gradle/issues/2973

View Article


Call `javaexec` from custom task declared inside buildSrc

Hi, I’ve written a custom task in Kotlin and located it inside buildSrc as recommended. The custom task calls javaexec. Something like this: private fun custom() { project.javaexec { main =...

View Article

Using plugin manager vs plugin container in java plugin

Hi, In my code I am applying a 3rd party plugin using this syntax: SpotlessPlugin spotless = project.getPlugins().apply(SpotlessPlugin.class);...

View Article


AnnotationProcessor Querydsl java.lang.NoClassDefFoundError

I am facing the similar issue like this only. The issue I am facing: What went wrong: Execution failed for task ‘:generateQueryDSL’. Annotation processor ‘com.querydsl.apt.jpa.JPAAnnotationProcessor’...

View Article

Could not find method compile() for arguments...

so what do next ???

View Article

Gradle 6 cannot find plugins in https://plugins.gradle.org/m2/

Hi, I found the problem. I copied the project into a new folder and re-initialized the gradle project. For some reason this made it work.

View Article
Browsing all 20865 articles
Browse latest View live