-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- The plugin now evaluates the run tasks in silent mode. - Resolves #19 - Added optional attribute 'incrementOn'. - Resolves #21 - First run on Gradle syncing (gradle <no tasks>) will generate the properties file with default values. - New values are now saved when all tasks have been completed and build is finished. - Added more default save tasks for attribute 'saveOn'. - An info log line is produced with the outcome of the execution state showing which task triggered the saving. - When gradle is executed without tasks the evaluation is skipped and a warning log informs the user. - Added colors and bold effects to the logs. - General code and logs improvements. - Fixes #18 - Android bundle support: the correct task to monitor is 'bundleRelease'. - Removed deprecated features. Full release notes: https://github.com/davideas/GrabVer/releases/tag/2.0.0
- Loading branch information
Showing
9 changed files
with
522 additions
and
213 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
package eu.davidea.gradle; | ||
|
||
public enum ConsoleColors { | ||
// Reset | ||
RESET("\033[0m"), // Text Reset | ||
|
||
// Regular Colors | ||
BLACK("\033[0;30m"), // BLACK | ||
RED("\033[0;31m"), // RED | ||
GREEN("\033[0;32m"), // GREEN | ||
YELLOW("\033[0;33m"), // YELLOW | ||
BLUE("\033[0;34m"), // BLUE | ||
PURPLE("\033[0;35m"), // PURPLE | ||
CYAN("\033[0;36m"), // CYAN | ||
WHITE("\033[0;37m"), // WHITE | ||
|
||
// Bold | ||
ONLY_BOLD("\033[1m"), // ONLY BOLD | ||
BLACK_BOLD("\033[1;30m"), // BLACK | ||
RED_BOLD("\033[1;31m"), // RED | ||
GREEN_BOLD("\033[1;32m"), // GREEN | ||
YELLOW_BOLD("\033[1;33m"), // YELLOW | ||
BLUE_BOLD("\033[1;34m"), // BLUE | ||
PURPLE_BOLD("\033[1;35m"), // PURPLE | ||
CYAN_BOLD("\033[1;36m"), // CYAN | ||
WHITE_BOLD("\033[1;37m"), // WHITE | ||
|
||
// Underline | ||
ONLY_UNDERLINED("\033[4m"), // ONLY UNDERLINED | ||
BLACK_UNDERLINED("\033[4;30m"), // BLACK | ||
RED_UNDERLINED("\033[4;31m"), // RED | ||
GREEN_UNDERLINED("\033[4;32m"), // GREEN | ||
YELLOW_UNDERLINED("\033[4;33m"), // YELLOW | ||
BLUE_UNDERLINED("\033[4;34m"), // BLUE | ||
PURPLE_UNDERLINED("\033[4;35m"), // PURPLE | ||
CYAN_UNDERLINED("\033[4;36m"), // CYAN | ||
WHITE_UNDERLINED("\033[4;37m"), // WHITE | ||
|
||
// High Intensity | ||
BLACK_BRIGHT("\033[0;90m"), // BLACK | ||
RED_BRIGHT("\033[0;91m"), // RED | ||
GREEN_BRIGHT("\033[0;92m"), // GREEN | ||
YELLOW_BRIGHT("\033[0;93m"), // YELLOW | ||
BLUE_BRIGHT("\033[0;94m"), // BLUE | ||
PURPLE_BRIGHT("\033[0;95m"), // PURPLE | ||
CYAN_BRIGHT("\033[0;96m"), // CYAN | ||
WHITE_BRIGHT("\033[0;97m"), // WHITE | ||
|
||
// Bold High Intensity | ||
BLACK_BOLD_BRIGHT("\033[1;90m"), // BLACK | ||
RED_BOLD_BRIGHT("\033[1;91m"), // RED | ||
GREEN_BOLD_BRIGHT("\033[1;92m"), // GREEN | ||
YELLOW_BOLD_BRIGHT("\033[1;93m"),// YELLOW | ||
BLUE_BOLD_BRIGHT("\033[1;94m"), // BLUE | ||
PURPLE_BOLD_BRIGHT("\033[1;95m"),// PURPLE | ||
CYAN_BOLD_BRIGHT("\033[1;96m"), // CYAN | ||
WHITE_BOLD_BRIGHT("\033[1;97m"); // WHITE | ||
|
||
String code; | ||
|
||
ConsoleColors(String code) { | ||
this.code = code; | ||
} | ||
|
||
public static String bold(String message) { | ||
return ConsoleColors.ONLY_BOLD.code + message + ConsoleColors.RESET.code; | ||
} | ||
|
||
public static String underline(String message) { | ||
return ConsoleColors.ONLY_UNDERLINED.code + message + ConsoleColors.RESET.code; | ||
} | ||
|
||
public static String styler(ConsoleColors color, String message) { | ||
return color.code + message + ConsoleColors.RESET.code; | ||
} | ||
|
||
} |
Oops, something went wrong.