Gradle copy folder on installDist

Using gradle 3.4 but fairly new to it. If I run gradlew installDist the files in src/main/java get copied to the build folder all that works fine. But I also have an extra folder in src/main/conf I would like to copy over to build/install/my-artifa...
more »

2017-04-19 23:04 (1) Answers

How to get gradle to download libraries

I am learning Java "the hard way", meaning without any IDE. Instead, I rely on gradle and my text editor. A this moment, my project looks like this: ├── build.gradle └── src ├── main │   └── java │  
more »

2017-04-19 20:04 (1) Answers

Gradle - Conditionally add configuration

I have a gradle project with configuration below apply plugin: 'java' apply plugin: 'maven' repositories { mavenCentral() maven { credentials { username "$System.env.REPOSITORY_USER" password "$System.env.RE...
more »

2017-04-19 19:04 (1) Answers

gradle error when building signed apk

I in the process of building a signed apk and I'm running into this error. The app runs just fine on phone; however, I keep getting this error when building apk Error:Execution failed for task ':app:transformClassesWithDexForRelease'. > com.andro...
more »

2017-04-19 19:04 (0) Answers

Modularity support with Gradle

I understand from this link that gradle 3 enables Java 9 support but don't support modulepath. Also, i found this github link which talks about jdk 9 support.
more »

2017-04-19 18:04 (0) Answers

Tests coverage using Gradle in IntelliJ IDEA

Does anybody knows how to run tests with coverage using Gradle in IntelliJ IDEA? It seems that the option is missing from contextual menu and if invoked from left side of the screen the following problem is reported: Error running **TestClass** Can...
more »

2017-04-19 17:04 (1) Answers

gradle.settings multiline syntax

I have very long include in settings.gradle: include 'project-subproj1', 'project-subproj2', 'project-subproj3', 'project-subproj4' What proper syntax to split long lines in settings.gradle? I think about: include 'project-subproj1', \ '...
more »

2017-04-19 13:04 (3) Answers

Build and compile external library in Android

I'd like to build my android application using stub (as android.jar) and at run time use library which is located in device shell. In build.gradle i wrote: dependencies { provided files('mylib.jar') } but i still see the library in apk in insta...
more »

2017-04-19 11:04 (3) Answers

get two tasks to apply plugin gradle

Is there a way to have two tasks in gradle and have both return the proper values setting parameters within the plugins I have: Build.gradle apply plugin: 'gradle.plugin' task FirstTask(type: com.nav.Coding){ param.dictFile = file ("${projectDi...
more »

2017-04-18 15:04 (1) Answers

Define a sourceset for all aspectJ

I'm using this gradle plugin for build aspectJ classes: The main problem is that i've seen that when I build and deploy to wildfly, if I only modify Aspect class (.aj) it says "UP TO DATE" and doesn't cha...
more »

2017-04-18 11:04 (0) Answers

jenkins multiple builds for 1 project

I want to build my android project in jenkins which contains the code(2 keys) below where only 1 key is used in the project at any 1 time. I want to generate the build for both keys. Currently, i can only build 1 key at a time such that i need to m...
more »

2017-04-18 11:04 (0) Answers

Gradle resolve compile and build dependencies

This is might be redundant question but I'm still unable to find the answer. The scenario is : I have 4 projects in my workspace say Project A, B ,C and D. Now the project B has a compile dependency on project A and once project B is built successful...
more »

2017-04-18 08:04 (0) Answers

Inconsistent behavior when compiling Android apps

I have two Android apps I'm looking at - one that I created a while back and another that I'm just making now. When I try to compile the new one, I get an error "Error:Execution failed for task ':app:compileDebugJavaWithJavac'. compileSdkVersion 'an...
more »

2017-04-18 04:04 (1) Answers