February 28th: No more submissions will be accepted to Bintray, JCenter
May 1st: Bintray, JCenter services will no longer be available
So, the moe artifacts should also be migrated to another maven repository. Perhaps the Maven central. That is for maven/gradle plugins and the engine runtime, and maybe the old versions too. Otherwise old artifacts won’t be available after May 1st.
Earlier this week JCenter disabled downloads for a bit so we got a taste of what was to come. We weren’t able to successfully build on new machines but the local gradle dependency cache enabled builds to continue working on machines that had already done a build.
Switching from jcenter() to mavenCentral() was super easy and all our dependencies except for MOE were already available there. For now we just added the MOE JAR to our source repo and added an explicit gradle dependency on the com.jcraft.jsch package that the MOE POM specifies but would be nicer if the MOE POM were just available from Maven Central or another public server.
UPDATE 4/27/2021: We listened to the community and will keep JCenter as a read-only repository indefinitely. Our customers and the community can continue to rely on JCenter as a reliable mirror for Java packages
Additionally, the last versions for Android Gradle plugins are choking on any references of jcenter(). Basically you have to remove it from the build… or stay on the previous plugin version.
This is probably not too critical for MOE, because you won’t use MOE dependencies in the same modules where Android plugins are used.
Thank you for your reply! I have added the buildscript block as you suggested in the post, but the issue remains but with different version:
A problem occurred evaluating project ':client-ios'.
> Failed to apply plugin [id 'moe']
> Could not resolve all dependencies for configuration ':client-ios:moeMavenSDK'.
> Could not resolve org.multi-os-engine.community:moe-sdk:1.7.1.
Required by:
project :client-ios
> Could not resolve org.multi-os-engine.community:moe-sdk:1.7.1.
> Could not get resource 'https://dl.bintray.com/noisyfox/maven/org/multi-os-engine/community/moe-sdk/1.7.1/moe-sdk-1.7.1.pom'.
> Could not GET 'https://dl.bintray.com/noisyfox/maven/org/multi-os-engine/community/moe-sdk/1.7.1/moe-sdk-1.7.1.pom'. Received status code 403 from server: Forbidden
leads to error: Could not GET 'https://dl.bintray.com/noisyfox/maven/org/multi-os-engine/community/moe-sdk/1.7.4/moe-sdk-1.7.4.pom'. Received status code 403 from server: Forbidden