Skip to content
This repository has been archived by the owner on May 15, 2020. It is now read-only.

Build error when trying to build yo-cordapp release-V4 #84

Closed
seb-droig opened this issue Jan 27, 2020 · 1 comment
Closed

Build error when trying to build yo-cordapp release-V4 #84

seb-droig opened this issue Jan 27, 2020 · 1 comment

Comments

@seb-droig
Copy link

I have followed the pre-requisites and set up Gradle 4.10 and Java 8. I get the following error when running gradle build (can't run gradlew due to silly enterprise restrictions):

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\WS\repos\corda-samples-V4\yo-cordapp\build.gradle' line: 63

* What went wrong:
A problem occurred evaluating root project 'yo-cordapp'.
> Failed to apply plugin [id 'net.corda.plugins.quasar-utils']
   > Could not create an instance of type net.corda.plugins.QuasarExtension_Decorated.
      > No signature of method: org.gradle.api.internal.provider.DefaultPropertyState.convention() is applicable for argument types: (java.lang.String) values: [co.paralleluniverse]

If I check out branch release-V3 however, I am able to build yo-cordapp successfully. gradle -v gives me:

------------------------------------------------------------
Gradle 4.10
------------------------------------------------------------

Build time:   2018-08-27 18:35:06 UTC
Revision:     ee3751ed9f2034effc1f0072c2b2ee74b5dce67d

Kotlin DSL:   1.0-rc-3
Kotlin:       1.2.60
Groovy:       2.4.15
Ant:          Apache Ant(TM) version 1.9.11 compiled on March 23 2018
JVM:          1.8.0_131 (Oracle Corporation 25.131-b11)
OS:           Windows 10 10.0 amd64

I realize that I am not running on the exact patch level of Java as required, but I don't think it matters at this stage, I am just trying to produce the jar-file, the nodes all have the correct patch level.

@seb-droig
Copy link
Author

TL;DR; I managed to find out what was wrong, building the yo-cordapp requires at least Gradle 5.1.

The convention() method is not implemented on the Properties object until 5.1 according to this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant