Skip to content

Commit

Permalink
run all build steps by default
Browse files Browse the repository at this point in the history
  • Loading branch information
tomcz committed Dec 12, 2023
1 parent c7722a2 commit e7098cd
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 16 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ test.txt
build
out
.idea/
gradle.properties
.classpath
.project
.settings/
Expand Down
19 changes: 6 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,12 @@
GIT_TAG := $(shell git describe --tags 2>/dev/null)

.PHONY: all
all: clean test build-jar

.PHONY: build-jar
build-jar: clean
./gradlew --console plain -Pversion=${GIT_TAG} shadowJar
ifeq "${GIT_TAG}" ""
GIT_TAG := dev
endif

.PHONY: clean
clean:
./gradlew --console plain clean

.PHONY: test
test:
./gradlew --console plain test
.PHONY: all
all:
./gradlew --console plain -Pversion=${GIT_TAG}

.PHONY: deps
deps:
Expand Down
6 changes: 4 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ repositories {
mavenCentral()
}

defaultTasks 'clean', 'test', 'build', 'shadowJar'

mainClassName = 'com.tomczarniecki.jpasskeep.Main'

dependencies {
implementation 'org.jdom:jdom:1.1.3'
implementation 'com.jgoodies:forms:1.2.1'
Expand All @@ -19,5 +23,3 @@ dependencies {
implementation 'net.sf.opencsv:opencsv:2.3'
testImplementation 'junit:junit:4.10'
}

mainClassName = 'com.tomczarniecki.jpasskeep.Main'
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.gradle.daemon=false

0 comments on commit e7098cd

Please sign in to comment.