From 62112e5161cbec2261856deeb83d6effa6ee33c5 Mon Sep 17 00:00:00 2001 From: nka21 Date: Fri, 22 Aug 2025 16:21:39 +0000 Subject: [PATCH 1/5] =?UTF-8?q?chore:=20`ktlint-maven-plugin`=20=E3=83=95?= =?UTF-8?q?=E3=82=A9=E3=83=BC=E3=83=9E=E3=83=83=E3=83=88=E3=82=92=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/pom.xml b/pom.xml index 9db6d42..1340aec 100644 --- a/pom.xml +++ b/pom.xml @@ -57,11 +57,28 @@ org.apache.maven.plugins maven-compiler-plugin + 3.11.0 ${java.version} ${java.version} + + + com.github.gantsign.maven + ktlint-maven-plugin + 3.5.0 + + + format-and-check + process-sources + + format + check + + + + \ No newline at end of file From 4ef6600b2ea67f1fe6bfd4d8a165b1f20e0c4fae Mon Sep 17 00:00:00 2001 From: nka21 Date: Fri, 22 Aug 2025 16:21:49 +0000 Subject: [PATCH 2/5] =?UTF-8?q?style:=20=E3=83=95=E3=82=A9=E3=83=BC?= =?UTF-8?q?=E3=83=9E=E3=83=83=E3=83=88=E3=82=92=E9=81=A9=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/kotlin/com/pool25m/logtime/LogTimePlugin.kt | 2 +- src/main/kotlin/com/pool25m/logtime/RankingCommand.kt | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/main/kotlin/com/pool25m/logtime/LogTimePlugin.kt b/src/main/kotlin/com/pool25m/logtime/LogTimePlugin.kt index e798c81..e53fa91 100644 --- a/src/main/kotlin/com/pool25m/logtime/LogTimePlugin.kt +++ b/src/main/kotlin/com/pool25m/logtime/LogTimePlugin.kt @@ -12,4 +12,4 @@ class LogTimePlugin : JavaPlugin() { override fun onDisable() { logger.info("LogTime Plugin has been disabled.") } -} \ No newline at end of file +} diff --git a/src/main/kotlin/com/pool25m/logtime/RankingCommand.kt b/src/main/kotlin/com/pool25m/logtime/RankingCommand.kt index d1ff784..b942fd7 100644 --- a/src/main/kotlin/com/pool25m/logtime/RankingCommand.kt +++ b/src/main/kotlin/com/pool25m/logtime/RankingCommand.kt @@ -5,9 +5,14 @@ import org.bukkit.command.CommandExecutor import org.bukkit.command.CommandSender class RankingCommand : CommandExecutor { - override fun onCommand(sender: CommandSender, command: Command, label: String, args: Array): Boolean { + override fun onCommand( + sender: CommandSender, + command: Command, + label: String, + args: Array, + ): Boolean { sender.sendMessage("LogTime plugin is working!") - + return true } -} \ No newline at end of file +} From 9a5e8adb73108b6eb3a1a67d4fdf0e571b15efb0 Mon Sep 17 00:00:00 2001 From: nka21 Date: Fri, 22 Aug 2025 16:23:26 +0000 Subject: [PATCH 3/5] =?UTF-8?q?add:=20Github=20Action=20CI=E3=82=92?= =?UTF-8?q?=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..c824dfe --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,28 @@ +name: Build and Format Check + +on: + pull_request: + branches: ["main"] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + java-version: "17" + distribution: "temurin" + + - name: Cache Maven packages + uses: actions/cache@v4 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ runner.os }}-maven- + + - name: Build & Format Check with Maven + run: mvn -B verify \ No newline at end of file From 561ea710ff57089e6e5def75678d26257935617f Mon Sep 17 00:00:00 2001 From: nka21 Date: Fri, 22 Aug 2025 16:25:48 +0000 Subject: [PATCH 4/5] =?UTF-8?q?add:=20release=E7=94=A8=E3=81=AE=E3=83=AF?= =?UTF-8?q?=E3=83=BC=E3=82=AF=E3=83=95=E3=83=AD=E3=83=BC=E3=82=92=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..49db933 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,35 @@ +name: Release Plugin + +on: + push: + tags: + - "v*.*.*" + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + java-version: "17" + distribution: "temurin" + + - name: Cache Maven packages + uses: actions/cache@v4 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ runner.os }}-maven- + + - name: Build with Maven + run: mvn -B package -DskipTests + + - name: Create Release and Upload Artifact + uses: softprops/action-gh-release@v1 + with: + generate_release_notes: true + files: target/*.jar \ No newline at end of file From 7b0c91469938052f079da46db90781f25bbb609e Mon Sep 17 00:00:00 2001 From: nka21 Date: Sat, 23 Aug 2025 01:33:19 +0900 Subject: [PATCH 5/5] =?UTF-8?q?fix:=20build=E7=94=A8=E3=81=AE=E3=83=AF?= =?UTF-8?q?=E3=83=BC=E3=82=AF=E3=83=95=E3=83=AD=E3=83=BC=E3=81=AE=E8=AA=BF?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c824dfe..302e245 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,6 +16,11 @@ jobs: java-version: "17" distribution: "temurin" + - name: Set up Maven + uses: stCarolas/setup-maven@v4.5 + with: + maven-version: "3.9.5" + - name: Cache Maven packages uses: actions/cache@v4 with: