Questions tagged [gradle]

Gradle is a project build automation tool that uses a Groovy DSL. Gradle build scripts support Maven and Ivy repositories as well as plain file system for dependency management.

0
votes
1answer
11 views

Wired Out of memory: Java heap space error with ffmpeg library

Well this is the error I get: Out of memory: Java heap space. Please assign more memory to Gradle in the project's gradle.properties file. For example, the following line, in the gradle.properties ...
0
votes
1answer
21 views

Configure .jar to expose its dependencies

I have 3 modules: annotations, annotation_processor and app. annotations/build.gradle apply plugin: 'java-library' dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) } ...
0
votes
1answer
11 views

How download jar file with pom file in gradle folder?

I add compile 'org.apache.commons:commons-vfs2-project:2.3' to my build.gradle file, but I found there is ~\.gradle\caches\modules-2\files-2.1\org.apache.commons\commons-vfs2-project\2.3\...
0
votes
0answers
11 views

Using zip/tar from gradle distribution plugin

I need to know the best way to actually use the outputs from Gradle's distribution plugin. I am trying to package my Java project in a way that can be easily installed and used (i.e, put in a PATH ...
0
votes
1answer
17 views

How can I implement apollographql client into the maven project to activate subscription?

I am trying to create a graphql client in Java project and I am using apollographql library. The problem is that I am not able to get the dependencies using the pom.xml with version different than ...
0
votes
0answers
7 views

Gradle: replacing task.execute() in migrating to Gradle 5 from 4

Gradle: how to replace task.execute() in migrating to Gradle 5.4.1 from 4.x. For example, Task foo() { doLast { bar.execute(); } } Task bar() { ... } Gradle 5 does not support ...
1
vote
0answers
9 views

How to prevent Android library from causing proguard collision errors?

I produce an Android library that has a transitive dependency on OkHttp. I've received reports that when my users include my library, they see the following error: More than one file was found with ...
0
votes
2answers
23 views

Gradle exec task always runs, even with inputs == outputs

I have a simple gradle task that creates a directory task foo(type: Exec) { inputs.dir 'foo' outputs.dir 'foo' commandLine 'mkdir', 'foo' } The problem is every time I run the task foo ...
0
votes
0answers
10 views

Springboot app not resolving views when build on Jenkins

So, I just deployed my Springboot App on Jenkins. It's running, all good, if I try to do a get on a rest endpoint, it returns me the correct Json, so it's working fine. But if I try to go to the ...
0
votes
0answers
7 views

Android AAR artifactory publish executes before assemble

I have an Android library project and I am trying to publish the AAR files to JFrog artifactory using gradle. Once I have the AAR files and when I execute the build task, the publish is working as ...
0
votes
1answer
13 views

How to include your github repository in gradle dependencies

There are a lot of questions like this, but none seem to either work for me or answer my question directly. I'm using Jhipster and MongoDB Atlas. Jhipster uses a library called Mongobee has a ...
0
votes
0answers
7 views

Can't push Kotlin Ktor + Exposed fat jar to Cloud Foundry

I am trying to push a ktor exposed app to cp. I took the starter app found here https://github.com/raharrison/kotlin-ktor-exposed-starter and adjusted the gradle.build file to make a fat jar with a ...
0
votes
0answers
9 views

OpenCSV with Gradle: How to reference resource files in src/main/resources

I'm using the OpenCSV method 'CsvToBeanBuilder' to read data to load from csv files in src/main/resources. private static FileReader readDataFromCSV(String filename) throws IOException { ...
0
votes
0answers
6 views

how to force gradle to show cmake server json response when doing generateJsonModel task

I use gradle to build c++ android project using cmake. If task generateJsonModel failed I can try again with flag --info and see cmake-server json response in logs. But if everything build fine gradle ...
0
votes
0answers
8 views

Unable to see Call Tree on stagemonitor UI - Spring boot Application

Unable to see Call Tree (Method Signature) on stagemonitor UI - Spring boot Application. I am using STS. I am getting call_tree on console but unable to see on stagemonitor UI. This is my stagemonitor....
0
votes
0answers
10 views

Gradle library classes are visible in Android Studio

I have developed android library and deployed in jitpack and i need to give to my clients to that dependency gradle line.But After adding project, they are able to see My library classes.How to let ...
0
votes
1answer
26 views

what does “ignoreKotlinNullability” actually do?

