it looks like I got the maven deploy thing going after initial failure for not signing the antlr maven plug-in.
This commit is contained in:
parent
3a4d53adea
commit
87711b4704
4
bild.py
4
bild.py
|
@ -327,7 +327,7 @@ def install(): # mvn installed locally in ~/.m2, java jar to /usr/local/lib if p
|
|||
require(mksrc)
|
||||
require(mkdoc)
|
||||
jarfile = "dist/antlr4-" + VERSION + "-complete.jar"
|
||||
print_and_log("Installing "+jarfile+" and *-sources.jar, *-javadoc.jar")
|
||||
print_and_log("Maven installing "+jarfile+" and *-sources.jar, *-javadoc.jar")
|
||||
mvn_install(jarfile,
|
||||
"dist/antlr4-" + VERSION + "-complete-sources.jar",
|
||||
"dist/antlr4-" + VERSION + "-complete-javadoc.jar",
|
||||
|
@ -335,7 +335,7 @@ def install(): # mvn installed locally in ~/.m2, java jar to /usr/local/lib if p
|
|||
"antlr4",
|
||||
VERSION)
|
||||
runtimejarfile = "dist/antlr4-" + VERSION + ".jar"
|
||||
print_and_log("Installing "+runtimejarfile+" and *-sources.jar, *-javadoc.jar")
|
||||
print_and_log("Maven installing "+runtimejarfile+" and *-sources.jar, *-javadoc.jar")
|
||||
mvn_install(runtimejarfile,
|
||||
"dist/antlr4-" + VERSION + "-sources.jar",
|
||||
"dist/antlr4-" + VERSION + "-javadoc.jar",
|
||||
|
|
50
deploy.py
50
deploy.py
|
@ -50,16 +50,58 @@ def mvn_snapshot(): # assumes that you have ~/.m2/settings.xml set up
|
|||
binjar = uniformpath("dist/antlr4-%s-complete.jar" % VERSION)
|
||||
docjar = uniformpath("dist/antlr4-%s-complete-javadoc.jar" % VERSION)
|
||||
srcjar = uniformpath("dist/antlr4-%s-complete-sources.jar" % VERSION)
|
||||
mvn_deploy(binjar, docjar, srcjar, repositoryid="ossrh", groupid="org.antlr",
|
||||
artifactid="antlr4", pomfile="tool/pom.xml", version=VERSION)
|
||||
mvn_deploy("deploy:deploy-file",
|
||||
binjar, docjar, srcjar, repositoryid="ossrh", groupid="org.antlr",
|
||||
artifactid="antlr4", pomfile="tool/pom.xml", version=VERSION,
|
||||
url="https://oss.sonatype.org/content/repositories/snapshots")
|
||||
|
||||
binjar = uniformpath("dist/antlr4-%s.jar" % VERSION)
|
||||
docjar = uniformpath("dist/antlr4-%s-javadoc.jar" % VERSION)
|
||||
srcjar = uniformpath("dist/antlr4-%s-sources.jar" % VERSION)
|
||||
mvn_deploy(binjar, docjar, srcjar, repositoryid="ossrh", groupid="org.antlr",
|
||||
artifactid="antlr4-runtime", pomfile="runtime/Java/pom.xml", version=VERSION)
|
||||
mvn_deploy("deploy:deploy-file",
|
||||
binjar, docjar, srcjar, repositoryid="ossrh", groupid="org.antlr",
|
||||
artifactid="antlr4-runtime", pomfile="runtime/Java/pom.xml", version=VERSION,
|
||||
url="https://oss.sonatype.org/content/repositories/snapshots")
|
||||
|
||||
|
||||
# deploy to maven central
|
||||
def mvn_staging(): # assumes that you have ~/.m2/settings.xml set up
|
||||
"""
|
||||
mvn gpg:sign-and-deploy-file \
|
||||
-Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ \
|
||||
-DrepositoryId=ossrh \
|
||||
-Dpackaging=jar \
|
||||
-DpomFile=/Users/parrt/antlr/code/antlr4/tool/pom.xml \
|
||||
-Dfile=/Users/parrt/antlr/code/antlr4/dist/antlr4-4.5-complete.jar \
|
||||
-Dsources=/Users/parrt/antlr/code/antlr4/dist/antlr4-4.5-complete-sources.jar \
|
||||
-Djavadoc=/Users/parrt/antlr/code/antlr4/dist/antlr4-4.5-complete-javadoc.jar
|
||||
|
||||
mvn gpg:sign-and-deploy-file \
|
||||
-Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ \
|
||||
-DrepositoryId=ossrh \
|
||||
-Dpackaging=jar \
|
||||
-DpomFile=/Users/parrt/antlr/code/antlr4/runtime/Java/pom.xml \
|
||||
-Dfile=/Users/parrt/antlr/code/antlr4/dist/antlr4-4.5.jar \
|
||||
-Dsources=/Users/parrt/antlr/code/antlr4/dist/antlr4-4.5-sources.jar \
|
||||
-Djavadoc=/Users/parrt/antlr/code/antlr4/dist/antlr4-4.5-javadoc.jar
|
||||
"""
|
||||
# deploy the tool and Java runtime, it becomes antlr4 artifact at maven
|
||||
binjar = uniformpath("dist/antlr4-%s-complete.jar" % VERSION)
|
||||
docjar = uniformpath("dist/antlr4-%s-complete-javadoc.jar" % VERSION)
|
||||
srcjar = uniformpath("dist/antlr4-%s-complete-sources.jar" % VERSION)
|
||||
mvn_deploy("gpg:sign-and-deploy-file",
|
||||
binjar, docjar, srcjar, repositoryid="ossrh",
|
||||
pomfile="tool/pom.xml", url="https://oss.sonatype.org/service/local/staging/deploy/maven2/")
|
||||
|
||||
# deploy the runtime, it becomes antlr4-runtime artifact at maven
|
||||
binjar = uniformpath("dist/antlr4-%s.jar" % VERSION)
|
||||
docjar = uniformpath("dist/antlr4-%s-javadoc.jar" % VERSION)
|
||||
srcjar = uniformpath("dist/antlr4-%s-sources.jar" % VERSION)
|
||||
mvn_deploy("gpg:sign-and-deploy-file",
|
||||
binjar, docjar, srcjar, repositoryid="ossrh",
|
||||
pomfile="runtime/Java/pom.xml",
|
||||
url="https://oss.sonatype.org/service/local/staging/deploy/maven2/")
|
||||
|
||||
def mvn(): # TODO
|
||||
pass
|
||||
|
||||
|
|
Loading…
Reference in New Issue