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 ArticleDoes 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 ArticleDependencies 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 ArticleDependencies 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 ArticleRun 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 ArticleRun 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 ArticleHow 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 ArticleSwagger 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 ArticleHow 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 ArticleAbout 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 ArticleReuse 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 ArticleGroovy 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 ArticleCall `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 ArticleUsing 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 ArticleAnnotationProcessor 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 ArticleGradle 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