From af0915290ca01fa1ce9642f60df1b6a276e02431 Mon Sep 17 00:00:00 2001 From: luoweiqiang9527 Date: Mon, 21 Aug 2023 20:18:13 +0800 Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E7=BD=B2=E5=88=B0=E9=98=BF=E9=87=8C?= =?UTF-8?q?=E4=BA=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/build_utils.py | 12 ++++++------ script/release.py | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/script/build_utils.py b/script/build_utils.py index e4ceb13..60d32f8 100644 --- a/script/build_utils.py +++ b/script/build_utils.py @@ -194,12 +194,12 @@ def deploy(jar, classifier = classifier or (re.fullmatch(r".*-\d+\.\d+\.\d+(?:-SNAPSHOT)?(?:-([a-z0-9\-]+))?\.jar", os.path.basename(jar))[1]) print(f'Deploying {jar}', classifier, pom, flush=True) - # subprocess.check_call( - # [mvn, 'gpg:sign-and-deploy-file'] + \ - # mvn_settings + \ - # [f'-DpomFile={tempdir}/{pom}', - # f'-Dfile={jar}'] - # + ([f"-Dclassifier={classifier}"] if classifier else [])) + subprocess.check_call( + [mvn, 'clean','install','org.apache.maven.plugins:maven-deploy-plugin:2.8:deploy'] + \ + mvn_settings + \ + [f'-DpomFile={tempdir}/{pom}', + f'-Dfile={jar}'] + + ([f"-Dclassifier={classifier}"] if classifier else [])) return 0 def release(ossrh_username = os.getenv('OSSRH_USERNAME'), diff --git a/script/release.py b/script/release.py index f182423..0c8223f 100644 --- a/script/release.py +++ b/script/release.py @@ -11,7 +11,7 @@ def main(): for classifier in ["", "-sources", "-javadoc"]: build_utils.deploy(f"target/skija-{system}-{common.version}{classifier}.jar", tempdir = "platform/target/deploy") - build_utils.release() + # build_utils.release() return 0