-
Notifications
You must be signed in to change notification settings - Fork 12
DEV, Build from Scratch
In case you have a brand new snapshot from the product, and you would like to recreate the product from scratch, the following steps should be done.
NOTE: THIS DESCRIPTION IS VALID FOR WILMA 1.1 only
Execute gradlew cleanIdea idea
or gradlew cleanEclipse eclipse
targets to generate IDE (IntelliJ or Eclipse) specific files.
This module is separated within and from Wilma. Wilma use this module as an external module. Because of this, it requires access to a binary repository. Official Wilma use this module from JCenter repository. In case of local build, and when the browsermob-proxy
folder content is not changed, you may skip this build step completely.
In case you insist on rebuilding Wilma, or something is changed within browsermob-proxy
folder, you need to rebuild this module too, and use a personal Maven repository on your local machine.
Build scripts are prepared to use C:/tmp/myRepo
folder and Windows machine. If work under linux, or would like to use another folder for local Maven repository, you need to modify
ext.myLocalRepository='file://C:/tmp/myRepo/'
settings in main build.gradle
file.
gradlew clean :browsermob-proxy:build :browsermob-proxy:jar :browsermob-proxy:install -x :browsermob-proxy:test :browsermob-proxy:uploadArchives -Pversion=2.0-beta-8-wilma-local
If everything goes well, you should find the just compiled browsermob-proxy
module installed in your local Maven repo at C:/tmp/myRepo folder (or in the local repo you specified.)
Before moving to the next step, you need to modify wilma-application/modules/wilma-browsermob-integration/build.gradle
file, and use the same version you built instead of the official version.
compile ('com.epam.wilma:browsermob-proxy:2.0-beta-8-wilma-local'){
Execute the following command:
gradlew clean :wilma-message-search:wilma-message-search-engine:build -PbuildNumber=local :wilma-message-search:release
If everything goes well, you will find Wilma Message Search Application zip in folder wilma-message-search/build/distributions
. You can extract it to somewhere, and start it as it is extracted there, by executing the following command:
(patch to java in JDK not in JRE!) java -jar wilma-message-search-1.1.local.jar message.search.conf.properties
Access to its UI: http://localhost:9093/
Execute the following command:
gradlew clean :wilma-application:wilma-engine:build -PbuildNumber=local :wilma-application:release
If everything goes well, you will find wilma-application-1.1.local.zip
in folder wilma-application/build/distributions
. You should copy and extract the zip somewhere, and start it as it is, by executing the following command:
java -jar wilma-1.1.local.jar wilma.conf.properties
Access to its UI: http://localhost:1234/index/
The fastest way of building all applications and modules is the following:
gradlew clean :wilma-mock:build :wilma-mock:createPom :wilma-mock:uploadArchives build