Skip to content

Commit e15df1b

Browse files
committed
build: 👷 migrate project from Maven to Gradle and update build configuration
1 parent 7565b4e commit e15df1b

File tree

16 files changed

+731
-93
lines changed

16 files changed

+731
-93
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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: [ "main" ]
13+
pull_request:
14+
branches: [ "main" ]
15+
16+
jobs:
17+
build:
18+
19+
runs-on: ubuntu-latest
20+
permissions:
21+
contents: read
22+
23+
steps:
24+
- uses: actions/checkout@v5
25+
with:
26+
fetch-depth: 0 # full history
27+
fetch-tags: true # grab your tags
28+
# Make sure we check out by branch name, not just SHA:
29+
ref: ${{ github.event_name == 'pull_request' && github.head_ref || github.ref_name }}
30+
31+
- name: Set up JDK 21
32+
uses: actions/setup-java@v5
33+
with:
34+
java-version: '21'
35+
distribution: 'temurin'
36+
37+
# Configure Gradle for optimal use in GitHub Actions, including caching of downloaded dependencies.
38+
# See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md
39+
- name: Setup Gradle
40+
uses: gradle/actions/setup-gradle@v4
41+
42+
- name: Build with Gradle Wrapper
43+
run: ./gradlew clean build
44+
45+
- uses: actions/upload-artifact@v4
46+
with:
47+
name: Staging-Build
48+
path: build/libs
49+
compression-level: '9'

‎.github/workflows/maven-build.yml‎

Lines changed: 0 additions & 38 deletions
This file was deleted.

‎.gitignore‎

Lines changed: 179 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,184 @@
1-
# Compiled class file
2-
*.class
3-
4-
# Log file
5-
*.log
6-
7-
# BlueJ files
8-
*.ctxt
9-
10-
# Mobile Tools for Java (J2ME)
11-
.mtj.tmp/
12-
13-
# Package Files #
14-
*.jar
15-
*.war
16-
*.nar
17-
*.ear
18-
*.zip
19-
*.tar.gz
20-
*.rar
21-
*.xml
1+
# Created by https://www.toptal.com/developers/gitignore/api/intellij,gradle,maven
2+
# Edit at https://www.toptal.com/developers/gitignore?templates=intellij,gradle,maven
3+
4+
### Intellij ###
5+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
6+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
7+
8+
# User-specific stuff
9+
.idea/**/workspace.xml
10+
.idea/**/tasks.xml
11+
.idea/**/usage.statistics.xml
12+
.idea/**/dictionaries
13+
.idea/**/shelf
14+
15+
# AWS User-specific
16+
.idea/**/aws.xml
17+
18+
# Generated files
19+
.idea/**/contentModel.xml
20+
21+
# Sensitive or high-churn files
22+
.idea/**/dataSources/
23+
.idea/**/dataSources.ids
24+
.idea/**/dataSources.local.xml
25+
.idea/**/sqlDataSources.xml
26+
.idea/**/dynamic.xml
27+
.idea/**/uiDesigner.xml
28+
.idea/**/dbnavigator.xml
29+
30+
# Gradle
31+
.idea/**/gradle.xml
32+
.idea/**/libraries
33+
34+
# Gradle and Maven with auto-import
35+
# When using Gradle or Maven with auto-import, you should exclude module files,
36+
# since they will be recreated, and may cause churn. Uncomment if using
37+
# auto-import.
38+
.idea/artifacts
39+
.idea/compiler.xml
40+
.idea/jarRepositories.xml
41+
.idea/modules.xml
42+
.idea/*.iml
43+
.idea/modules
2244
*.iml
45+
*.ipr
2346

24-
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
25-
hs_err_pid*
47+
# CMake
48+
cmake-build-*/
2649

