Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build #2548

Merged
merged 8 commits into from
Aug 23, 2024
Merged

Fix build #2548

merged 8 commits into from
Aug 23, 2024

Conversation

sdelamo
Copy link
Contributor

@sdelamo sdelamo commented Aug 23, 2024

No description provided.

@@ -18,19 +19,42 @@ class OpenAPISpec extends Specification {
@Inject
HttpClient client

void "test swagger-ui"() {
@Ignore
void "test swagger-ui links"() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@altro3 has the html output changed for swagger-ui and rapid? These tests which verified the links fail now.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, links were changed. Chanes here: micronaut-projects/micronaut-openapi#1626

Currently, links to scripts are not explicitly specified, and scripts are loaded dynamically. The code in the test must be changed

public void out(String message) {
emitter.next(message + LINE_SEPARATOR);
}
private String diff(ProjectGenerator projectGenerator, GeneratorContext generatorContext) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@yawkat @dstepanov have we changed how Publisher<String> is managed? I had to change this. The previous code was timing out in the test.

Copy link
Member

Choose a reason for hiding this comment

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

Otherwise is fails with GraalVM CE 17

```
> Task :micronaut-cli:nativeCompile FAILED
[native-image-plugin] GraalVM Toolchain detection is disabled
[native-image-plugin] GraalVM location read from environment variable: JAVA_HOME
[native-image-plugin] Native Image executable path: /Users/sdelamo/.sdkman/candidates/java/17.0.9-graalce/lib/svm/bin/native-image
Error: Could not find option 'UnlockExperimentalVMOptions' from 'jar:file:///Users/sdelamo/.gradle/caches/modules-2/files-2.1/org.jline/jline/3.26.1/ddb96d65e7827ad4c380acea3fa19c59df4b1572/jline-3.26.1.jar!/META-INF/native-image/org.jline/jline-native/native-image.properties'. Use -H:PrintFlags= to list all available options.
Could not find option 'UnlockExperimentalVMOptions' from 'jar:file:///Users/sdelamo/.gradle/caches/modules-2/files-2.1/org.jline/jline/3.26.1/ddb96d65e7827ad4c380acea3fa19c59df4b1572/jline-3.26.1.jar!/META-INF/native-image/org.jline/jline-terminal-jna/native-image.properties'. Use -H:PrintFlags= to list all available options.
Could not find option 'UnlockExperimentalVMOptions' from 'jar:file:///Users/sdelamo/.gradle/caches/modules-2/files-2.1/org.jline/jline/3.26.1/ddb96d65e7827ad4c380acea3fa19c59df4b1572/jline-3.26.1.jar!/META-INF/native-image/org.jline/jline-terminal-ffm/native-image.properties'. Use -H:PrintFlags= to list all available options.
Could not find option 'UnlockExperimentalVMOptions' from 'jar:file:///Users/sdelamo/.gradle/caches/modules-2/files-2.1/org.jline/jline/3.26.1/ddb96d65e7827ad4c380acea3fa19c59df4b1572/jline-3.26.1.jar!/META-INF/native-image/org.jline/jline-terminal/native-image.properties'. Use -H:PrintFlags= to list all available options.
Could not find option 'UnlockExperimentalVMOptions' from 'jar:file:///Users/sdelamo/.gradle/caches/modules-2/files-2.1/org.jline/jline/3.26.1/ddb96d65e7827ad4c380acea3fa19c59df4b1572/jline-3.26.1.jar!/META-INF/native-image/org.jline/jline-terminal-jansi/native-image.properties'. Use -H:PrintFlags= to list all available options.
Could not find option 'UnlockExperimentalVMOptions' from 'jar:file:///Users/sdelamo/.gradle/caches/modules-2/files-2.1/org.jline/jline/3.26.1/ddb96d65e7827ad4c380acea3fa19c59df4b1572/jline-3.26.1.jar!/META-INF/native-image/org.jline/jline-terminal-jni/native-image.properties'. Use -H:PrintFlags= to list all available options.
Could not find option 'UnlockExperimentalVMOptions' from 'jar:file:///Users/sdelamo/.gradle/caches/modules-2/files-2.1/org.jline/jline/3.26.1/ddb96d65e7827ad4c380acea3fa19c59df4b1572/jline-3.26.1.jar!/META-INF/native-image/org.jline/jansi/native-image.properties'. Use -H:PrintFlags= to list all available options.
```
@sdelamo sdelamo merged commit aefd6df into 4.6.x Aug 23, 2024
14 checks passed
@sdelamo sdelamo deleted the fix-build branch August 23, 2024 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants