This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Transfer AD date to minguo date. | |
* 西元年 yyyyMMdd 轉 民國年 yyyMMdd | |
* | |
* @param dateString the String dateString | |
* @return the string | |
*/ | |
public static String transferADDateToMinguoDate(String dateString) { | |
LocalDate localDate = LocalDate.parse(dateString, DateTimeFormatter.ofPattern("yyyyMMdd")); | |
return MinguoDate.from(localDate).format(DateTimeFormatter.ofPattern("yyyMMdd")); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** 匯出所有用到的jar,包括依賴的jar | |
使用前將 build.gradle 的 dependencies 中 implementation 改成 compile | |
*/ | |
task copyJars(type:Copy) { | |
from configurations.runtime | |
into 'lib' // 目標位置 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def getGitCommand = { -> | |
def stdout = new ByteArrayOutputStream() | |
exec { | |
commandLine 'git', 'log','--date=local','--name-status','--after="2018.07.19"' | |
standardOutput = stdout | |
} | |
return stdout.toString().trim() | |
} | |
task prinGitLog{ |