Skip to content

Commit 61d52dd

Browse files
committed
[0.9.0-SNAPSHOT]
CI and issue tempaltes added [0.9.0-SNAPSHOT] Spotless Java16+ support added [0.9.0-SNAPSHOT] .gitattributes binary fixed
1 parent 9e540d5 commit 61d52dd

File tree

7 files changed

+116
-23
lines changed

7 files changed

+116
-23
lines changed

.gitattributes

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -29,32 +29,32 @@
2929
# These files are binary and should be left untouched
3030
# (binary is a macro for -text -diff)
3131
# Archives
32-
*.7z -text filter=lfs diff=lfs merge=lfs
33-
*.br -text filter=lfs diff=lfs merge=lfs
34-
*.gz -text filter=lfs diff=lfs merge=lfs
35-
*.tar -text filter=lfs diff=lfs merge=lfs
36-
*.zip -text filter=lfs diff=lfs merge=lfs
37-
*.jar -text
38-
*.so -text
39-
*.war -text
40-
*.dll -text
32+
*.7z binary
33+
*.br binary
34+
*.gz binary
35+
*.tar binary
36+
*.zip binary
37+
*.jar binary
38+
*.so binary
39+
*.war binary
40+
*.dll binary
4141

4242
# Documents
43-
*.pdf -text filter=lfs diff=lfs merge=lfs
43+
*.pdf binary
4444

4545
# Images
46-
*.ico -text filter=lfs diff=lfs merge=lfs
47-
*.gif -text filter=lfs diff=lfs merge=lfs
48-
*.jpg -text filter=lfs diff=lfs merge=lfs
49-
*.jpeg -text filter=lfs diff=lfs merge=lfs
50-
*.png -text filter=lfs diff=lfs merge=lfs
51-
*.psd -text filter=lfs diff=lfs merge=lfs
52-
*.webp -text filter=lfs diff=lfs merge=lfs
46+
*.ico binary
47+
*.gif binary
48+
*.jpg binary
49+
*.jpeg binary
50+
*.png binary
51+
*.psd binary
52+
*.webp binary
5353

5454
# Fonts
55-
*.woff2 -text filter=lfs diff=lfs merge=lfs
55+
*.woff2 binary
5656

5757
# Other
58-
*.exe -text filter=lfs diff=lfs merge=lfs
58+
*.exe binary
5959
*.class binary
6060
*.ear binary

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: bug
6+
assignees: GoodforGod
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Additional context**
27+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: enhancement
6+
assignees: GoodforGod
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/workflows/gradle.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Java CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
- dev
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
java: [ '11', '17' ]
18+
name: Java ${{ matrix.java }} setup
19+
20+
steps:
21+
- uses: actions/checkout@v1
22+
- name: Set up JDK
23+
uses: actions/setup-java@v1
24+
25+
with:
26+
java-version: ${{ matrix.java }}
27+
28+
- name: Code Style
29+
run: ./gradlew spotlessCheck
30+
31+
- name: Build
32+
run: ./gradlew classes
33+
34+
- name: Test
35+
run: ./gradlew test jacocoTestReport
36+
37+
- name: SonarQube
38+
run: ./gradlew sonarqube
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ spotless {
4646
encoding("UTF-8")
4747
importOrder()
4848
removeUnusedImports()
49-
eclipse("4.21.0").configFile("${projectDir}/codestyle.xml")
49+
eclipse("4.21.0").configFile("${projectDir}/config/codestyle.xml")
5050
}
5151
}
5252

@@ -83,8 +83,8 @@ publishing {
8383
}
8484
repositories {
8585
maven {
86-
def releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2"
87-
def snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots/"
86+
def releasesRepoUrl = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2"
87+
def snapshotsRepoUrl = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
8888
url = version.endsWith("SNAPSHOT") ? snapshotsRepoUrl : releasesRepoUrl
8989
credentials {
9090
username System.getenv("OSS_USERNAME")
File renamed without changes.

gradle.properties

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,9 @@ org.gradle.daemon=true
88
org.gradle.parallel=true
99
org.gradle.configureondemand=true
1010
org.gradle.caching=true
11-
org.gradle.jvmargs=-Dfile.encoding=UTF-8
11+
org.gradle.jvmargs=-Dfile.encoding=UTF-8 \
12+
--add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED \
13+
--add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED \
14+
--add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED \
15+
--add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED \
16+
--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED

0 commit comments

Comments
 (0)