Here is a maven template file to :
- create JAR
- Javadoc
- execute Unit and Cucumber Tests
- build Shaded JAR
- generate epub+pdf from 'docs/' markdown files
- push github pages from 'docs/' markdown files
#!/bin/bash | |
alias l='ls --color=yes' | |
alias ll='l -l' | |
alias mci='mvn clean install' | |
alias mcin='mci -DskipTests=true' | |
alias mpp='mvn release:prepare' | |
alias mpperf='mvn release:perform' | |
alias idea='idea64.exe %1 &' | |
alias ltree="ls -R | grep ":$" | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-/|/'" |
import java.util.List; | |
import java.util.Objects; | |
/** | |
* {@link Vector2d} class is to define, manage and operate 2D Vector. | |
* <p> | |
* eg.usage : | |
* | |
* <pre> | |
* // create a vector |
/** | |
* Bounding Box for any object managed by the system. | |
* | |
* @author Frédéric Delorme | |
*/ | |
public class BoundingBox { | |
/** | |
* position for the boundingbox. | |
*/ |
/** | |
* {@link Configuration} loads a properties file and | |
* let user gather converted value to | |
* <ul> | |
* <li>Integer,</li> | |
* <li>Double,</li> | |
* <li>Boolean,</li> | |
* <li>String.</li> | |
* <li>{@link Dimension} </li> | |
* <li>{@link Rectangle2D}</li> |
title | version | description | createdAt | author | tag | |||||
---|---|---|---|---|---|---|---|---|---|---|
Java Project Build script |
5.2 |
bring a very simple tool to compile java project to a jar file with JAR dependencies, execute unit test and check quality code. |
2023-10-23 |
|
java, build, unit-test, javadoc, doc, wrapjar, zip |
The Java init script gives the opportunity to create simple java project with some build script.
UPDATE: add some example usages in help and fix anoying bug.
The created project
.sdkmanrc
file,package com.java.simple.app; | |
import java.io.IOException; | |
import java.util.*; | |
import java.util.concurrent.ConcurrentHashMap; | |
import java.util.function.Function; | |
/** | |
* Main class for project JavaSimpleAppTemplate | |
* |
public enum ConfigAttribute { | |
CONFIG_FILE_PATH("configFile", | |
"cf", | |
"app.config.filepath", | |
"The properties file path to be loaded as configuration", | |
(v) -> v, | |
"/config.properties"), | |
TEST_MODE_EXIT("exit", "x", | |
"app.exit", | |
"Test mode only auto exit after initialization", |
function generateBookSlideFromDataSheet() { | |
var presentationTemplateId = '[SLIDE_GOOGLE_DOC_ID]'; | |
var spreadSheetDataId = '[SPREADSHEET_GOOGLE_DOC_ID]'; | |
var dataRange="[DATA_RANGE:'A2:J10']" | |
var generatedBooksFolderId='[FOLDER_OUTPUT_GOOGLE_DOC_ID]'; | |
var bookdata = Sheets.Spreadsheets.Values.get(spreadSheetDataId,dataRange); |