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

Refresh a project after a task execution

Hi, there, I am rather new to gradle and hit an issue I cannot work around. Appreciate any pointer. Context: I am using openApiGenerator plugin to codegen java from swagger spec. What I want to do is...

View Article


Set a JUnit5 test as "errors"

I’m writing a JUnit5 test in androidTest, run the test with ./gradlew connectedDebugAndroidTest. In my scenario, I need to set one of my test as “error”, but anyway I can only get “failure”:...

View Article


Gradlew not working properly

I am new to gradle, and have installed gradle: uhaq$ gradle -v Welcome to Gradle 6.4! Here are the highlights of this release: Support for building, testing and running Java Modules Precompiled script...

View Article

How to use "ant.replaceregexp" in gradle plugin

Hi, I’m writing a gradle plugin as a standalone project using java (not groovy or kotlin). In groovy gradle you can write ant.replaceregexp. In kotlin gradle you can write (i think)...

View Article

Gradle sync failed while creating a project

still having the same problem

View Article


Use Groovy version 3 in build script

Hi, I am trying to use a class that is only available in Groovy version 3 and up in my build scripts. Is there a way to get Gradle to use Groovy version 3? I tried this already: buildscript {...

View Article

Source dependencies not working?

I’m trying to use source dependencies in my project, but script compilation fails with: Line 25: sourceControl { ^ Unresolved reference: sourceControl My version:...

View Article

Gradle plugin with reflections

I don’t find unit testing Gradle plugins very helpful since it’s easy to get a false positive. So I usually only provide integration tests with TestKit. Since gradle scripts are groovy, you can put...

View Article


Publishing without rebuilding

Hello Aesteva, I am facing the similar problem. I am really looking forward to see your work around. Please share if possible. I am looking if somehow i can use upload option without rebuilding gradle...

View Article


User manual examples frustrating

Hi. I’m trying to get into Gradle. So decided that pdf version (6.3) of the manual is a nice place to get some basics. But quite a lot of examples don’t have full gradle.build file that causes errors...

View Article

Maven-surefire-plugin

Hey Lance, could you please help me to implement the below from Pom.xml to build.gradle <plugin> <groupId>org.apache.maven.plugins</groupId>...

View Article

React Native Gradle deprecated features

When I start a project in React Native I get: Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation...

View Article

Gradle Enterprise Gradle plugin 3.3 has been released

Just so I understand the background upload correctly, when the build ends, the build scan may not yet be fully available on the intranet build scan server. So hypothetically if I have a process that...

View Article


Maven-surefire-plugin

You can just do something like apply plugin: 'java' test.enabled = false

View Article

Consuming build type attribute from Android Gradle plugin

Hello. I need some help with android gradle plugin and variant matching. I have two projects with android library plugin, lets say :small and :big. I need to embed aar generated by :small into :big -...

View Article


Update the version of the Android Gradle plugin in your project’s...

I was following this url for adding assets dynamically to the project. There it is mentioned in step 2 to update gradle plugin to 4.0.0 in the build.gradle file. But when I try to add classpath...

View Article

Pass dynamic arguments to a plugin

I am a new Gradle user, and have a Gradle plugin which uses another plugin as below: build.gradle class GreetingPluginExtension { String message } class GreetingPlugin implements Plugin<Project>...

View Article


Pass dynamic arguments to a plugin

All code in the apply(Project project) method of the plugin executes on the apply plugin: GreetingPlugin line, which includes the println, so you’re printing the message the line before you set...

View Article

Image may be NSFW.
Clik here to view.

Pass dynamic arguments to a plugin

jjustinic: use Property<String> Got it, makes sense, thanks! So in case of using a Property<String>, how would I pass it in without having to use a task. Will it be...

View Article

Call task of another build.gradle file using a groovy method

I have three Gradle projects residing in this kind of folder structure (I have flattened the structure, because i am not sure how to format it with ASCII-Code in this editor):...

View Article
Browsing all 19845 articles
Browse latest View live