Browse Source
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/Apull/5262/head
2 changed files with 21 additions and 1 deletions
@ -1,5 +1,5 @@
@@ -1,5 +1,5 @@
|
||||
The purpose of this test project is to check if Compose Multiplatform is resolvable via pom files, which are used by JPS, which is used by IntelliJ |
||||
|
||||
``` |
||||
mvn install exec:java -Dexec.mainClass="MainKt" -Dkotlin.version=2.1.0 -Dcompose.version=1.8.0-alpha02 |
||||
./check.sh -Dkotlin.version=2.1.0 -Dcompose.version=1.8.0-alpha02 |
||||
``` |
||||
|
||||
@ -0,0 +1,20 @@
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash |
||||
|
||||
set -o pipefail |
||||
|
||||
tempfile=$(mktemp) |
||||
|
||||
# Pipe output to the file and terminal |
||||
if ! mvn clean install exec:java -Dexec.mainClass="MainKt" "$@" | tee "$tempfile"; then |
||||
exit 1 |
||||
fi |
||||
|
||||
# For failing on warnings like |
||||
# [WARNING] The POM for org.jetbrains.kotlin:kotlin-stdlib:jar:unspecified is missing, no dependency information available |
||||
# |
||||
# There is no a flag in Maven to fail on warnings in dependency resolution |
||||
|
||||
if grep -q "\[WARNING\]" "$tempfile"; then |
||||
echo "[ERROR] Warnings found" |
||||
exit 1 |
||||
fi |
||||
Loading…
Reference in new issue