Added script to run all examples.
This commit is contained in:
parent
2f96e48186
commit
ff77b4e0b6
4 changed files with 17 additions and 45 deletions
|
@ -1,36 +0,0 @@
|
|||
task clean(type: Delete) {
|
||||
doFirst {
|
||||
delete fileTree(".") {
|
||||
include "*.properties"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
task incrementPatch {
|
||||
dependsOn(
|
||||
"java:clean", "java:incrementPatch",
|
||||
"kotlin:clean", "kotlin:incrementPatch",
|
||||
"annotation-processor:java:clean", "annotation-processor:java:incrementPatch",
|
||||
"annotation-processor:kotlin:clean", "annotation-processor:kotlin:incrementPatch")
|
||||
}
|
||||
|
||||
task incrementMinor {
|
||||
dependsOn(
|
||||
"java:clean", "java:incrementMinor",
|
||||
"kotlin:clean", "kotlin:incrementMinor",
|
||||
"annotation-processor:java:clean", "annotation-processor:java:incrementMinor",
|
||||
"annotation-processor:kotlin:clean", "annotation-processor:kotlin:incrementMinor")
|
||||
}
|
||||
|
||||
task incrementMajor {
|
||||
dependsOn(
|
||||
"java:clean", "java:incrementMajor",
|
||||
"kotlin:clean", "kotlin:incrementMajor",
|
||||
"annotation-processor:java:clean", "annotation-processor:java:incrementMajor",
|
||||
"annotation-processor:kotlin:clean", "annotation-processor:kotlin:incrementMajor")
|
||||
}
|
||||
|
||||
task run {
|
||||
dependsOn(
|
||||
"java:run", "kotlin:run", "annotation-processor:java:run", "annotation-processor:kotlin:run")
|
||||
}
|
17
examples/examples.sh
Normal file
17
examples/examples.sh
Normal file
|
@ -0,0 +1,17 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ $# -eq 0 ]; then
|
||||
echo "Usage: $0 <arg> [...]"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
dir=$(dirname "$(readlink -f "$0")")
|
||||
color=$(tput setaf 6)
|
||||
normal=$(tput sgr0)
|
||||
|
||||
for ex in "java" "kotlin" "annotation-processor/java" "annotation-processor/kotlin"; do
|
||||
cd "$dir/$ex" || exit 1
|
||||
echo "> Project: ${color}${ex}${normal}"
|
||||
gradle clean "$@" --console=plain --no-build-cache || exit 1
|
||||
echo
|
||||
done
|
|
@ -1,2 +0,0 @@
|
|||
include 'java', 'kotlin', 'annotation-processor:java', 'annotation-processor:kotlin', "test"
|
||||
rootProject.name = 'examples'
|
|
@ -1,7 +0,0 @@
|
|||
#Generated by the Semver Plugin for Gradle
|
||||
#Fri Jul 06 23:36:26 PDT 2018
|
||||
version.prerelease=
|
||||
version.buildmeta=
|
||||
version.patch=1
|
||||
version.major=1
|
||||
version.minor=2
|
Loading…
Add table
Add a link
Reference in a new issue