File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Build Project
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ pull_request :
8+ branches :
9+ - master
10+
11+ jobs :
12+ build :
13+ runs-on : ubuntu-latest
14+
15+ steps :
16+ - name : Checkout code
17+ uses : actions/checkout@v4
18+
19+ - name : Set up JDK
20+ uses : actions/setup-java@v4
21+ with :
22+ distribution : ' temurin'
23+ java-version : 17
24+
25+ - name : Grant permissions
26+ run : chmod +x ./gradlew
27+
28+ - name : Cache Gradle dependencies
29+ uses : actions/cache@v4
30+ with :
31+ path : |
32+ ~/.gradle/caches
33+ ~/.gradle/wrapper
34+ key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
35+ restore-keys : |
36+ ${{ runner.os }}-gradle-
37+
38+ - name : Build with Gradle
39+ run : ./gradlew build
40+
41+ - name : Upload build artifacts
42+ uses : actions/upload-artifact@v4
43+ with :
44+ name : all-modules
45+ path : ' **/build/libs/*.jar'
Original file line number Diff line number Diff line change 1+ name : Publish to Maven Repository
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+
8+ jobs :
9+ build-and-publish :
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - name : Checkout code
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+
22+ - name : Grant permissions
23+ run : chmod +x ./gradlew
24+
25+ - name : Cache Gradle dependencies
26+ uses : actions/cache@v4
27+ with :
28+ path : ~/.gradle/caches
29+ key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
30+ restore-keys : |
31+ ${{ runner.os }}-gradle-
32+
33+ - name : Build and publish
34+ run : ./gradlew publish
35+ env :
36+ MAVEN_USERNAME : ${{ secrets.MAVEN_USERNAME }}
37+ MAVEN_PASSWORD : ${{ secrets.MAVEN_PASSWORD }}
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ subprojects {
4242 repositories {
4343 maven {
4444 name = " luminiadev"
45- url = uri(" https://repo.luminiadev.com/private " )
45+ url = uri(" https://repo.luminiadev.com/snapshots " )
4646 credentials {
4747 username = System .getenv(" MAVEN_USERNAME" )
4848 password = System .getenv(" MAVEN_PASSWORD" )
You can’t perform that action at this time.
0 commit comments