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 : Maven Package
2+
3+ on :
4+ release :
5+ types : [ created ]
6+
7+ jobs :
8+ Package :
9+ runs-on : ubuntu-latest
10+ permissions :
11+ contents : read
12+ packages : write
13+
14+ steps :
15+ - uses : actions/checkout@v2
16+ - name : Set up JDK 8
17+ uses : actions/setup-java@v2
18+ with :
19+ java-version : ' 8'
20+ distribution : ' adopt'
21+ server-id : github
22+ settings-path : ${{ github.workspace }}
23+
24+ - name : Create Package
25+ run : mvn -B package --file pom.xml
26+
27+ - name : Publish Package
28+ run : mvn deploy -e -s $GITHUB_WORKSPACE/settings.xml
29+ env :
30+ GITHUB_TOKEN : ${{ github.token }}
Original file line number Diff line number Diff line change 1- name : Maven build
1+ name : Maven Build
22
33on :
44 push :
@@ -11,10 +11,10 @@ jobs:
1111 runs-on : ubuntu-latest
1212 steps :
1313 - uses : actions/checkout@v2
14- - name : Set up JDK 15
14+ - name : Set up JDK 8
1515 uses : actions/setup-java@v2
1616 with :
17- java-version : ' 15 '
17+ java-version : ' 8 '
1818 distribution : ' adopt'
1919 - name : Build with Maven
2020 run : mvn -B package --file pom.xml
Original file line number Diff line number Diff line change 66
77 <groupId >com.github.alexsgi</groupId >
88 <artifactId >java-utils</artifactId >
9- <version >3.1 </version >
9+ <version >3.2 </version >
1010 <packaging >jar</packaging >
11-
1211 <name >JavaUtils</name >
1312
14- <build >
15- <plugins >
16- < plugin >
17- < groupId >org.apache.maven.plugins</ groupId >
18- < artifactId >maven-compiler-plugin</ artifactId >
19- < version >3.8.1</ version >
20- < configuration >
21- < source >1.8</ source >
22- < target >1.8</ target >
23- </ configuration >
24- </ plugin >
25- </plugins >
26- </build >
13+ <properties >
14+ <project .build.sourceEncoding>UTF-8</ project .build.sourceEncoding >
15+ < maven .compiler.source>1.8</ maven .compiler.source >
16+ < maven .compiler.target>1.8</ maven .compiler.target >
17+ </ properties >
18+
19+ < distributionManagement >
20+ < repository >
21+ < id >github</ id >
22+ < name >GitHub alexsgi Apache Maven Packages</ name >
23+ <url >https://maven.pkg.github.com/alexsgi/java-utils</ url >
24+ </repository >
25+ </distributionManagement >
2726
2827</project >
You can’t perform that action at this time.
0 commit comments