gradle-task Questions

5

Solved

I am trying to run the code block below, after reading multiple posts on the topic and the Gradle manual. I run the below and get the following error: execCommand == null! Any ideas on what I am do...
Quarrelsome asked 4/2, 2020 at 15:57

4

In my app, I have more than 30 build variants. Every time when I release the app, I need to publish it to different platforms, therefore I build 5 different build variants. Currently, I am doing th...
Orthopedics asked 2/8, 2022 at 18:30

3

I am running gradle commands from command line and I want to show only output. There is an option -q, -quiet which says it will log errors only. After running command I get this crap with output to...
Driving asked 10/5, 2016 at 16:6

7

So far I've added the following to my build.gradle apply plugin: 'base' clean << { delete '${rootDir}/api-library/auto-generated-classes/' println '${rootDir}/api-library/auto-generated-cl...
Sized asked 23/4, 2015 at 3:34

7

Solved

is it possible for Gradle to execute a task before calling gradle build Something like precompile. Someone please help. Is something like this possible and how?
Chittagong asked 30/8, 2013 at 11:59

10

Solved

I'm trying to pass an argument from command line to a Java class. I followed this post: http://gradle.1045684.n5.nabble.com/Gradle-application-plugin-question-td5539555.html but the code does not w...
Increscent asked 27/7, 2012 at 22:34

1

Problem description: I'm using Gradle Shade plugin, it all works fine and it copies resource files to the final jar. However, as the docs say, it can not include other .jar files as resources becau...
Krucik asked 27/9, 2018 at 1:23

2

I'm trying to create a .jar file for my eclipse project. Through export option, I am able to create .jar, but I want to use Gradle build task to do so. Problem is that, all tasks are disabled for t...
Secularity asked 8/6, 2018 at 5:31

1

Solved

I have created a simple Gradle Java project. The build.gradle file looks like this: plugins { id 'java' } repositories { mavenCentral() } dependencies { implementation group: 'org.apach...
Disgruntle asked 18/5, 2020 at 8:42

1

Solved

I have a Spring Project where I wrote some Unit and Integration Tests. Now I want to create custom tasks for running all unit tests, all integration tests and one task for running both. But how can...
Burgrave asked 24/11, 2019 at 17:1

3

I want to run a project "clean" before the assembleRelease task in Gradle. How can I trigger the clean task basically before everything?

1

Solved

My build.gradle is as follows: group 'groupName' version 'version' apply plugin: 'java' apply plugin: 'idea' sourceCompatibility = 1.8 repositories { . . . } dependencies { . . . testCompile...
Rehnberg asked 30/4, 2018 at 16:35

0

I want to test logic of my build.gradle script. Excerpt of the script would be: (...other tasks and methods...) def readCustomerFile(File file) { def schema = <prepare schema> def report =...
Doughty asked 29/3, 2018 at 14:53

2

Solved

How can I provide an optional property for task? class CustomTask extends DefaultTask { @Input Closure preconfig // ... } This way obligates user to provide preconfig closure as parameter ...
Papilloma asked 10/1, 2017 at 10:5

2

I am using a lot of modules in my project (local and online ones, >20 most of the time) and I can say that normally non of them must be checked nor recompiled. I could include them all as .jar file...
Maggiore asked 3/11, 2016 at 6:44

1

Solved

In my gradle file I defined the following task: task text_example << { //?!? commandLine '' println 'Fam Flinstone' } I want to put inside this task some commands line. How can I do that...
Cousingerman asked 7/7, 2016 at 16:27
1

© 2022 - 2024 — McMap. All rights reserved.