-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from aivruu/refactor/rework-with-ddd
Refactor: Improve plugin's code structure, quality and scalability (with DDD, first implementation).
- Loading branch information
Showing
112 changed files
with
3,709 additions
and
1,921 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,36 @@ | ||
name: build | ||
on: | ||
push: | ||
# Perform this workflow if the action is a 'push' and just in the 'main' branch. | ||
branches: [main] | ||
# Execute this job if the action is a 'push' onto current branch | ||
branches: | ||
- main | ||
pull_request: | ||
# Perform this workflow if the action is a 'pull_request' and just in the 'main' branch. | ||
branches: [main] | ||
# Execute this job if the action is a 'pull_request'. | ||
branches: | ||
- main | ||
jobs: | ||
build: | ||
# We want to run this job on ubuntu. | ||
# We want to run this job on latest ubuntu release. | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
java_version: [17] | ||
java_version: [ 21 ] | ||
|
||
# Steps to fire on this job. | ||
steps: | ||
# Do some checks for the repository. | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
|
||
# Validate the Gradle Wrapper. | ||
- name: Gradle Wrapper Validation | ||
uses: gradle/wrapper-validation-action@v1 | ||
|
||
# Setups the Java Version specified for this job. | ||
- name: Set up JDK ${{ matrix.java_version }} | ||
- name: checkout-repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: java-setup | ||
uses: actions/setup-java@v3 | ||
with: | ||
# We use Java 8 for this. | ||
# Use the release set on the matrix. | ||
java-version: ${{ matrix.java_version }} | ||
# We use the Azul Zulu distribution for the JDK. | ||
|
||
# Use the Azul-Zulu JDK distribution. | ||
distribution: zulu | ||
|
||
# Performs the project build. | ||
- name: Build plugin | ||
# Give permissions to perform the script execution. | ||
# And execute shadowJar script to compile project jars. | ||
run: | | ||
chmod +x gradlew | ||
./gradlew shadowJar | ||
|
||
- name: Cleanup Gradle Cache | ||
# Remove some files from the Gradle cache, so they aren't cached by GitHub Actions. | ||
# Restoring these files from a GitHub Actions cache might cause problems for future builds. | ||
- name: compile | ||
run: | | ||
rm -f ~/.gradle/caches/modules-2/modules-2.lock | ||
rm -f ~/.gradle/caches/modules-2/gc.properties | ||
chmod +x gradlew | ||
./gradlew build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,5 @@ | |
# Ignore Gradle build output directory | ||
build | ||
|
||
# Ignore IDE project settings directory. | ||
.idea | ||
|
||
bin | ||
|
||
.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,3 @@ | ||
plugins { | ||
id("homes.common-conventions") | ||
} | ||
|
||
dependencies { | ||
compileOnly(libs.paper) | ||
compileOnly(libs.configurate.gson) | ||
compileOnly(libs.mongo) | ||
} | ||
|
||
tasks { | ||
compileJava { | ||
options.encoding = "UTF-8" | ||
options.release = 17 | ||
} | ||
compileOnlyApi(libs.paper) | ||
} |
This file was deleted.
Oops, something went wrong.
47 changes: 0 additions & 47 deletions
47
api/src/main/java/com/aivruu/homes/config/ValueObjectConfigManager.java
This file was deleted.
Oops, something went wrong.
26 changes: 0 additions & 26 deletions
26
api/src/main/java/com/aivruu/homes/config/model/ConfigModel.java
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
api/src/main/java/com/aivruu/homes/config/model/HomesMenuConfigModel.java
This file was deleted.
Oops, something went wrong.
54 changes: 0 additions & 54 deletions
54
api/src/main/java/com/aivruu/homes/config/model/MessageConfigModel.java
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
api/src/main/java/com/aivruu/homes/config/model/SerializableConfigModel.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.