Skip to content

Commit

Permalink
Merge pull request #1 from aivruu/refactor/rework-with-ddd
Browse files Browse the repository at this point in the history
Refactor: Improve plugin's code structure, quality and scalability (with DDD, first implementation).
  • Loading branch information
aivruu authored Dec 28, 2024
2 parents 2f199a4 + 49828e2 commit a82a5c1
Show file tree
Hide file tree
Showing 112 changed files with 3,709 additions and 1,921 deletions.
10 changes: 7 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ root = true
charset = utf-8
indent_size = 2
indent_style = space
max_line_length = off
max_line_length = 121

ij_java_class_count_to_use_import_on_demand = 10
ij_java_continuation_indent_size = 2
ij_continuation_indent_size = 2
ij_java_class_count_to_use_import_on_demand = 999999
ij_java_insert_inner_class_imports = false
ij_java_names_count_to_use_import_on_demand = 999999
ij_java_generate_final_locals = true
ij_java_generate_final_parameters = true
9 changes: 0 additions & 9 deletions .gitattributes

This file was deleted.

51 changes: 20 additions & 31 deletions .github/workflows/build.yml
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
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,5 @@
# Ignore Gradle build output directory
build

# Ignore IDE project settings directory.
.idea

bin

.log
2 changes: 0 additions & 2 deletions README.md

This file was deleted.

15 changes: 1 addition & 14 deletions api/build.gradle.kts
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)
}
81 changes: 0 additions & 81 deletions api/src/main/java/com/aivruu/homes/Homes.java

This file was deleted.

This file was deleted.

26 changes: 0 additions & 26 deletions api/src/main/java/com/aivruu/homes/config/model/ConfigModel.java

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit a82a5c1

Please sign in to comment.