Skip to content

Fix Maven Central release: add <name> to cn1-ai-* child POMs#5081

Merged
shai-almog merged 1 commit into
masterfrom
fix-cn1-ai-pom-names
May 29, 2026
Merged

Fix Maven Central release: add <name> to cn1-ai-* child POMs#5081
shai-almog merged 1 commit into
masterfrom
fix-cn1-ai-pom-names

Conversation

@shai-almog
Copy link
Copy Markdown
Collaborator

Summary

  • The 7.0.245 release (workflow run) failed because Sonatype Central rejected the bundle with Project name is missing for 78 of the new cn1-ai-* child POMs.
  • The aggregator POMs (maven/cn1-ai-*/pom.xml) carried <name>, but every common, ios, android, javase, javascript, and lib child was missing it. Maven does not inherit <name> from a parent, so the whole reactor bundle failed validation as a unit and nothing reached Maven Central.
  • Added <name>Codename One AI: ${artifactId}</name> to each affected child POM, matching the aggregator naming convention. Other publish-required descriptors (description, url, scm, licenses, developers) are inherited from the root POM and were not flagged by Sonatype.

Verification

  • xmllint xpath check across maven/cn1-ai-*/**/pom.xml: 91 of 91 now have a top-level <name> (was 13 of 91 before).
  • Spot-checked POMs are still well-formed XML (xmllint --noout).
  • Diff is mechanical: exactly one inserted line per file (78 files, 78 insertions).

Test plan

  • After merge, cut a fresh release tag (e.g. 7.0.246) — Sonatype will not accept a republish of the 7.0.245 coordinates.
  • Watch the Release on Maven Central workflow: the central-publishing step should complete validation, and the safety-net poll should confirm the artifact within ~30 min.
  • Confirm the Website CN1 Version PR workflow runs to completion (it polls for codenameone-maven-plugin on Maven Central).

🤖 Generated with Claude Code

Sonatype Central rejected the 7.0.245 release bundle with "Project name
is missing" for 78 of the cn1-ai-* child POMs (mlkit subprojects,
stablediffusion, tflite, whisper). The aggregator POMs carried <name>,
but every common/ios/android/javase/javascript/lib child was missing it.
Maven does not inherit <name> from a parent, so the bundle failed
validation as a unit and nothing reached Maven Central.

Add <name>Codename One AI: ${artifactId}</name> to each affected child
POM, matching the aggregator naming convention. Other publish-required
descriptors (description, url, scm, licenses, developers) are inherited
from the root POM and were not flagged.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@shai-almog shai-almog merged commit f3fdc0b into master May 29, 2026
30 checks passed
@github-actions
Copy link
Copy Markdown
Contributor

✅ Continuous Quality Report

Test & Coverage

Static Analysis

  • SpotBugs [Report archive]
    • ByteCodeTranslator: 0 findings (no issues)
    • android: 0 findings (no issues)
    • codenameone-maven-plugin: 0 findings (no issues)
    • core-unittests: 0 findings (no issues)
    • ios: 0 findings (no issues)
  • PMD: 0 findings (no issues) [Report archive]
  • Checkstyle: 0 findings (no issues) [Report archive]

Generated automatically by the PR CI workflow.

@shai-almog
Copy link
Copy Markdown
Collaborator Author

shai-almog commented May 29, 2026

Compared 47 screenshots: 47 matched.
✅ JavaScript-port screenshot tests passed.

@shai-almog
Copy link
Copy Markdown
Collaborator Author

shai-almog commented May 29, 2026

Compared 122 screenshots: 122 matched.

