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

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 Article


How 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 Article


gradleApi 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 Article

CreateProcess 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 Article

Classpath 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 Article


Image may be NSFW.
Clik here to view.

Java 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 Article

Repository issues

Thank you @sterling . Please update here what you find.

View Article

Classpath 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 Article


Classpath 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 Article


About 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 Article

Classpath 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 Article

Exception 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 Article

Debug an issue in publish-plugin? gradle.plugin not being prepended to groupid

Hrmm… anyone on the gradle team interested in addressing this issue?

View Article


Share 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 Article

Image may be NSFW.
Clik here to view.

Repository 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 Article


About 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 Article

Error 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 Article


Repository issues

Everything seems to be working now. Thank you!

View Article

Links 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 Article

Error 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
Browsing all 19845 articles
Browse latest View live