Prepare project to use dagger DI in IntelliJ IDE The IntelliJ IDEA Community version 2017.2.5 is used in this example. Open project structure and add dagger as project dependency from Maven repository. com.google.dagger:dagger:2.10 com.google.dagger:dagger-compiler:2.10 The dagger compiler has to be available only for development phase (annotation processing will generate code) so we added it as “Provided” dependency. Enable annotation processing in the project settings and select content root for generated code.
To create executable JAR we need to create new artifact and build it. Build will save everything to the output folder. The version of java used in the article was 1.8. Automatically created build artifact: Open File/Project structure Create new artifact, JAR, from modules with dependencies: Enter proper startup class and select proper function how to use external 3rd party libraries in the target artifact ("copy to the output directory and link via manifest").
Setup Jasmine testing framework with Node and TypeScript My typescript project setup is described in this article. To be able to write tests in typescript with Jasmine framework we need to setup project environment with some Jasmine specifics. This scaffold project is also available on the github. Initialize typescript compiler and linter : npm install typescript@latest –save-dev tsc –init –moduleResolution node –target ES2017 –sourceMap –module commonjs –removeComments –outDir dist npm install tslint –save-dev tslint –init