27-
# Maven
28-
.classpath
29-
.project
30-
.settings/
50+
# Mongo Explorer plugin
51+
.idea/**/mongoSettings.xml
52+
53+
# File-based project format
54+
*.iws
55+
56+
# IntelliJ
57+
out/
58+
59+
# mpeltonen/sbt-idea plugin
60+
.idea_modules/
61+
62+
# JIRA plugin
63+
atlassian-ide-plugin.xml
64+
65+
# Cursive Clojure plugin
66+
.idea/replstate.xml
67+
68+
### Intellij Patch ###
69+
# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721
70+
71+
.idea/misc.xml
72+
# *.ipr
73+
74+
# SonarLint plugin
75+
.idea/sonarlint/
76+
77+
# Crashlytics plugin (for Android Studio and IntelliJ)
78+
com_crashlytics_export_strings.xml
79+
crashlytics.properties
80+
crashlytics-build.properties
81+
fabric.properties
82+
83+
# Editor-based Rest Client
84+
.idea/httpRequests
85+
86+
# Android studio 3.1+ serialized cache file
87+
.idea/caches/build_file_checksums.ser
88+
89+
# Sonarlint plugin
90+
# https://plugins.jetbrains.com/plugin/7973-sonarlint
91+
.idea/**/sonarlint/
92+
93+
# SonarQube Plugin
94+
# https://plugins.jetbrains.com/plugin/7238-sonarqube-community-plugin
95+
.idea/**/sonarIssues.xml
96+
97+
# Markdown Navigator plugin
98+
# https://plugins.jetbrains.com/plugin/7896-markdown-navigator-enhanced
99+
.idea/**/markdown-navigator.xml
100+
.idea/**/markdown-navigator-enh.xml
101+
.idea/**/markdown-navigator/
102+
103+
# Cache file creation bug
104+
# See https://youtrack.jetbrains.com/issue/JBR-2257
105+
.idea/$CACHE_FILE$
106+
107+
# CodeStream plugin
108+
# https://plugins.jetbrains.com/plugin/12206-codestream
109+
.idea/codestream.xml
110+
111+
# Azure Toolkit for IntelliJ plugin
112+
# https://plugins.jetbrains.com/plugin/8053-azure-toolkit-for-intellij
113+
.idea/**/azureSettings.xml
114+
115+
### Maven ###
31116
target/
117+
pom.xml.tag
118+
pom.xml.releaseBackup
119+
pom.xml.versionsBackup
120+
pom.xml.next
121+
release.properties
122+
dependency-reduced-pom.xml
123+
buildNumber.properties
124+
.mvn/timing.properties
125+
# https://github.com/takari/maven-wrapper#usage-without-binary-jar
126+
.mvn/wrapper/maven-wrapper.jar
127+
128+
# Eclipse m2e generated files
129+
# Eclipse Core
130+
.project
131+
# JDT-specific (Eclipse Java Development Tools)
132+
.classpath
133+
134+
### Gradle ###
135+
.gradle
136+
**/build/
137+
!src/**/build/
138+
139+
# Ignore Gradle GUI config
140+
gradle-app.setting
141+
142+
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
143+
!gradle-wrapper.jar
144+
145+
# Avoid ignore Gradle wrappper properties
146+
!gradle-wrapper.properties
147+
148+
# Cache of project
149+
.gradletasknamecache
150+
151+
# Eclipse Gradle plugin generated files
152+
# Eclipse Core
153+
# JDT-specific (Eclipse Java Development Tools)
154+
155+
### Gradle Patch ###
156+
# Java heap dump
157+
*.hprof
158+
159+
# End of https://www.toptal.com/developers/gitignore/api/intellij,gradle,maven
160+
161+
# Created by https://www.toptal.com/developers/gitignore/api/git
162+
# Edit at https://www.toptal.com/developers/gitignore?templates=git
163+
164+
### Git ###
165+
# Created by git for backups. To disable backups in Git:
166+
# $ git config --global mergetool.keepBackup false
167+
*.orig
168+
169+
# Created by git when using merge tools for conflicts
170+
*.BACKUP.*
171+
*.BASE.*
172+
*.LOCAL.*
173+
*.REMOTE.*
174+
*_BACKUP_*.txt
175+
*_BASE_*.txt
176+
*_LOCAL_*.txt
177+
*_REMOTE_*.txt
178+
179+
# End of https://www.toptal.com/developers/gitignore/api/git
180+
181+
# Custom
32182

33-
# .idea
34-
.idea/
183+
/.idea/git_toolbox_prj.xml
184+
/.idea/.name

‎.idea/copyright/profiles_settings.xml‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.idea/scopes/Java.xml‎

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.idea/vcs.xml‎

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)