Static Binding in Tomcat Multiple SLF4j Bindings

I have a gradle java project that I use Spring Boot to deploy. When I startup Spring-Boot with my jar file, I receive the following warning: SLF4J: Class path contains multiple SLF4J bindings SLF4J: Found binding in [apache-tomcat-8.0.23/lib...
more »

2017-01-11 23:01 (0) Answers

Run Gradle Task with Ansible

I am trying to start a gradle task using ansible. My task looks like this: - name: start backend command: ./gradlew run args: chdir: /home/ubuntu/backend The behaviour is like this: Tasks gets executed I see the process running on the ...
more »

2017-01-11 19:01 (0) Answers

upgrading AspectJ + Spring + Gradle

I am trying to upgrade the AspectJ jar from 1.8.1 to 1.8.5 but my build keeps failing with the following error: [ant:iajc] [error] javax.annotation.processing.FilerException: createResource. Resource already created The build was fine before the ...
more »

2017-01-11 19:01 (1) Answers

Debug Gradle app during server startup

I've found a lot of posts about debugging Gradle in general, and using IntelliJ IDEA specifically. But my issue is that the app crashes during startup, and as far as I can tell, IntelliJ won't/can't attach a debugger until after the server has compl...
more »

2017-01-11 19:01 (1) Answers

Gradle applicationDistribution in java plugin

I am writing custom gradle plugin in Java. As an input my plugin has org.gradle.api.Project object which should have application plugin enabled meaning in build.gradle file of input project the following line should be present: apply plugin: 'appli...
more »

2017-01-11 19:01 (0) Answers

use lib db4o on android studio

Before I used to use db4o-8.1.317.16154-core-java5 on Eclipse, by addthe jar in the lib folder. Now I want to use Android Studio, but the problem I can't find the compile dependence to put in Gradle to download db4o What dependence do I have to use,...
more »

2017-01-11 14:01 (1) Answers

How to replace directory in Jar?

There is my task: task fatJar(type: Jar) { exclude { it.name.startsWith('assets') } from 'build/tmp/hello' // assets/application.css } I want to exclude assets directory from my source code and add assets directory from build/t...
more »

2017-01-11 11:01 (1) Answers

Jacoco gradle multi module

We have a gradle project with mutliple modules - so each module - eg admin, ends up having something like this: task admintest(type: Test) { description = "Tests of admin" testClassesDir = sourceSets.admintest.output.classesDir classpath...
more »

2017-01-11 03:01 (1) Answers

Ignore failure on a single test

When a TestNG test fails I am retrying it once. If the retry is successful, then the build should be successful. If both the retry and the original test fail, the build should fail. The ignoreFailures option will ignore all failed tests and mark the ...
more »

2017-01-10 23:01 (1) Answers

Installing APKs created from single source

This is a follow up question. You don't need to, but you can read the first question. Here is my problem. I created two apks from a single source. Then I published both APKs on the Google Play Store, each as independent apps. Say one app is named Ca...
more »

2017-01-10 22:01 (2) Answers

Gradle use in a disparate build system

I have been wondering what the right approach is to using Gradle in an environment with disparate but dependent projects. For example, suppose I have a docker image build that depends on a separate (say, Dropwizard) application build, while that's ...
more »

2017-01-10 19:01 (0) Answers

Gradle build not adding all "private" libraries

I have a Java project that I am trying to build, I recently moved to gradle to be able to manage the dependencies faster and easier. I am trying to use gradle build, with this result: C:\whatever\>gradle build :compileJava :processResources UP...
more »

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

Include jar file with Java sources in Android aar

I have a gradle task to create a jar file containing Java source files to be included in an Android aar library package. These files will serve as Javadoc for JNI to a C++ library also bundled in the aar package. I cannot possibly figure out how to ...
more »

2017-01-10 14:01 (0) Answers

Issue with uploadArchives in gradle

I'm trying to publish some an aar artifact using gradle. This is the script; uploadArchives { repositories { mavenDeployer { repository(url: 'somewhere){ authentication(userName: "xxx", password: "xxx") ...
more »

2017-01-10 14:01 (0) Answers

Gradle optional @Input

How can I provide optional property for task? class CustomTask extends DefaultTask { @Input Closure preconfig // ... } This way obligates user to provide preconfig closure as parameter when defining task with CustomTask type. How c...
more »

2017-01-10 11:01 (1) Answers