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

When ever I modify a JSON file in my resource folder, A task should invoke...

Hi, I am trying to check possibilities that, I have a set of JSON files in a directory src/test/resources/jsonfiles. Whenever there is change happens in jsonfiles directory, I need to trigger a task....

View Article


Resolving artifacts without POM/IVY file (gradle 6)

Thanks… is there a way to configure that per dependency? I have a number of dependencies that are effectively just pull down the jar, like so: <dependency org="myOrg" name="artifactName"...

View Article


When ever I modify a JSON file in my resource folder, A task should invoke...

You could start a continuous build which executes a task with src/test/resources/jsonfiles as it’s task input

View Article

Java Module, Application Plugin: prefer providing mainClassName

Since Gradle 6.4, there is now built-in support for Java JPMS modules. The configuration for application has changed a little, now using mainModule and mainClass. I previously used mainClassName that...

View Article

IllegalStateException: Test outputs data file

I am trying to run Gradle via a batch job system (Univa Grid Engine). Hundreds of machines runs jobs, all machines same project area (NFS) Each job accepts list of tests via a file argument. gradle...

View Article


What is the Groovy magic for this task command

I know there are some Groovy syntax under the Gradle. like following command: task myTask { configure closure } will become: task(name, configureClosure) But how about: task myTask(type: SomeType) {...

View Article

v6.7.0-RC2

The Gradle team is excited to announce Gradle 6.7-rc-2.This fixes regressions reported against 6.7-rc-1. This is a companion discussion topic for the original entry at...

View Article

v6.7.0-RC2

View Article


Resolving artifacts without POM/IVY file (gradle 6)

I don’t think you can specify this on an artifact level. You can however add multiple metadata sources: metadataSources { ivyDescriptor(); artifact(); } This way gradle will first look for an ivy XML...

View Article


How to get rid of this gradle error in android studio

hello every time I write a flutter code this error has thrown. what can I do solve this and run my program? Launching lib\main.dart on Android SDK built for x86 64 in debug mode… Running Gradle task...

View Article

IllegalStateException: Test outputs data file

binaryResultsDirectory = file(binaryResultsDirectory.asFile.get().getAbsolutePath() + “/” + { hostuniq }) definitely wrong. Providing a unique path here was needed. Works fine.

View Article

What is the Groovy magic for this task command

Hi, SomeType is short notation for SomeType.class (Groovy feature), and type: SomeType is short notation for Map (again Groovy feature). To use named arguments in Groovy, the method must define the...

View Article

How to disable auto refresh in gradle tasks view

Thanks for your help and I will vote the new feature.

View Article


What is the Groovy magic for this task command

Thanks for your reply Pierre1. How about myTask? is this a method? I know task is a method, type: SomeType is named argument. { configure closure } is closure. What is myTask part?

View Article

Image may be NSFW.
Clik here to view.

How to include local jar file in gradle

Hello everyone. I’m a beginner for gradle. I got a problem trying to add local jar. Basically I need to use a unmaintained project changedistiller. GitHub sealuzh/tools-changedistiller Mirror of...

View Article


Image may be NSFW.
Clik here to view.

What is the Groovy magic for this task command

explorer1680: What is myTask part? As you said, task is a method. The method signature is: Task task​(Map<String,​?> args, String name, Closure configureClosure) You’re just calling that method...

View Article

How to include local jar file in gradle

No matter which repository type you use, you still need to declare the actual dependency. The repository is just a location to look for dependencies. It doesn’t automatically make your project depend...

View Article


Could not run phased build action using Gradle distribution ~ A problem...

Yes, in IntelliJ everything works fine, and I don’t get that weird error message. Both gradle help and gradle build work without any problems too. Aaand, since I don’t know exactly what causes this, I...

View Article

Importing from MavenLocal works but not from remote

bump Anyone can help me?

View Article

What is the Groovy magic for this task command

Thanks @jjustinic for your reply. If it is task (myTask, type: SomeType) { configure closure }, I understand the myTask is the name inside: Task task​(Map<String,​?> args, String name, Closure...

View Article
Browsing all 19850 articles
Browse latest View live