How to load PhantomJS in Gradle automatically - gradle

How can I configure my Gradle script to automatically download PhantomJS for my tests to use, so that I don't have to manually install it somewhere on my build server?
I see a phantomjs-maven-plugin that seems to do exactly what I want, but I don't know how to use it in Gradle.

Related

How to prevent gradlew from download anything?

I am trying to run gradlew on offline machine. It starts from message
Downloading https://services.gradle.org/distributions/gradle-2.10-all.zip
and then fails with exception.
What it wants and how to satisfy it?
Option 1. If you have possibility go online temporary
Command gradlew means you are trying to use Gradle Wrapper. It is a tool for automated downloading of Gradle distribution.
In order to download Gradle Wrapper you have to execute gradlew command with a proper network connection at least once.
Make sure you have correct network and proxy settings.
./gradlew build
Only after that you can build a project offline. Example:
./gradlew build --offline
Option 2. Download distribution by hand
Or, alternatively, you could download distribution from official site. Then extract it, add gradle to PATH variable, and run:
gradle build --offline

Maven re-build and deploy

I'm new to compiled web development, and I'm just trying to figure out the build/deploy process.... I've done:
mvn clean install
on a project, which built and deployed the project and now I can see it. If I want to make changes to the codebase, do I really need to run mvn clean install again to re-build and deploy the changes or is there a way to do a quicker build without using a "proper" IDE?
I'm using vim/gvim
Thanks!
Maven already handles the dependencies and only re-builds the necessary files... unless you throw away all previous build artifacts with clean! You should only need to use clean when you run into problems, or when you have checked out a different version from version control. Usually, mvn install should suffice.
You can integrate that with Vim; the simplest is to
:set makeprg=mvn
and then trigger a build with :make install.
Plugins build on that simplistic setup, e.g. check out:
maven-plugin
maven-ide

Python support for maven module in intellij

I am using intellij IDEA version 11.1.5 on windows and python plugin version is 2.9.2
I am using grinder maven plugin to run the performance tests using grinder. It only supports python(Jython) to run tests. I am not getting any auto suggestions for the python development even though I have installed the python plugin. Python files are also getting displayed as a text files.
Is there any other configuration to enable the auto suggestions for python development?
Your file types are not configured correctly, .py is most likely assigned to Text files instead of Python files, you can fix it in File | Settings | File Types.
There is no support for tests running via Maven, but you can create your own Run/Debug configuration for Python unit tests in IDEA.

Save changes resources before running maven install through m2eclipse

I am using m2eclipse and was wondering if there is a way to make it save all the sources when running maven install. I need to do it manually each time and sometimes forget to...
Thanks

way to build debian package from Jenkins?

Apparently there is no plugin for building Debian packages from Jenkins, but what would be the best way to do it without a plugin?
Should I just call a shell script as a post build step, which would create the package or is there a more elegant way?
We are developing a Java project which is built using Maven and packed as a debian package using a shell script.
You could try the deb-maven-plugin as part of your Maven build but to be honest if your script is working, I'd stick with that. No reason for it to be a post build step though, you can use the exec-maven-plugin to run your script from within Maven.

Resources