File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 3636 - name : ' Publish to Maven'
3737 run : |
3838 ./gradlew --no-parallel --no-daemon publishAllPublicationsToMavenRepository -Prelease=true -PjacocoEnabled=false -Psigning.keyId=${{secrets.GPG_KEY_ID}} -Psigning.password=${{secrets.GPG_PASSPHRASE}} -Psigning.secretKeyRingFile=$(echo ~/.gradle/secring.gpg)
39+ ./gradlew --no-parallel --no-daemon postPublishToMaven
3940 env :
4041 MAVEN_USERNAME : ${{ secrets.MAVEN_USERNAME }}
4142 MAVEN_PASSWORD : ${{ secrets.MAVEN_PASSWORD }}
Original file line number Diff line number Diff line change 1616
1717import com.github.vlsi.gradle.dsl.configureEach
1818import com.github.vlsi.gradle.properties.dsl.props
19- import software.amazon.jdbc.buildtools.JavaCommentPreprocessorTask
2019import com.github.vlsi.gradle.publishing.dsl.simplifyXml
20+ import software.amazon.jdbc.buildtools.JavaCommentPreprocessorTask
2121
2222plugins {
2323 java
@@ -28,6 +28,10 @@ plugins {
2828 id(" com.github.vlsi.ide" )
2929}
3030
31+ releaseParams {
32+ componentName.set(" aws-advanced-jdbc-wrapper" )
33+ }
34+
3135val versionMajor = project.property(" aws-advanced-jdbc-wrapper.version.major" )
3236val versionMinor = project.property(" aws-advanced-jdbc-wrapper.version.minor" )
3337val versionSubminor = Integer .parseInt(
@@ -158,3 +162,18 @@ allprojects {
158162 }
159163 }
160164}
165+
166+ tasks.register<Exec >(" postPublishToMaven" ) {
167+ doFirst {
168+ val username = System .getenv(" MAVEN_USERNAME" )
169+ val password = System .getenv(" MAVEN_PASSWORD" )
170+
171+ commandLine(
172+ " curl" , " -X" , " POST" ,
173+ " -u" , " $username :$password " ,
174+ " -H" , " Content-Type: application/json" ,
175+ " -d" , " {}" ,
176+ " https://ossrh-staging-api.central.sonatype.com/manual/upload/defaultRepository/software.amazon"
177+ )
178+ }
179+ }
You can’t perform that action at this time.
0 commit comments