.PHONY: build

all: clean build test readme doc

# clean
clean:
	./gradlew clean

# Run gradle test with information
test:
	./gradlew test --info

build: clean
# ./gradlew build -x test
	./gradlew build publishToMavenLocal
	@echo "see build/lib"

oobt: build
	$(MAKE) -C demo all

# Ruby must be installed (ERB is located under $GEM_HOME/bin or under Ruby installation)
readme:
	erb -T '-' README.md.erb > README.md

doc:
	gradle javadoc --info --warning-mode all

# Create a release using GitHub
release: doc build
	@echo "drag drop file"
	open build/libs/
	open build/distributions/
	open -a "Google Chrome" https://github.com/serpapi/serpapi-java/releases
