[SOLVED] Gradle build errors on sim-eth examples (lemur-proto)


#1

Hmm, am I doing something wrong? I just cloned the Examples, but I get this:

- Compile time dependencies of sim-eth-es [main] could not be resolved. (Could not find com.simsilica:lemur-proto:1.7.2. Searched in the following locations:     file:/C:/Users/Toni/.m2/repository/com/simsilica/lemur-proto/1.7.2/lemur-proto-1.7.2.pom     file:/C:/Users/Toni/.m2/repository/com/simsilica/lemur-proto/1.7.2/lemur-proto-1.7.2.jar     https://jcenter.bintray.com/com/simsilica/lemur-proto/1.7.2/lemur-proto-1.7.2.pom     https://jcenter.bintray.com/com/simsilica/lemur-proto/1.7.2/lemur-proto-1.7.2.jar Required by:     :sim-eth-es:unspecified)
- Runtime dependencies of sim-eth-es [main] could not be resolved. (Could not find com.simsilica:lemur-proto:1.7.2. Required by:     :sim-eth-es:unspecified)
- Compile time dependencies of sim-eth-es [test] could not be resolved. (Could not find com.simsilica:lemur-proto:1.7.2. Required by:     :sim-eth-es:unspecified)
- Runtime dependencies of sim-eth-es [test] could not be resolved. (Could not find com.simsilica:lemur-proto:1.7.2. Required by:     :sim-eth-es:unspecified)

Details: 

Exception 1
---------------

org.netbeans.gradle.model.util.TransferableExceptionWrapper: org.gradle.api.artifacts.ResolveException: Could not resolve all dependencies for configuration ':compileClasspath'.
	at org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration.rethrowFailure(DefaultLenientConfiguration.java:62)
	at org.gradle.api.internal.artifacts.ivyservice.DefaultResolvedConfiguration.rethrowFailure(DefaultResolvedConfiguration.java:36)
	at org.gradle.api.internal.artifacts.ivyservice.SelfResolvingDependencyConfigurationResolver$FilesAggregatingResolvedConfiguration.rethrowFailure(SelfResolvingDependencyConfigurationResolver.java:112)
	at org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingConfigurationResolver$ErrorHandlingResolvedConfiguration.rethrowFailure(ErrorHandlingConfigurationResolver.java:189)
	at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration$ConfigurationFileCollection.getFiles(DefaultConfiguration.java:666)
	at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.getFiles(DefaultConfiguration.java:292)
	at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration_Decorated.getFiles(Unknown Source)
	at org.netbeans.gradle.model.java.JavaSourcesModelBuilder$Builder.parseClassPaths(JavaSourcesModelBuilder.java:162)
	at org.netbeans.gradle.model.java.JavaSourcesModelBuilder$Builder.parseSourceSet(JavaSourcesModelBuilder.java:140)
	at org.netbeans.gradle.model.java.JavaSourcesModelBuilder$Builder.getProjectInfo(JavaSourcesModelBuilder.java:101)
	at org.netbeans.gradle.model.java.JavaSourcesModelBuilder.getProjectInfo(JavaSourcesModelBuilder.java:75)
	at org.netbeans.gradle.model.java.JavaSourcesModelBuilder.getProjectInfo(JavaSourcesModelBuilder.java:65)
	at org.netbeans.gradle.model.java.JavaSourcesModelBuilder.getProjectInfo(JavaSourcesModelBuilder.java:31)
	at org.netbeans.gradle.model.internal.EnumProjectInfoBuilderRef.getProjectInfo(EnumProjectInfoBuilderRef.java:91)
	at org.netbeans.gradle.model.internal.DynamicModelLoader.fetchProjectInfos(DynamicModelLoader.java:52)
	at org.netbeans.gradle.model.internal.DynamicModelLoader.buildAll(DynamicModelLoader.java:129)
	at org.gradle.tooling.internal.provider.runner.DefaultBuildController.getModel(DefaultBuildController.java:72)
	at org.gradle.tooling.internal.consumer.connection.BuildControllerAdapter.getModel(BuildControllerAdapter.java:74)
	at org.gradle.tooling.internal.consumer.connection.BuildControllerAdapter.getModel(BuildControllerAdapter.java:43)
	at org.netbeans.gradle.model.GenericModelFetcher$1.findModel(GenericModelFetcher.java:249)
	at org.netbeans.gradle.model.GenericModelFetcher.getModel(GenericModelFetcher.java:239)
	at org.netbeans.gradle.model.GenericModelFetcher.getModelOutput(GenericModelFetcher.java:266)
	at org.netbeans.gradle.model.GenericModelFetcher.access$100(GenericModelFetcher.java:39)
	at org.netbeans.gradle.model.GenericModelFetcher$AllProjectInfoBuilder.addCustomInfo(GenericModelFetcher.java:395)
	at org.netbeans.gradle.model.GenericModelFetcher$AllProjectInfoBuilder.<init>(GenericModelFetcher.java:385)
	at

#2

Lemur-proto doesn’t depend on this. So I’m going to need more information because the information you provided isn’t accurate.


#3

If you need still, more, you need to guide me. I’m using Netbeans, the JME flavor of it. And I do have the Gradle plug-in installed.

Executing: gradle build
Arguments: [-c, C:\Users\Toni\Documents\ToniArts\pspeed\Examples\sim-eth-basic\settings.gradle]

FAILURE: Build failed with an exception.

  • What went wrong:
    Could not resolve all dependencies for configuration ‘:compileClasspath’.

Could not find com.simsilica:lemur-proto:1.7.2.
Searched in the following locations:
file:/C:/Users/Toni/.m2/repository/com/simsilica/lemur-proto/1.7.2/lemur-proto-1.7.2.pom
file:/C:/Users/Toni/.m2/repository/com/simsilica/lemur-proto/1.7.2/lemur-proto-1.7.2.jar
https://jcenter.bintray.com/com/simsilica/lemur-proto/1.7.2/lemur-proto-1.7.2.pom
https://jcenter.bintray.com/com/simsilica/lemur-proto/1.7.2/lemur-proto-1.7.2.jar
Required by:
:sim-eth-basic:unspecified

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

#4

The subject of the post made it seem like you were trying to build lemur-proto… but I understand now.

I guess the sim-eth-es and sim-eth-basic build.gradle files refer to a lemur-proto version that was never released. Those 1.7.2 should be 1.8.1 I guess.


#5

Thank you! It worked when I changed the version. Sorry for the inaccurate description.