How can I access command-line test filters from build.gradle.kts?
When I run: ./gradlew :mysubproject:test --tests MyTest in my build.gradle.kts I’ve got: tasks.test { filter { excludeTestsMatching("mysubproject.excludeme.*") } println(this.filter.excludePatterns)...
View ArticleHow to create a library jar project
I’ve tried, but it seems the structure of project subdirectories is important. When I had a different layout of source, test and resourse files, this short build.gradle file didn’t seem to work.
View ArticlegradleApi depenency ignored in root project
Hi, Is use following dependency in the build.gradle file of my project A dependencies { api gradleApi() api localGroovy() … } which works fine for building that project A. But when I use the jar of...
View ArticleCreateProcess error=206, The filename or extension is too long
With that version of Gradle you need to build a pathingJar. Here’s a link on how to do it https://stackoverflow.com/questions/5434482/how-can-i-create-a-pathing-jar-in-gradle If you upgradle to 6.0...
View ArticleClasspath during plugin execution
For one, a relatively stable API from the Gradle folks. OK so they have sometimes broken things accidentaly, but they are good at managing deprecations. Secondly, there are things a plugin author can...
View ArticleJava 11 specific options in application start scripts
I’ve been using the application plugin for an app written in Groovy. It initially targeted JDK 8, but now I want it to run it on JDK 11 as well. The problem is that when you run Groovy 2.5 and JDK 11,...
View ArticleClasspath during plugin execution
Ok, but how does Gradle prevent two versions of the Gradle API being present on the classpath? If my plugin is packaged as a maven module with a POM and has a dependency on some gradle api version, I...
View ArticleClasspath during plugin execution
It’s not supposed to work that way. Normally gradleApi() behaves the same way as a dependency placed iin Maven “provided” scope. In other words your POM should not explictly declare it as a runtime...
View ArticleAbout compile and implementation (again)
This thought struck me today. Everyone is supposed to move to use the implementation configuration, but what is sourceSets.main.compileConfigurationName still return compile. This makes it difficult...
View ArticleClasspath during plugin execution
The plugin is built with maven, sorry for not mentioning that. Changing the dependency to “provided” scope makes sense and fixes the issue, thank you!
View ArticleException in thread "main" java.lang.NullPointerException at...
sorry but I also have the same problem as this. But with shorter log. I set the JAVA_HOME,JDKLIB during runtime. For reference Below is my batch file content: set...
View ArticleDebug an issue in publish-plugin? gradle.plugin not being prepended to groupid
Hrmm… anyone on the gradle team interested in addressing this issue?
View ArticleShare Gradle daemon between host and docker container
Thank you so much for the infor @egmanoj, great info! Is it just me or is a bit weird that there’s no solution to this problem OR more people interested in a solution. i have a hard time believing we...
View ArticleRepository issues
I didn’t get a response directly yet from CF, but I see there’s some activity on that forum post: Cloudflare Community – 23 Apr 20 Getting Error 1016 on a site I'm trying to use but not always Good...
View ArticleAbout compile and implementation (again)
What’s difficult about this? The compile configuration is deprecated. The compileConfigurationName property is literally the name of the compile configuration. The compile configuration name isn’t now...
View ArticleError for project.tasks.getting delegation in .kt file, but not in...
Have you found the root cause of this? I have the same problem with sourceSets after upgrading to Kotlin 1.3.70
View ArticleLinks for source repositories provided in the Gradle documentation
In the Maven world, plugin documentation includes a section on the source project, including links to the public repository. In particular, I’ve run into an issue with the Build Dashboard plugin, and...
View ArticleError for project.tasks.getting delegation in .kt file, but not in...
I just replaced the error line with the following less elegant line: val testClasses = project.tasks.getByName("testClasses")
View Article