File tree 4 files changed +24
-34
lines changed
4 files changed +24
-34
lines changed Original file line number Diff line number Diff line change 1
- # These are supported funding model platforms
2
-
3
- github : # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4
1
patreon : xiaopangxie732
5
2
custom : ['https://afdian.net/@MPSCreation']
Original file line number Diff line number Diff line change 1
- # This workflow will build a Java project with Maven
2
- # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
3
-
4
1
name : Java CI with Maven
5
2
6
3
on :
7
4
push :
8
- branches : [ master ]
9
5
paths-ignore :
10
6
- README.md
11
7
- LICENSE
15
11
- src/test/resources
16
12
- decompiler
17
13
14
+ permissions :
15
+ packages : write
16
+
18
17
jobs :
19
18
build :
20
19
runs-on : ubuntu-latest
21
20
steps :
22
- - uses : actions/checkout@v2.3.4
21
+ - uses : actions/checkout@v2.4.0
23
22
- name : Set up JDK
24
- uses : actions/setup-java@v1.4.3
23
+ uses : actions/setup-java@v2.5.0
25
24
with :
26
- java-version : 16
27
- architecture : x64
28
- server-id : github
29
- settings-path : ${{ github.workspace }}
30
- - name : Build with Maven and deploy to GitHub Packages
31
- run : mvn -B clean deploy --file pom.xml -s $GITHUB_WORKSPACE/settings.xml
32
- env :
33
- GITHUB_TOKEN : ${{ github.token }}
25
+ java-version : 17.0.1
26
+ distribution : temurin
27
+ cache : ' maven'
28
+ - name : Build with Maven
29
+ run : mvn -B clean package
34
30
- name : Upload target
35
31
if : success()
36
32
uses : actions/upload-artifact@v2
37
33
with :
38
34
name : MinecraftDecompiler
39
35
path : MinecraftDecompiler.jar
36
+ - name : Deploy to GitHub Packages
37
+ run : mvn -B deploy
38
+ env :
39
+ GITHUB_TOKEN : ${{ github.token }}
Original file line number Diff line number Diff line change 1
- # This workflow will build a Java project with Maven
2
- # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
1
+ name : PR Check
3
2
4
- name : PR check
5
-
6
- on :
7
- pull_request :
8
- branches : [ master ]
3
+ on : pull_request
9
4
10
5
jobs :
11
6
build :
12
7
runs-on : ubuntu-latest
13
8
steps :
14
- - uses : actions/checkout@v2.3.4
9
+ - uses : actions/checkout@v2.4.0
15
10
- name : Set up JDK
16
- uses : actions/setup-java@v1.4.3
11
+ uses : actions/setup-java@v2.5.0
17
12
with :
18
- java-version : 16
19
- architecture : x64
13
+ java-version : 17.0.1
14
+ distribution : temurin
15
+ cache : ' maven'
20
16
- name : Build with Maven
21
- run : mvn -B clean package --file pom.xml
17
+ run : mvn -B clean package
Original file line number Diff line number Diff line change 51
51
<version >3.8.1</version >
52
52
<configuration >
53
53
<encoding >UTF-8</encoding >
54
- <source >16 </source >
55
- <target >16 </target >
54
+ <source >17 </source >
55
+ <target >17 </target >
56
56
</configuration >
57
57
</plugin >
58
58
<plugin >
59
59
<groupId >org.apache.maven.plugins</groupId >
60
60
<artifactId >maven-shade-plugin</artifactId >
61
61
<version >3.3.0-SNAPSHOT</version >
62
62
<configuration >
63
- <!-- This config defaults to true, but it never generate a dependency reduced pom before. -->
64
- <!-- In recent days, I found dependency reduced pom is generated when building. -->
65
- <!-- After looking through the source of maven shade plugin, I found this config defaults to true. -->
66
63
<createDependencyReducedPom >false</createDependencyReducedPom >
67
64
<transformers >
68
65
<transformer implementation =" org.apache.maven.plugins.shade.resource.ManifestResourceTransformer" >
You can’t perform that action at this time.
0 commit comments