Skip to content

Commit b63eee2

Browse files
committed
Initial commit
0 parents  commit b63eee2

File tree

19 files changed

+1145
-0
lines changed

19 files changed

+1145
-0
lines changed

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[*]
2+
charset = utf-8
3+
end_of_line = lf
4+
insert_final_newline = true
5+
indent_style = space
6+
indent_size = 4
7+
8+
[*.bat]
9+
end_of_line = crlf

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "gradle"
4+
directory: "/"
5+
schedule:
6+
interval: "monthly"
7+
open-pull-requests-limit: 5

.github/workflows/gradle.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
6+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
7+
8+
name: Java CI with Gradle
9+
10+
on:
11+
push:
12+
branches: [ "master" ]
13+
14+
jobs:
15+
build:
16+
17+
runs-on: ubuntu-latest
18+
permissions:
19+
contents: read
20+
21+
steps:
22+
- uses: actions/checkout@v4
23+
- name: Set up JDK 17
24+
uses: actions/setup-java@v4
25+
with:
26+
java-version: '17'
27+
distribution: 'temurin'
28+
29+
# Configure Gradle for optimal use in GitHub Actions, including caching of downloaded dependencies.
30+
# See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md
31+
- name: Make gradlew executable
32+
run: chmod +x ./gradlew
33+
34+
- name: Setup Gradle
35+
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0
36+
37+
- name: Build with Gradle Wrapper
38+
run: ./gradlew build
39+
40+
- name: Publish artifact
41+
uses: actions/upload-artifact@v3
42+
with:
43+
name: FlappyBird
44+
path: 'build/libs/FlappyBird *.jar'

.gitignore

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
##############################
2+
## Java
3+
##############################
4+
.mtj.tmp/
5+
*.class
6+
*.jar
7+
*.war
8+
*.ear
9+
*.nar
10+
hs_err_pid*
11+
replay_pid*
12+
13+
##############################
14+
## Maven
15+
##############################
16+
target/
17+
pom.xml.tag
18+
pom.xml.releaseBackup
19+
pom.xml.versionsBackup
20+
pom.xml.next
21+
pom.xml.bak
22+
release.properties
23+
dependency-reduced-pom.xml
24+
buildNumber.properties
25+
.mvn/timing.properties
26+
.mvn/wrapper/maven-wrapper.jar
27+
28+
##############################
29+
## Gradle
30+
##############################
31+
bin/
32+
build/
33+
.gradle
34+
.gradletasknamecache
35+
gradle-app.setting
36+
!gradle-wrapper.jar
37+
38+
##############################
39+
## IntelliJ
40+
##############################
41+
out/
42+
.idea/
43+
.idea_modules/
44+
*.iml
45+
*.ipr
46+
*.iws
47+
48+
##############################
49+
## Eclipse
50+
##############################
51+
.settings/
52+
bin/
53+
tmp/
54+
.metadata
55+
.classpath
56+
.project
57+
*.tmp
58+
*.bak
59+
*.swp
60+
*~.nib
61+
local.properties
62+
.loadpath
63+
.factorypath
64+
65+
##############################
66+
## NetBeans
67+
##############################
68+
nbproject/private/
69+
build/
70+
nbbuild/
71+
dist/
72+
nbdist/
73+
nbactions.xml
74+
nb-configuration.xml
75+
76+
##############################
77+
## Visual Studio Code
78+
##############################
79+
.vscode/
80+
.code-workspace
81+
82+
##############################
83+
## OS X
84+
##############################
85+
.DS_Store
86+
87+
##############################
88+
## Others
89+
##############################
90+
.env

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 neziw
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

assets/HEADER.txt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*
2+
* This file is part of "FlappyBird", licensed under MIT License.
3+
*
4+
* Copyright (c) 2024 neziw
5+
*
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in all
14+
* copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
* SOFTWARE.
23+
*/

build.gradle.kts

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
plugins {
2+
id("java")
3+
id("checkstyle")
4+
}
5+
6+
group = "ovh.neziw"
7+
version = "1.0.0"
8+
9+
tasks.withType<JavaCompile> {
10+
options.compilerArgs = listOf("-Xlint:deprecation")
11+
options.encoding = "UTF-8"
12+
}
13+
14+
tasks.withType<Jar> {
15+
manifest {
16+
attributes["Main-Class"] = "ovh.neziw.flappybird.FlappyBirdGame"
17+
}
18+
}
19+
20+
java {
21+
sourceCompatibility = JavaVersion.VERSION_17
22+
targetCompatibility = JavaVersion.VERSION_17
23+
}
24+
25+
checkstyle {
26+
toolVersion = "10.17.0"
27+
maxWarnings = 0
28+
}
29+
30+
repositories {
31+
gradlePluginPortal()
32+
mavenCentral()
33+
mavenLocal()
34+
}

0 commit comments

Comments
 (0)