Skip to content

Commit 95d4f8c

Browse files
committed
Add CI workflow, Fix compile issues
1 parent 0f8d7bc commit 95d4f8c

File tree

4 files changed

+30
-9
lines changed

4 files changed

+30
-9
lines changed

.github/workflows/build.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
16+
- name: Set up JDK
17+
uses: actions/setup-java@v4
18+
with:
19+
distribution: 'temurin'
20+
java-version: 17
21+
cache: 'gradle'
22+
23+
- name: Grant execute permission for gradlew
24+
run: chmod +x gradlew
25+
26+
- name: Build
27+
run: ./gradlew eternaleconomy-core:shadowJar

buildSrc/src/main/kotlin/economy-repositories.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ repositories {
1212
maven("https://storehouse.okaeri.eu/repository/maven-public/")
1313
maven("https://jitpack.io")
1414
maven("https://repo.extendedclip.com/content/repositories/placeholderapi/")
15+
maven("https://s01.oss.sonatype.org/content/repositories/snapshots/")
1516
}

eternaleconomy-core/src/main/java/com/eternalcode/economy/database/AbstractRepositoryOrmLite.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ protected <T, ID, R> CompletableFuture<R> action(
5555
ThrowingFunction<Dao<T, ID>, R, SQLException> action) {
5656
CompletableFuture<R> completableFuture = new CompletableFuture<>();
5757

58-
this.scheduler.async(() -> {
58+
this.scheduler.runAsync(() -> {
5959
Dao<T, ID> dao = this.databaseManager.getDao(type);
6060

6161
try {

settings.gradle.kts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
/*
2-
* This file was generated by the Gradle 'init' task.
3-
*
4-
* The settings file is used to specify which projects to include in your build.
5-
* For more detailed information on multi-project builds, please refer to https://docs.gradle.org/8.8/userguide/multi_project_builds.html in the Gradle documentation.
6-
* This project uses @Incubating APIs which are subject to change.
7-
*/
8-
91
rootProject.name = "EternalEconomy"
2+
103
include("eternaleconomy-core")
114
include("eternaleconomy-api")

0 commit comments

Comments
 (0)