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 Application
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 : ~/.gradle/caches
32+ key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
33+ restore-keys : |
34+ ${{ runner.os }}-gradle-
35+
36+ - name : Build with Gradle
37+ run : ./gradlew build
38+
39+ - name : Upload build artifacts
40+ uses : actions/upload-artifact@v4
41+ with :
42+ name : all-modules
43+ 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 @@ -191,34 +191,31 @@ Place the plugin of the appropriate version in the `plugins` folder.
191191
192192Repository:
193193``` xml
194- <repositories >
195- <repository >
196- <id >jitpack.io</id >
197- <url >https://jitpack.io</url >
198- </repository >
199- </repositories >
194+ <repository >
195+ <id >luminiadev-repository-releases</id >
196+ <url >https://repo.luminiadev.com/releases</url >
197+ </repository >
200198```
201199
202200Dependency
203201``` xml
204202<dependency >
205- <groupId >com.github.MEFRREEX </groupId >
206- <artifactId >FormConstructor </artifactId >
207- <version >TAG </version >
203+ <groupId >com.mefrreex.formconstructor </groupId >
204+ <artifactId >formconstructor </artifactId >
205+ <version >3.1.0 </version >
208206</dependency >
209207```
210208
211209### Gradle
212210
213211Repository:
214212``` groovy
215- repositories {
216- mavenCentral()
217- maven { url ' https://jitpack.io' }
213+ maven {
214+ name "luminiadevRepositoryReleases"
215+ url " https://repo.luminiadev.com/releases"
218216}
219217```
220218Dependency:
221219``` groovy
222- dependencies {
223- implementation 'com.github.MEFRREEX:FormConstructor:TAG'
224- }
220+ implementation "com.mefrreex.formconstructor:formconstructor:3.1.0"
221+ ```
Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ repositories {
1919
2020dependencies {
2121 compileOnly(" cn.nukkit:Nukkit:MOT-SNAPSHOT" )
22- compileOnly(" org.projectlombok:lombok:1.18.32 " )
23- annotationProcessor(" org.projectlombok:lombok:1.18.32 " )
22+ compileOnly(" org.projectlombok:lombok:1.18.36 " )
23+ annotationProcessor(" org.projectlombok:lombok:1.18.36 " )
2424}
2525
2626tasks.withType<JavaCompile > {
@@ -41,9 +41,19 @@ publishing {
4141 publications {
4242 create<MavenPublication >(" maven" ) {
4343 groupId = project.group.toString()
44- artifactId = project.name
44+ artifactId = project.name.lowercase()
4545 version = project.version.toString()
4646 from(components[" java" ])
4747 }
4848 }
49+ repositories {
50+ maven {
51+ name = " luminiadev"
52+ url = uri(" https://repo.luminiadev.com/releases" )
53+ credentials {
54+ username = System .getenv(" MAVEN_USERNAME" )
55+ password = System .getenv(" MAVEN_PASSWORD" )
56+ }
57+ }
58+ }
4959}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments