Before we can see the support for Gradle in the several continuous integration servers, we need to have a sample project. We are going to create a very simple Java project with a test class and add it to a Git repository in this section.
We have already created a Java project earlier. We are going to reuse the code in this chapter for our sample project. We want a test in our project so that we can see how the continuous integration tools can handle test results. Finally, we want more than one artifact for our project; we also want a JAR file with the compiled classes, source code, and Javadoc-generated documentation.
We will first create a
build.gradlefile in a directory with the following contents:
// We create a Java project so we need the Java plugin apply plugin: 'java' // Set base name for archives. archivesBaseName = 'gradle-sample' // Version of the project. version...