Native Android coverage

  • 📊 Line coverage: 12.80% (7451/58229 lines covered) [HTML preview] (artifact android-coverage-report, jacocoAndroidReport/html/index.html)
    • Other counters: instruction 10.41% (37334/358503), branch 4.31% (1461/33874), complexity 5.41% (1760/32544), method 9.44% (1440/15249), class 15.52% (330/2126)
    • Lowest covered classes
      • kotlin.collections.kotlin.collections.ArraysKt___ArraysKt – 0.00% (0/6327 lines covered)
      • kotlin.collections.unsigned.kotlin.collections.unsigned.UArraysKt___UArraysKt – 0.00% (0/2384 lines covered)
      • org.jacoco.agent.rt.internal_b6258fc.asm.org.jacoco.agent.rt.internal_b6258fc.asm.ClassReader – 0.00% (0/1519 lines covered)
      • kotlin.collections.kotlin.collections.CollectionsKt___CollectionsKt – 0.00% (0/1148 lines covered)
      • org.jacoco.agent.rt.internal_b6258fc.asm.org.jacoco.agent.rt.internal_b6258fc.asm.MethodWriter – 0.00% (0/923 lines covered)
      • kotlin.sequences.kotlin.sequences.SequencesKt___SequencesKt – 0.00% (0/730 lines covered)
      • kotlin.text.kotlin.text.StringsKt___StringsKt – 0.00% (0/623 lines covered)
      • org.jacoco.agent.rt.internal_b6258fc.asm.org.jacoco.agent.rt.internal_b6258fc.asm.Frame – 0.00% (0/564 lines covered)
      • kotlin.collections.kotlin.collections.ArraysKt___ArraysJvmKt – 0.00% (0/495 lines covered)
      • kotlinx.coroutines.kotlinx.coroutines.JobSupport – 0.00% (0/423 lines covered)

✅ Native Android screenshot tests passed.

Native Android coverage

  • 📊 Line coverage: 12.80% (7451/58229 lines covered) [HTML preview] (artifact android-coverage-report, jacocoAndroidReport/html/index.html)
    • Other counters: instruction 10.41% (37334/358503), branch 4.31% (1461/33874), complexity 5.41% (1760/32544), method 9.44% (1440/15249), class 15.52% (330/2126)
    • Lowest covered classes
      • kotlin.collections.kotlin.collections.ArraysKt___ArraysKt – 0.00% (0/6327 lines covered)
      • kotlin.collections.unsigned.kotlin.collections.unsigned.UArraysKt___UArraysKt – 0.00% (0/2384 lines covered)
      • org.jacoco.agent.rt.internal_b6258fc.asm.org.jacoco.agent.rt.internal_b6258fc.asm.ClassReader – 0.00% (0/1519 lines covered)
      • kotlin.collections.kotlin.collections.CollectionsKt___CollectionsKt – 0.00% (0/1148 lines covered)
      • org.jacoco.agent.rt.internal_b6258fc.asm.org.jacoco.agent.rt.internal_b6258fc.asm.MethodWriter – 0.00% (0/923 lines covered)
      • kotlin.sequences.kotlin.sequences.SequencesKt___SequencesKt – 0.00% (0/730 lines covered)
      • kotlin.text.kotlin.text.StringsKt___StringsKt – 0.00% (0/623 lines covered)
      • org.jacoco.agent.rt.internal_b6258fc.asm.org.jacoco.agent.rt.internal_b6258fc.asm.Frame – 0.00% (0/564 lines covered)
      • kotlin.collections.kotlin.collections.ArraysKt___ArraysJvmKt – 0.00% (0/495 lines covered)
      • kotlinx.coroutines.kotlinx.coroutines.JobSupport – 0.00% (0/423 lines covered)

Benchmark Results

Detailed Performance Metrics

Metric Duration
Base64 payload size 8192 bytes
Base64 benchmark iterations 6000
Base64 native encode 826.000 ms
Base64 CN1 encode 240.000 ms
Base64 encode ratio (CN1/native) 0.291x (70.9% faster)
Base64 native decode 800.000 ms
Base64 CN1 decode 265.000 ms
Base64 decode ratio (CN1/native) 0.331x (66.9% faster)
Image encode benchmark status skipped (SIMD unsupported)

@shai-almog
Copy link
Copy Markdown
Collaborator Author

shai-almog commented May 29, 2026

Compared 118 screenshots: 118 matched.
✅ Native iOS screenshot tests passed.

Benchmark Results

  • VM Translation Time: 0 seconds
  • Compilation Time: 266 seconds

Build and Run Timing

Metric Duration
Simulator Boot 106000 ms
Simulator Boot (Run) 1000 ms
App Install 23000 ms
App Launch 12000 ms
Test Execution 347000 ms

Detailed Performance Metrics

