Open mbrekalo-falcon opened 3 years ago
Another fail build:
wiremock_1 | > Configure project : wiremock_1 | Evaluating root project 'grpc-wiremock' using build file '/usr/src/java-code/build.gradle'. wiremock_1 | Applying dependency management to configuration 'bootArchives' in project 'grpc-wiremock' wiremock_1 | Applying dependency management to configuration 'archives' in project 'grpc-wiremock' wiremock_1 | Applying dependency management to configuration 'default' in project 'grpc-wiremock' wiremock_1 | Applying dependency management to configuration 'implementation' in project 'grpc-wiremock' wiremock_1 | Applying dependency management to configuration 'compileOnly' in project 'grpc-wiremock' wiremock_1 | Applying dependency management to configuration 'compileClasspath' in project 'grpc-wiremock' wiremock_1 | Applying dependency management to configuration 'annotationProcessor' in project 'grpc-wiremock' wiremock_1 | Applying dependency management to configuration 'runtimeOnly' in project 'grpc-wiremock' wiremock_1 | Applying dependency management to configuration 'runtimeClasspath' in project 'grpc-wiremock' wiremock_1 | Applying dependency management to configuration 'testImplementation' in project 'grpc-wiremock' wiremock_1 | Applying dependency management to configuration 'testCompileOnly' in project 'grpc-wiremock' wiremock_1 | Applying dependency management to configuration 'testCompileClasspath' in project 'grpc-wiremock' wiremock_1 | Applying dependency management to configuration 'testAnnotationProcessor' in project 'grpc-wiremock' wiremock_1 | Applying dependency management to configuration 'testRuntimeOnly' in project 'grpc-wiremock' wiremock_1 | Applying dependency management to configuration 'testRuntimeClasspath' in project 'grpc-wiremock' wiremock_1 | Applying dependency management to configuration 'apiElements' in project 'grpc-wiremock' wiremock_1 | Applying dependency management to configuration 'runtimeElements' in project 'grpc-wiremock' wiremock_1 | Applying dependency management to configuration 'developmentOnly' in project 'grpc-wiremock' wiremock_1 | Applying dependency management to configuration 'productionRuntimeClasspath' in project 'grpc-wiremock' wiremock_1 | Applying dependency management to configuration 'protobuf' in project 'grpc-wiremock' wiremock_1 | Applying dependency management to configuration 'testProtobuf' in project 'grpc-wiremock' wiremock_1 | Applying dependency management to configuration 'compileProtoPath' in project 'grpc-wiremock' wiremock_1 | Applying dependency management to configuration 'testCompileProtoPath' in project 'grpc-wiremock' wiremock_1 | Applying dependency management to configuration 'protobufToolsLocator_protoc' in project 'grpc-wiremock' wiremock_1 | ------------------------------------------------------------------------ wiremock_1 | Detecting the operating system and CPU architecture wiremock_1 | ------------------------------------------------------------------------ wiremock_1 | os.detected.name=linux wiremock_1 | os.detected.arch=x86_64 wiremock_1 | os.detected.bitness=64 wiremock_1 | os.detected.version=5.10 wiremock_1 | os.detected.version.major=5 wiremock_1 | os.detected.version.minor=10 wiremock_1 | os.detected.release=ubuntu wiremock_1 | os.detected.release.version=20.04 wiremock_1 | os.detected.release.like.ubuntu=true wiremock_1 | os.detected.release.like.debian=true wiremock_1 | os.detected.classifier=linux-x86_64 wiremock_1 | Applying dependency management to configuration 'protobufToolsLocator_grpc' in project 'grpc-wiremock' wiremock_1 | wiremock_1 | FAILURE: Build failed with an exception. wiremock_1 | wiremock_1 | What went wrong: wiremock_1 | A problem occurred configuring root project 'grpc-wiremock'. wiremock_1 | > Could not load class 'org.gradle.plugins.ide.idea.model.IdeaModel' from jar:file:/opt/gradle/lib/plugins/gradle-ide-7.0.jar!/org/gradle/plugins/ide/idea/model/IdeaModel.class. wiremock_1 | wiremock_1 | Try: wiremock_1 | Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. Run with --scan to get full insights. wiremock_1 | wiremock_1 | * Get more help at https://help.gradle.org
This is wiremock / gradle and prob deeper which will take some time before they support/ test M1 . Suggest use a container/ VM
can you write an example
Probably another option is to build a custom image under M1 MacOs: clone this repo and build the image from Dockerfile
This image should work under M1 but most likely won't work on any other OS
Error on build: