mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-01-14 23:58:06 +03:00
Added detailed about versioning
This commit is contained in:
parent
9fd5eaa043
commit
641fe3c102
@ -40,6 +40,11 @@ class GitVersioner {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
static String prepareUrlToCommits(String url) {
|
static String prepareUrlToCommits(String url) {
|
||||||
|
if (url == null) {
|
||||||
|
// default remote url
|
||||||
|
return "https://github.com/s1lentq/ReGameDLL_CS/commit/";
|
||||||
|
}
|
||||||
|
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
String childPath;
|
String childPath;
|
||||||
int pos = url.indexOf('@');
|
int pos = url.indexOf('@');
|
||||||
@ -73,8 +78,15 @@ class GitVersioner {
|
|||||||
def commitDate = new DateTime(1000L * commit.commitTime, DateTimeZone.UTC)
|
def commitDate = new DateTime(1000L * commit.commitTime, DateTimeZone.UTC)
|
||||||
|
|
||||||
String remote_name = cfg.getString("branch", branch, "remote");
|
String remote_name = cfg.getString("branch", branch, "remote");
|
||||||
|
|
||||||
String url = cfg.getString("remote", remote_name, "url");
|
String url = cfg.getString("remote", remote_name, "url");
|
||||||
|
|
||||||
|
println 'Debug: Start';
|
||||||
|
println ' cfg: (' + cfg + ')';
|
||||||
|
println ' branch: (' + branch + ')';
|
||||||
|
println ' remote_name: (' + remote_name + ')';
|
||||||
|
println ' url: (' + url + ')';
|
||||||
|
println 'Debug: End';
|
||||||
|
|
||||||
String urlCommits = prepareUrlToCommits(url);
|
String urlCommits = prepareUrlToCommits(url);
|
||||||
|
|
||||||
if (!commit) {
|
if (!commit) {
|
||||||
|
@ -371,6 +371,6 @@ task generateAppVersion {
|
|||||||
renderedFile.delete()
|
renderedFile.delete()
|
||||||
renderedFile.write(content, 'utf-8')
|
renderedFile.write(content, 'utf-8')
|
||||||
|
|
||||||
println 'The current ReGameDLL version is ' + verInfo.asVersion().toString() + ', maven version is ' + verInfo.asMavenVersion().toString() + ', commit id: ' + verInfo.commitID.toString() + ', commit author: ' + verInfo.authorCommit.toString();
|
println 'The current ReGameDLL version is ' + verInfo.asVersion().toString() + ', maven version is ' + verInfo.asMavenVersion().toString() + ', commit id: ' + verInfo.commitID.toString() + ', commit author: ' + verInfo.authorCommit.toString() + ', url: (' + verInfo.urlCommits.toString() + ')';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user