Skip to content

Commit b4305b0

Browse files
committed
Fix Groovy
1 parent dc3ef14 commit b4305b0

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.enforcer-scripts/validate-jbang-versions.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ jbangFile.eachLine { line ->
2121
if (line.trim().startsWith(groupPrefix)) {
2222
def lastColon = line.lastIndexOf(":")
2323
if (lastColon != -1) {
24-
def actualVersion = line.substring(lastColon + 1).trim()
24+
def actualVersion = line.substring(lastColon + 1).trim().tokenize()[0]
2525
if (actualVersion != expectedVersion) {
2626
System.err.println("[ERROR] JBang Version Mismatch in " + scriptName)
2727
System.err.println(" Expected: " + expectedVersion)
28-
System.err.println(" Found: " + actualVersion)
28+
System.err.println(" Found: " + actualVersion + " in line: \"" + line.trim() + "\"")
2929
success = false
3030
}
3131
}

RELEASE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The release process involves:
1616

1717
### Required Accounts & Access
1818
- GitHub repository write access to `a2aproject/a2a-java`
19-
- Maven Central account: `[email protected]` (namespace: `io.github.a2asdk`)
19+
- Maven Central account: namespace: `io.github.a2asdk`
2020

2121
### Required Secrets (Repository Maintainers)
2222
The following secrets must be configured in GitHub repository settings:
@@ -211,7 +211,7 @@ https://central.sonatype.com/publishing
211211
**Cause**: Maven Central tokens expired or incorrect
212212

213213
**Fix**: Repository maintainers:
214-
1. Log in to Maven Central with `kkhan+a2asdk@redhat.com`
214+
1. Log in to Maven Central with the GitHub account for the a2asdk user.
215215
2. Generate new tokens: `User → Generate User Token`
216216
3. Update secrets: `CENTRAL_TOKEN_USERNAME` and `CENTRAL_TOKEN_PASSWORD`
217217

examples/helloworld/client/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
</goals>
5656
<configuration>
5757
<scripts>
58-
<script>file:///${project.basedir}/../../../.enforcer-scripts/validate-jbang-versions.groovy</script>
58+
<script>file:///${maven.multiModuleProjectDirectory}/.enforcer-scripts/validate-jbang-versions.groovy</script>
5959
</scripts>
6060
</configuration>
6161
</execution>

update-version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,5 +128,5 @@ echo " Updated $UPDATED_JBANGS JBang script files"
128128
echo ""
129129
echo "📋 Next steps:"
130130
echo " 1. Review changes: git diff"
131-
echo " 2. Verify build: mvn validate"
131+
echo " 2. Verify build: mvn clean install"
132132
echo " 3. Commit changes: git commit -am 'chore: release $TO_VERSION'"

0 commit comments

Comments
 (0)