File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626 - name : Setup Gradle
2727 uses : gradle/actions/setup-gradle@v4
2828
29+ - name : Configure GPG Key
30+ run : |
31+ echo -n "${{ secrets.GPG_SIGNING_KEY }}" | base64 --decode > $HOME/secring.gpg
32+
2933 - name : Publish package
30- run : ./gradlew publish -Pversion=$VERSION
34+ run : ./gradlew publish -Pversion=$VERSION -Psigning.secretKeyRingFile="$HOME/secring.gpg" -Psigning.password="${{ secrets.GPG_SIGNING_KEY_PASSWORD }}" -Psigning.keyId="${{ secrets.GPG_SIGNING_KEY_ID }}" -PsonatypeUsername="${{ secrets.SONATYPE_USERNAME }}" -PsonatypePassword="${{ secrets.SONATYPE_PASSWORD }}
3135 env :
3236 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -22,16 +22,47 @@ configure(subprojects) {
2222 publications {
2323 create<MavenPublication >(" maven" ) {
2424 from(components[" java" ])
25+ pom {
26+ name.set(project.properties[" project_display_name" ].toString())
27+ description.set(project.properties[" project_description" ].toString())
28+ url.set(project.properties[" project_website" ].toString())
29+ issueManagement {
30+ system.set(" GitHub" )
31+ url.set(project.properties[" project_issues" ].toString())
32+ }
33+ scm {
34+ url.set(project.properties[" project_website" ].toString())
35+ connection.set(" scm:git:${project.properties[" project_vcs" ].toString()} " )
36+ developerConnection.set(" scm:git:${project.properties[" project_vcs_git" ].toString()} " )
37+ }
38+ licenses {
39+ license {
40+ name.set(" The MIT License (MIT)" )
41+ url.set(" http://www.opensource.org/licenses/mit-license.php" )
42+ distribution.set(" repo" )
43+ }
44+ }
45+ developers {
46+ developer {
47+ id.set(" Brutus5000" )
48+ name.set(" Brutus5000" )
49+ organization {
50+ name.set(" FAForever" )
51+ url.set(" https://github.com/FAForever" )
52+ }
53+ }
54+ }
55+ }
2556 }
2657 }
2758
2859 repositories {
2960 maven {
30- name = " GitHubPackages "
31- setUrl (" https://maven.pkg.github.com/FAForever/faf-java-commons " )
61+ name = " MavenCentral "
62+ url = uri (" https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/ " )
3263 credentials {
33- username = System .getenv( " GITHUB_ACTOR " )
34- password = System .getenv( " GITHUB_TOKEN " )
64+ username = project.properties[ " sonatypeUsername " ].toString( )
65+ password = project.properties[ " sonatypePassword " ].toString( )
3566 }
3667 }
3768 }
Original file line number Diff line number Diff line change 1+ project_website =https://github.com/FAForever/faf-java-commons
2+ project_issues =https://github.com/FAForever/faf-java-commons/issues
3+ project_vcs =https://github.com/FAForever/faf-java-commons.git
4+ project_vcs_git =git@github.com:FAForever/faf-java-commons.git
5+ version =unspecified
You can’t perform that action at this time.
0 commit comments