Skip to content

Maven Project. Fail on warnings#5258

Merged
igordmn merged 3 commits intomasterfrom
igor.demin/maven-project-fail-on-warnings
Mar 19, 2025
Merged

Maven Project. Fail on warnings#5258
igordmn merged 3 commits intomasterfrom
igor.demin/maven-project-fail-on-warnings

Conversation

@igordmn
Copy link
Collaborator

@igordmn igordmn commented Mar 7, 2025

A script for extended CI check to not miss issues like https://youtrack.jetbrains.com/issue/CMP-7738/Compose-fails-to-sync-in-Bazel

Testing

./gradlew publishComposeJbToMavenLocal
./check.sh -Dkotlin.version=2.1.0 -Dcompose.version=9999.0.0-SNAPSHOT

doesn't fail on the latest jb-main, fails on 1.8.0-alpha04

Release Notes

N/A

@@ -0,0 +1,19 @@
#!/bin/bash
Copy link
Collaborator Author

@igordmn igordmn Mar 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator Author

@igordmn igordmn Mar 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reverted the check on CI. There some warnings there:
https://teamcity.jetbrains.com/buildConfiguration/JetBrainsPublicProjects_Compose_Dev/5048030?buildTab=dependencies&mode=list&state=failed&type=snapshot&showLog=5048026_13096_379&logFilter=debug&logView=flowAware#5048026

03:59:51   [WARNING [m] Could not validate integrity of download from https://maven.pkg.jetbrains.space/public/p/compose/dev/org/jetbrains/compose/animation/animation-desktop/1.8.0+dev2231/animation-desktop-1.8.0+dev2231.jar: Checksum validation failed, no checksums available

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@igordmn igordmn marked this pull request as ready for review March 19, 2025 12:47
@igordmn igordmn requested a review from eymar March 19, 2025 12:47
igordmn added a commit to JetBrains/compose-multiplatform-core that referenced this pull request Mar 19, 2025
#1927
doesn't work for `pom` files. We have these dependencies:
```
[INFO] +- org.jetbrains.compose.material3:material3-desktop:jar:9999.0.0-SNAPSHOT:compile
[INFO] |  +- androidx.collection:collection-jvm:jar:1.5.0-beta01:runtime
```

Because:
- material3 depends on `project(":collection:collection")`
- project dependencies are replaced by the redirecting artifact
- `pom` files [don't
contain](https://youtrack.jetbrains.com/issue/CMP-7803/collection-compatibility-stub-annotation-compatibility-stub-arent-in-the-dependencies-in-pom-files)
any transitive dependencies (comparing to Gradle)

## Testing
The check JetBrains/compose-multiplatform#5258
doesn't fail

## Release Notes
N/A
@igordmn igordmn merged commit c70ee2c into master Mar 19, 2025
1 check passed
@igordmn igordmn deleted the igor.demin/maven-project-fail-on-warnings branch March 19, 2025 14:28
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.

2 participants