Skip to content

Commit e0282e8

Browse files
author
Patrick Koss
committed
java make run
1 parent 5e73eec commit e0282e8

File tree

10 files changed

+36
-4
lines changed

10 files changed

+36
-4
lines changed

java/cursor-simple/.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,6 @@ bin/
3939
.vscode/
4040

4141
### Mac OS ###
42-
.DS_Store
42+
.DS_Store
43+
44+
./accounts.db

java/cursor-simple/Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
run: build
2+
./gradlew run
3+
4+
.PHONY: build
5+
build:
6+
./gradlew build
7+
8+
test:
9+
./gradlew test

java/cursor-simple/accounts.db

-20 KB
Binary file not shown.

java/cursor-simple/build.gradle.kts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
plugins {
22
id("java")
3+
application
34
}
45

56
group = "org.lecture"
@@ -17,4 +18,8 @@ dependencies {
1718

1819
tasks.test {
1920
useJUnitPlatform()
20-
}
21+
}
22+
23+
application {
24+
mainClass.set("org.lecture.Main")
25+
}

java/cursor-simple/gradlew

100644100755
File mode changed.

java/repository-simple/.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,6 @@ bin/
3939
.vscode/
4040

4141
### Mac OS ###
42-
.DS_Store
42+
.DS_Store
43+
44+
./accounts.db

java/repository-simple/Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
run: build
2+
./gradlew run
3+
4+
.PHONY: build
5+
build:
6+
./gradlew build
7+
8+
test:
9+
./gradlew test

java/repository-simple/accounts.db

-12 KB
Binary file not shown.

java/repository-simple/build.gradle.kts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
plugins {
22
id("java")
3+
application
34
}
45

56
group = "org.lecture"
@@ -17,4 +18,8 @@ dependencies {
1718

1819
tasks.test {
1920
useJUnitPlatform()
20-
}
21+
}
22+
23+
application {
24+
mainClass.set("org.lecture.Main")
25+
}

java/repository-simple/gradlew

100644100755
File mode changed.

0 commit comments

Comments
 (0)