File tree Expand file tree Collapse file tree 2 files changed +31
-2
lines changed Expand file tree Collapse file tree 2 files changed +31
-2
lines changed Original file line number Diff line number Diff line change 81
81
echo "${{ secrets.GPG_OWNERTRUST }}" | base64 --decode | gpg2 --import-ownertrust
82
82
export GPG_TTY=$(tty)
83
83
export GPG_EXECUTABLE=gpg2
84
+ - name : Write .m2/settings.xml 💾
85
+ run : |
86
+ mkdir -p ~/.m2
87
+ cat <<EOF > ~/.m2/settings.xml
88
+ <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
89
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
90
+ xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
91
+ <servers>
92
+ <server>
93
+ <id>maven</id>
94
+ <username>${{ secrets.SONATYPE_USERNAME }}</username>
95
+ <password>${{ secrets.SONATYPE_PASSWORD }}</password>
96
+ </server>
97
+ </servers>
98
+ </settings>
99
+ EOF
84
100
- name : Update pom.xml version 💾
85
101
run : |
86
102
mvn versions:set -DnewVersion=${{ needs.bump.outputs.major_version }}.${{ needs.bump.outputs.minor_version }}.${{ needs.bump.outputs.build_version }} -DgenerateBackupPoms=false
Original file line number Diff line number Diff line change 93
93
</dependencies >
94
94
95
95
<build >
96
- <!-- <pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId>
97
- <artifactId>maven-shade-plugin</artifactId> ... </plugin> </plugins> </pluginManagement> -->
98
96
<pluginManagement >
99
97
<plugins >
98
+ <plugin >
99
+ <groupId >org.sonatype.central</groupId >
100
+ <artifactId >central-publishing-maven-plugin</artifactId >
101
+ <version >0.7.0</version >
102
+ <extensions >true</extensions >
103
+ <configuration >
104
+ <publishingServerId >${repos.id} </publishingServerId >
105
+ <autoPublish >true</autoPublish >
106
+ <waitUntil >published</waitUntil >
107
+ </configuration >
108
+ </plugin >
100
109
<plugin >
101
110
<groupId >org.apache.maven.plugins</groupId >
102
111
<artifactId >maven-source-plugin</artifactId >
407
416
<plugin >
408
417
<artifactId >maven-jar-plugin</artifactId >
409
418
</plugin >
419
+ <plugin >
420
+ <groupId >org.sonatype.central</groupId >
421
+ <artifactId >central-publishing-maven-plugin</artifactId >
422
+ </plugin >
410
423
<plugin >
411
424
<groupId >com.google.code.maven-replacer-plugin</groupId >
412
425
<artifactId >replacer</artifactId >
You can’t perform that action at this time.
0 commit comments