File: development.md

package info (click to toggle)
osmosis 0.48.3-1~bpo10+1
  • links: PTS, VCS
  • area: main
  • in suites: buster-backports
  • size: 7,640 kB
  • sloc: java: 42,402; sql: 2,451; xml: 734; sh: 396; makefile: 19
file content (49 lines) | stat: -rw-r--r-- 1,719 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Development

The easiest way to perform a full Osmosis build is to use the docker-based
development environment.  If you have docker and docker-compose installed,
simply run the following command to build and launch a shell with everything
required to run the full build and test suite.

    ./docker.sh

Osmosis is built using the [Gradle build tool](http://gradle.org).  Gradle itself
does not need to be installed because the `gradlew` script will install Gradle on
first usage.  The only requirements are a 1.7 JDK, and an Internet connection.
Note that in the docker environment all downloads will still occur and be cached
in your home directory.

Below are several commands useful to build the software.  All commands must be
run from the root of the source tree.

Perform a complete build including unit tests:

    ./docker.sh ./gradlew build

Build the software without running unit tests:

    ./docker.sh ./gradlew assemble

Clean the build tree:
    
    ./docker.sh ./gradlew clean

Generate project files to allow the project to be imported into IntelliJ.

    ./docker.sh ./gradlew idea

Generate project files to allow the project to be imported into Eclipse.

    ./docker.sh ./gradlew eclipse

Verify checkstyle compliance:
    
    ./docker.sh ./gradlew checkstyleMain checkstyleTest

After completing the build process, a working Osmosis installation is contained
in the `package` sub-directory.  The Osmosis launcher scripts reside in the `bin`
sub-directory of package.  On a UNIX-like environment use the "osmosis" script,
on a Windows environment use the "osmosis.bat" script.

Distribution archives in zip and tar gzipped formats are contained in the
`package/build/distribution` directory.