Metric Duration
Base64 payload size 8192 bytes
Base64 benchmark iterations 6000
Base64 native encode 954.000 ms
Base64 CN1 encode 2194.000 ms
Base64 encode ratio (CN1/native) 2.300x (130.0% slower)
Base64 native decode 592.000 ms
Base64 CN1 decode 1429.000 ms
Base64 decode ratio (CN1/native) 2.414x (141.4% slower)
Base64 SIMD encode 549.000 ms
Base64 encode ratio (SIMD/native) 0.575x (42.5% faster)
Base64 encode ratio (SIMD/CN1) 0.250x (75.0% faster)
Base64 SIMD decode 452.000 ms
Base64 decode ratio (SIMD/native) 0.764x (23.6% faster)
Base64 decode ratio (SIMD/CN1) 0.316x (68.4% faster)
Image encode benchmark iterations 100
Image createMask (SIMD off) 75.000 ms
Image createMask (SIMD on) 17.000 ms
Image createMask ratio (SIMD on/off) 0.227x (77.3% faster)
Image applyMask (SIMD off) 346.000 ms
Image applyMask (SIMD on) 125.000 ms
Image applyMask ratio (SIMD on/off) 0.361x (63.9% faster)
Image modifyAlpha (SIMD off) 309.000 ms
Image modifyAlpha (SIMD on) 160.000 ms
Image modifyAlpha ratio (SIMD on/off) 0.518x (48.2% faster)
Image modifyAlpha removeColor (SIMD off) 479.000 ms
Image modifyAlpha removeColor (SIMD on) 115.000 ms
Image modifyAlpha removeColor ratio (SIMD on/off) 0.240x (76.0% faster)
Image PNG encode (SIMD off) 1703.000 ms
Image PNG encode (SIMD on) 1196.000 ms
Image PNG encode ratio (SIMD on/off) 0.702x (29.8% faster)
Image JPEG encode 889.000 ms

@shai-almog
Copy link
Copy Markdown
Collaborator Author

shai-almog commented May 29, 2026

Compared 122 screenshots: 122 matched.
✅ Native iOS Metal screenshot tests passed.

Benchmark Results

  • VM Translation Time: 0 seconds
  • Compilation Time: 254 seconds

Build and Run Timing

Metric Duration
Simulator Boot 72000 ms
Simulator Boot (Run) 0 ms
App Install 13000 ms
App Launch 40000 ms
Test Execution 298000 ms

Detailed Performance Metrics

Metric Duration
Base64 payload size 8192 bytes
Base64 benchmark iterations 6000
Base64 native encode 812.000 ms
Base64 CN1 encode 1495.000 ms
Base64 encode ratio (CN1/native) 1.841x (84.1% slower)
Base64 native decode 331.000 ms
Base64 CN1 decode 1004.000 ms
Base64 decode ratio (CN1/native) 3.033x (203.3% slower)
Base64 SIMD encode 440.000 ms
Base64 encode ratio (SIMD/native) 0.542x (45.8% faster)
Base64 encode ratio (SIMD/CN1) 0.294x (70.6% faster)
Base64 SIMD decode 401.000 ms
Base64 decode ratio (SIMD/native) 1.211x (21.1% slower)
Base64 decode ratio (SIMD/CN1) 0.399x (60.1% faster)
Image encode benchmark iterations 100
Image createMask (SIMD off) 63.000 ms
Image createMask (SIMD on) 10.000 ms
Image createMask ratio (SIMD on/off) 0.159x (84.1% faster)
Image applyMask (SIMD off) 137.000 ms
Image applyMask (SIMD on) 57.000 ms
Image applyMask ratio (SIMD on/off) 0.416x (58.4% faster)
Image modifyAlpha (SIMD off) 128.000 ms
Image modifyAlpha (SIMD on) 67.000 ms
Image modifyAlpha ratio (SIMD on/off) 0.523x (47.7% faster)
Image modifyAlpha removeColor (SIMD off) 171.000 ms
Image modifyAlpha removeColor (SIMD on) 87.000 ms
Image modifyAlpha removeColor ratio (SIMD on/off) 0.509x (49.1% faster)
Image PNG encode (SIMD off) 1307.000 ms
Image PNG encode (SIMD on) 1040.000 ms
Image PNG encode ratio (SIMD on/off) 0.796x (20.4% faster)
Image JPEG encode 604.000 ms

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant