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.
gradle
52,452
questions
347
votes
19
answers
237k
views
Gradle: How to Display Test Results in the Console in Real Time?
I would like to see test results ( system.out/err, log messages from components being tested ) as they run in the same console I run:
gradle test
And not wait until tests are done to look at the ...
7
votes
2
answers
3k
views
How do I export the dependent libraries to a directory for deployment in gradle?
I need to deploy my code to another machine. How do I export the dependent jars to a lib directory?
0
votes
1
answer
423
views
Capturing the standard output in Gradle 0.8 builds
Say I have src/test/groovy/MyTest.groovy:
class MyTest extends GroovyTestCase {
void testDummy() {
println 'DUMMY'
}
}
And there is nothing special with my build.gradle:
usePlugin 'groovy'
...
3
votes
1
answer
5k
views
Gradle Task Dependencies
How on earth can I do this in gradle: eg. want to use HTTPBuilder in a task.
build.gradle:
repositories {
mavenRepo urls: "http://repository.codehaus.org"
}
configurations {
testConfig
}
...
1
vote
1
answer
506
views
How do I specify checkstyle version when using gradle 0.9-rc-1 code-quality plugin?
I've been using maven2 for a while now, and I'm trying out gradle build tool at the moment.
One of the things I would like to do is to run checkstyle, but my current project is using checkstyle 4.4 ...
3
votes
1
answer
2k
views
Create a hadoop jar with external dependencies using Gradle
How do I create a hadoop jar that includes all dependencies in the lib folder using Gradle? Basically, similar to what fatjar does.
0
votes
2
answers
4k
views
How do I create several ejb jars in a Gradle build project?
I have a multi-project build and in each of the projects I have several packages in the main src tree which need to be packaged up separately from the rest of the src as individual EJB artifacts:
com/...
1
vote
2
answers
3k
views
Can Gradle handle local dependencies to other than sub-directories?
I don't know if I totally got the concept wrong, but I want to create several projects with dependencies to other projects which are not part of the directory structure of a parent project. I know ...
0
votes
1
answer
3k
views
gradle: "Could not determine which tasks to execute."
I received the following gradle build file (gae.gradle) with a sample project from SpringSource but when I attempt to run it with gradle as:
gradle gae
it generates the error:
FAILURE: Could not ...
0
votes
2
answers
3k
views
automating telnet with Groovy
I am doing a gradle/OSGi build.
I have the OSGi bundle building fine, but want to automate the bundle deployment. I don't think there is a gradle task for this, so this becomes a groovy question. ...
0
votes
2
answers
594
views
Error in the build of project with gradle from Hudson and its deployment in artifactory
I just added the hudson-artifactory plugin, and everything run marvelously with Maven, but when I tried to build the project with gradle (I added the gradle plugin to hudson)
I got this error:
...
74
votes
10
answers
106k
views
gradle - how do I build a jar with a lib dir with other jars in it?
In gradle - how can I embed jars inside my build output jar in the lib
directory (specifially the lib/enttoolkit.jar and lib/mail.jar)?
1
vote
1
answer
2k
views
gradle - how to declare a dependency of a jar in a jar
Using gradle, I am consuming a build from an archiva repository. One of the jars (javax.jms_1.1.0.200810061358.jar) has the following content:
about.html
about_files
LICENSE.txt
jms.jar
META-INF
...
4
votes
1
answer
2k
views
Alternative configurations in Gradle for compiling Java
With Gradle there are some default configurations such as compile, runtime etc but for various reasons I wish to use some alternative configurations. How do I tell the compilation task about these ...
1
vote
1
answer
2k
views
In Gradle, How do ignore the cache for a local ivy repository?
In my Gradle script (version 0.8), I have a local ivy repository which I use to publish a library, and I can't seem to get Gradle to ignore its cache.
I'm accessing the local ivy repo. based on the ...