File tree Expand file tree Collapse file tree 14 files changed +778
-0
lines changed Expand file tree Collapse file tree 14 files changed +778
-0
lines changed Original file line number Diff line number Diff line change 6262 env :
6363 RUST_BACKTRACE : 1
6464 CARGO_REGISTRY_TOKEN : ${{ secrets.CARGO_REGISTRY_TOKEN }}
65+
66+ release_maven :
67+ runs-on : ubuntu-latest
68+ if : " startsWith(github.ref, 'refs/tags/testutils/java/v')"
69+ steps :
70+ - uses : actions/checkout@v4
71+ - uses : actions/setup-java@v4
72+ with :
73+ java-version : ' 11'
74+ distribution : ' temurin'
75+ server-id : ' central'
76+ server-username : MAVEN_USERNAME
77+ server-password : MAVEN_CENTRAL_TOKEN
78+ gpg-private-key : ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
79+ gpg-passphrase : MAVEN_GPG_PASSPHRASE
80+
81+ - name : Publish to Apache Maven Central
82+ working-directory : testutils/java
83+ env :
84+ MAVEN_USERNAME : ${{ secrets.MAVEN_USERNAME }}
85+ MAVEN_CENTRAL_TOKEN : ${{ secrets.MAVEN_CENTRAL_TOKEN }}
86+ MAVEN_GPG_PASSPHRASE : " "
87+ run :
88+ ./mvnw clean deploy -DskipTests=true
Original file line number Diff line number Diff line change @@ -10,3 +10,6 @@ go.work
1010go.work.sum
1111misc /* .gif
1212misc /questions.json
13+
14+ testutils /java /target /
15+ testutils /java /.idea /
Original file line number Diff line number Diff line change 11before :
22 hooks :
33 - go mod tidy
4+ - go generate ./...
45 - ./scripts/completions.sh
56builds :
67 - env :
@@ -12,6 +13,9 @@ builds:
1213 goarch :
1314 - amd64
1415 - arm64
16+ ignore :
17+ - goos : linux
18+ goarch : arm64
1519 flags :
1620 - -v
1721 - -trimpath
Original file line number Diff line number Diff line change @@ -13,3 +13,7 @@ release-pypi:
1313release-cargo :
1414 git tag -a $(shell svu patch --prefix 'testutils/rust/')
1515 git push --tags
16+
17+ release-maven :
18+ git tag -a $(shell svu patch --prefix 'testutils/java/')
19+ git push --tags
Original file line number Diff line number Diff line change 1+ # Licensed to the Apache Software Foundation (ASF) under one
2+ # or more contributor license agreements. See the NOTICE file
3+ # distributed with this work for additional information
4+ # regarding copyright ownership. The ASF licenses this file
5+ # to you under the Apache License, Version 2.0 (the
6+ # "License"); you may not use this file except in compliance
7+ # with the License. You may obtain a copy of the License at
8+ #
9+ # http://www.apache.org/licenses/LICENSE-2.0
10+ #
11+ # Unless required by applicable law or agreed to in writing,
12+ # software distributed under the License is distributed on an
13+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+ # KIND, either express or implied. See the License for the
15+ # specific language governing permissions and limitations
16+ # under the License.
17+ distributionUrl =https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.2/apache-maven-3.9.2-bin.zip
18+ wrapperUrl =https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar
Original file line number Diff line number Diff line change 1+ # mvn wrapper
2+
3+ mvn wraper: wraper
4+
5+ # GPG keys
6+
7+ gpg --full-generate-key
8+ gpg --list-secret-keys --keyid-format=long
9+ gpg --list-signatures --keyid-format 0xshort
10+ gpg --keyserver keyserver.ubuntu.com --send-keys 48B96ED2
Original file line number Diff line number Diff line change 1+ package java
2+
3+ import (
4+ "embed"
5+ )
6+
7+ //go:embed mvnw mvnw.cmd .mvn
8+ var MvnWrapper embed.FS
You can’t perform that action at this time.
0 commit comments