Use Custom gradle plugin module in another module

I am developing a custom plugin that I want to be able to deploy to a repository at a later stage so I've created a stand alone module for it. Before I do any formal TDD on it, I wanna do certain exploratory tests manually so, I've created a demo mo...
more »

2017-02-15 22:02 (2) Answers

Gradle: how to move outputs of a task?

I have set buildDir in build.gradle and all but one plugins honor that setting. For the one that insists on creating build/reports/license/ and placing its outputs there, I'd like to move these files to my ${buildDir}. I tried adding a doLast block ...
more »

2017-02-15 21:02 (2) Answers

Gradle build failed on Travis CI

I used filteringCharset = 'UTF-8' because of encoding problems in ProcessResources in build.gradle. This build succeeded on my desktop, but failed on Travis CI. I guess this is the problem with Travis CI's Gradle. So I tried to update the version but...
more »

2017-02-15 10:02 (1) Answers

How to run 'rebuild project' from the command line

Some Context: I am working on a Continuous Integration pipeline with MSBuild for a large project that includes an Android application. This application includes some automatically generated files that need to be integrated into the project regularl...
more »

2017-02-14 15:02 (0) Answers

Exclude dependencies by repository

Is there a way to tell Gradle to exclude all dependencies of a particular dependency, that would be pulled from a given repository ? Removing that repository from the repositories list would not work, because I need that repository for other depende...
more »

2017-02-14 15:02 (1) Answers

Android Gradle conflict

I am trying to include the Facebook api into my android project. Everything was working fine before adding the Facebook sdk dependency to the gradle. I tried many solutions but they don't work. After adding the dependency the collapsibleToolbar layou...
more »

2017-02-14 12:02 (0) Answers

Gradle build on Jenkins failed

Due to some internal Gradle issues the build on Jenkins is failing. It seems quiet known issue to Gradle. Links: Issue 227592: NPE in NDK support in 2.3 canary1 Issue 218844: NullPointerException when configuring gradle build containing CMake ...
more »

2017-02-14 09:02 (0) Answers

Project made of several projects

Can someone enlighten me, I have spent a lot of time on this and I am starting to doubt if it is actually possible, and if so, how. I have two Android application projects with nested libraries, and I would like to have a parent project that would r...
more »

2017-02-14 09:02 (2) Answers

How to define the GNU find command in Gradle?

I have this command find path/tools/ \( -name '*.sh' -o -name '*.exe' -o ! -name "*.*" \) -exec chmod +x {} \; How can I define it in my Gradle exec task? task xPermTools (type: Exec){ workingDir '../' commandLine "find", "path/tools/", ...
more »

2017-02-14 09:02 (0) Answers

Mockwebserver in gradle build throwing error

This entry in my gradle file : androidTestCompile ('com.squareup.okhttp:mockwebserver:2.7.0') is throwing error: Warning:Conflict with dependency 'com.squareup.okio:okio'. Resolved versions for app (1.8.0) and test app (1.6.0) differ. See http://...
more »

2017-02-14 06:02 (1) Answers

How do I create my procfile file for heroku?

I'm trying to use Heroku with Java, I have this directory structure and I'm using IntelliJ: target com x y Main.java in the procfile: web: java -cp target/classes/;target/dependency/* com.x.y.Main When I try heroku local web I ...
more »

2017-02-13 20:02 (1) Answers

increase targetSdkVersion for androidTest

Currently I'm facecing a problem I am not able to solve. Due to a bug I have to set a lower targetsdkVersion to 25 (with is the maximun possible target version at the time of this post) Its solution can take me much time to solve, so meanwhile I wan...
more »

2017-02-13 17:02 (2) Answers