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
#/bin/bash | |
# Silly script to show the current java version so I don't have to always type java -version. | |
# It also suppresses the JAVA_TOOL_OPTIONS by default, while proviging an option to show it. | |
# And, you can use a command line option to show only the first line of output, which is usually enough. | |
# functions | |
print_usage() { | |
echo "Usage: $0 [-h] [-1] [-t]" | |
echo |
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
# Assumes using Maven Daemon (mvnd) but commands work with regular mvn as well | |
# Display dependency updates | |
mvnd versions:display-dependency-updates | |
# Display property updates | |
mvnd versions:display-property-updates | |
# Display plugin updates | |
mvnd versions:display-plugin-updates |
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
# Run the Consul agent in development mode and specify the node name | |
consul agent -dev -node <node-name> | |
# e.g. | |
consul agent -dev -node my-server | |
# reference: https://developer.hashicorp.com/consul/tutorials/certification-associate-tutorials/get-started-agent |
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
mvn test-compile com.github.johnpoth:jshell-maven-plugin:1.3:run | |
# To also include the test classpath: | |
mvn -DtestClasspath=true test-compile com.github.johnpoth:jshell-maven-plugin:1.3:run | |
# reference: https://github.com/johnpoth/jshell-maven-plugin |
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
name: "CodeQL" | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
# The branches below must be a subset of the branches above | |
branches: [ "main" ] | |
types: [ opened, synchronize, reopened ] | |
paths-ignore: |
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
mvn org.jacoco:jacoco-maven-plugin:prepare-agent verify org.jacoco:jacoco-maven-plugin:report |