At one point in our project's development, I've added since section to our gradle: kapt { arguments { arg("realm.ignoreKotlinNullability", true) } } I recall doing this to prevent ...
0
votes
1answer
15 views

How to access extra properties defined in build.gradle in a Groovy class?

I am defining an extra property in build.gradle: ext { GRGIT_TARGET_REPO = ... } I have a groovy class under buildSrc/src/main/groovy class Utils { def test() { println GRGIT_TARGET_REPO ...
0
votes
0answers
7 views

React Native Razorpay issue, gradle and firebase error

I'm trying to use react-native-razorpay in my React native project, override minsdkversion causes error. react native razorpay runs on minsdkversion 19 , while my project is on 16 I used tools:...
0
votes
1answer
10 views

Couldnot update time stamp Error when running 'react-native run-android' in gc.properties ( react-native )

When I am running react-native run-android it says : FAILURE: Build failed with an exception. * What went wrong: Could not update time stamp for /home/userName/Desktop/hello-world/android/.gradle/4....
0
votes
1answer
21 views

Exception while creating a fat jar for spring boot application which depends on other project

This is follow up of my previous question Convert gradle multi project to springboot fat jar application I had a http servlet application which was a multi project gradle build, where my project was ...
0
votes
0answers
10 views

I want to use Gradle for my unity3D project, but I have no “Build systems” option under my “file->build settings” menu

I have installed Android build support AND the Android SDK/NDK on Unity3D. However, the build system option is missing! All other build settings options are there. Am I doing something wrong? I have ...
0
votes
0answers
32 views

Gradle clean unable to delete dependent jar

I have a multi-module Gradle 4.4 project - there's a parent build.gradle and then two child Gradle projects, each with their own build.gradle. Both are Java projects (one is for dev code, the other ...
0
votes
1answer
22 views

How to setup a project with multiple levels of modules for local development

I have multiple app projects of of roughly this layout: example app (Java) Java Wrapper with additional functionality C++ + Shallow Java Wrapper 2nd example app (flutter) flutter wrapper Java ...
0
votes
1answer
13 views

Include dependencies in Zip file created with Gradle's Zip task using 'into' (before v4 it worked fine)

I am working in an old project which was using Gradle Wrapper v3.2.1, but I want to update it to the latest version (currently v5.4.1). I have tried updating it to v4.10.2 first but it fails too, so ...
0
votes
0answers
19 views

Unity doesn't resolve with Admob

I am trying to add admob to my unity game, but the resolve step is not working PS:I am using a project provided by google to try admob so the problem isn't from the project. I am using unity 5.0.2f1 ...
0
votes
0answers
29 views

Gradle native app automatically add unwanted options

I'm evaluating Gradle to include in my C++ workflow, installation worked fine but when I'm trying to create a 'cpp-application', Gradle automatically adds -nostdinc in the compiler options. I can't ...
1
vote
0answers
34 views

Lombok is not being recognized in LibGDX project

I'm working on libGDX project and I want to use Lombok. I followed this short tutorial about using lombok in libGDX projects but unfortunately it does not working. Situation looks like this - ...
0
votes
0answers
15 views

grails run-app not working in project with multiple grails plugin

I am having issues while doing grails run-app in my project. The error is as follows: | Running application... Loading development gradle script for Project.... Loading development gradle script for ...
0
votes
0answers
7 views

How to test custom gradle plugin with HTTP requests using TestKit

I created a custom gradle plugin which I am now trying to test using the Gradle TestKit plugin. My custom plugin sends HTTP POST and HTTP GET requests. So my question is: Do I have to mock the ...
0
votes
0answers
26 views

Why doesn't gradlew build use local cache in docker (bitbucket) pipeline?

I'm using a bitbucket docker pipeline to validate my builds for an android app on push. One of my dependancies is a private package which I am hosting on another bitbucket repository. For builds on ...
0
votes
0answers
22 views

Cannot define anything in publishing block of build.gradle

I'm trying to create a library and publish it to maven local. When I start trying to add a MavenPublication to publications, the IDE gives it a dotted underline like it's an unresolved reference. Same ...
1
vote
1answer
24 views

How can I share a Module's androidTest “Robots” with another module?

I am a big fan of the Robot pattern for keeping UI tests clean. But how can I reuse Robot classes across multiple modules? :lib-with-ui . // has Robot classes in `src/androidTest` :app I fully test ...
0
votes
1answer
18 views

Vert.x. How to enable automatic redeploy in a project with multiple modules?

How can we enable auto redeploy for multiple modules when using Vert.x? For example, if we have a structure like this one: build.gradle settings.gradle main build.gradle src/main/java/...
0
votes
1answer
26 views

Convert gradle multi project to springboot fat jar application

I had a http servlet application which was a multi project gradle build, where my project was a contain gradle HttpServlet project and it depends on the other two gradle java projects. I deployed ...
0
votes
0answers
12 views

'PKIX path building failed - unable to find valid certification path to requested target' (behind corporate proxy with authenthication)

I'm trying my hand at flutter and react-native (I'm a beginner developer) and I have to build a small prototype for my company, but I can't get past the "run my first app" step due do a certificate ...
0
votes
0answers
8 views

How can I programmatically access the Gradle DSL of another plugin from my own custom plugin?

How can I programmatically access the DSL of another plugin with my own, custom plugin? debug { ext.enableCrashlytics = false ext.alwaysUpdateBuildId = false } release { ext.enableCrashlytics =...
0
votes
0answers
10 views

Create PlantUML Diagrams From Gradle

Is there a way to create images from PlantUML diagrams as part of a gradle build? I have seen this plugin, however, there is a dependency on Graphviz/Dot and I really need a self-contained build (...
3
votes
1answer
44 views

Execution failed for task generateJsonModelArmDebug

I try to use Android Studio to build native c++ project using cmake 3.14.0 version. Like in documentation: https://developer.android.com/studio/projects/add-native-code#use_a_custom_cmake_version . So ...
0
votes
0answers
21 views

Hide transitive dependency in gradle

Project setup: Gradle5, Spring5 We would like to use JUnit5 as our test tool. We excluded JUnit4 from our Spring5 dependencies but we have a 3rd-party lib that still depends on JUnit4, and does not ...
1
vote
1answer
55 views

Kotlin Could not find or load main class

I'm trying to build a jar from a kotlin app using intelliJ idea, everything works from intellij, it's able to run kotlin files with the main method, however after building the jar with gradle jar I ...
0
votes
1answer
14 views

Can't import the grails plugin standalone:9.0.0.M4

I'm struggling to add a dependency to my build.gradle This is the standalone dependency for grails, you can find it here So I added the line compile "org.grails.plugins:standalone:9.0.0.M4" in the ...
0
votes
0answers
9 views

Gradle GradleBuild tasks not run in parallel

I have these tasks in a multi-project build: task runA(type: GradleBuild) { tasks = [ ':a:x:bootRun', ':a:y:bootRun', ':c:x:bootRun' ] } task runB(type: ...
0
votes
1answer
19 views

Getting error while trying to use mainClassName

I am trying to use this SMS service but while setting the SMSBackend class I am not able to set the mainClassName due to which I am not able to get the link as given in the blog for last few hr I am ...
0
votes
1answer
33 views

Can's set debug/AndroidManifest.xml

Android Studio 3.4 Here my android app structure: I has 2 buildTypes: debug and release Here my src/debug/AndroidManifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:...
0
votes
0answers
10 views

Branch coverage is not shown in Sonarcloud when syncing with master branch

I'm trying to run analysis on my code using jacoco plugin in gradle and sonarqube. My tests are written in Groovy. I've automated the process using bitbucket pipelines, so every time I commit code, ...
0
votes
1answer
16 views

Why error AdvertisingIdClient error when added new places sdk

i got error AdvertisingIdClient when i add some new sdk places here is my library // Google Play Services implementation 'com.google.android.gms:play-services-base:11.8.0' implementation 'com....
0
votes
0answers
14 views

Build error: Unable to process incoming event 'ProgressComplete '

I am building my React Native project properly while working on debug mode but i cannot be successful when i try to build my project on release mode. Some info about project: RN version: 0.55.4 ...
0
votes
1answer
22 views

Access build.gradle contents programmatically

Do we have any option to read the contents of the build.gradle file in a java program. I was able to do something similar in maven using the below code. Now, I'm looking at options to do the same in ...
1
vote
1answer
40 views

Copy excel (.xls) file to a container using the Dockerfile

I am fairly new to Docker so my question may have a simple answer. Via the Dockerfile which i created using some online Tutorials I successfully integrated my java project into a container. Now i want ...

http://mssss.yulina-kosm.ru