Skip to content

Commit

Permalink
another attempt at fixing gpg signing
Browse files Browse the repository at this point in the history
  • Loading branch information
hannes committed Sep 18, 2024
1 parent 1454478 commit eadda4a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions scripts/jdbc_maven_deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,11 @@ def exec(cmd):
<version>1.6.14</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<gpgArguments>
<arg>--no-tty</arg>
</gpgArguments>
</configuration>
</plugin>
</plugins>
Expand Down Expand Up @@ -179,7 +182,7 @@ def exec(cmd):
shutil.copyfile(jar, os.path.join(results_dir, os.path.basename(jar)))

print("JARs created, uploading (this can take a while!)")
deploy_cmd_prefix = 'mvn -Dgpg.passphrase= gpg:sign-and-deploy-file -Durl=%s -DrepositoryId=ossrh' % deploy_url
deploy_cmd_prefix = 'mvn gpg:sign-and-deploy-file -Durl=%s -DrepositoryId=ossrh' % deploy_url
exec("%s -DpomFile=%s -Dfile=%s" % (deploy_cmd_prefix, pom, binary_jar))
exec("%s -Dclassifier=sources -DpomFile=%s -Dfile=%s" % (deploy_cmd_prefix, pom, sources_jar))
exec("%s -Dclassifier=javadoc -DpomFile=%s -Dfile=%s" % (deploy_cmd_prefix, pom, javadoc_jar))
Expand Down

0 comments on commit eadda4a

Please sign in to comment.