-
Notifications
You must be signed in to change notification settings - Fork 1
Development Note
Dang Thanh edited this page Jan 24, 2019
·
38 revisions
- Java 8
- Gradle: Build & Deploy script
- Nexus: Repository server
- Docker is desirable. Refers useful startup scripts
- Create
nexus.secret.propertieswith content:nexusSnapshotUrl=http://<your-nexus-server>/repository/maven-snapshots/ nexusReleaseURL=http://<your-nexus-server>/repository/maven-releases/ nexusUsername=<your-nexus-user> nexusPassword=<your-nexus-password>
-
Build local: compile and build to
jarfile, then push artifact tolocal mavenrepository.gradle clean jooq build uberJar
-
Publish artifacts to
Nexusserver:gradle publish
-
Copy theses artifacts to
demofolder: (will be removed when I standardize build and bundle script)cp -rf build/libs/nube-dashboard-connector-edge-1.0.0-SNAPSHOT-fat.jar demo/bios-connector.jar cp -rf build/libs/nube-edge-bios-1.0.0-SNAPSHOT-fat.jar demo/bios.jar cp -rf build/libs/nube-dashboard-server-1.0.0-SNAPSHOT-fat.jar demo/dashboard.jar cp -rf dashboard/server/webroot demo/
-
Start services (replace
${your-ip})java -Dlogback.configurationFile=logback-bios-connector.xml -jar bios-connector.jar -conf bios-connector.json java -Dlogback.configurationFile=logback-bios.xml -jar bios.jar -conf bios.json java -Dlogback.configurationFile=logback-dashboard.xml -jar dashboard.jar -conf dashboard.json
Will be part of Swagger UI soon. Try Postman version first.
-
Java 8
- From Project panel, click on root item and press F4
- Normally, java 1.8 will be available in Project SDK under Project session.

- If it is not available, click on New -> JDK
- Browser to your JDK8 installation folder
- Click OK to save your changes

-
Gradle
- From Intellij menu, open File -> Settings
- From left panel search box, input 'gradle'
- Select Gradle session under Build, Execution, Deployment -> Build Tools
- From right panel, check on the Use gradle 'wrapper' task configuration then press OK

-
Importing code style
- Download and unzip the templates from here
- From Intellij menu, open File -> Settings, select Editor -> Code Style session
- From right panel, click to settings icon, select Import Scheme -> Intellij IDEA code style XML

- Browser to your code style downloaded above, select java-intellij-zero-style.xml then Ok.

- The ZeroStyle scheme will be available and selected by default.

- Click OK to close Setting panel and apply your changes.
-
Install Intellij lombok plugin
- From Intellij menu, open File -> Settings, select Plugins session
- Open Marketplace tab, from the plugins search box (right panel), input 'lombok' then Enter
- From the search result, Lombok plugin will be availabe, click on Install button
-
Enable Annoation processing
- From Intellij menu, open File -> Settings, select Build, Execution, Deployment -> Compiler -> Annotation Processors
- From the right panel, check on Enable annotation processing then press OK

TBD