build.gradle文件:
buildscript {
ext.corda_release_group = 'net.corda'
ext.corda_release_version = '4.0'
ext.corda_gradle_plugins_version = '4.0.42'
ext.kotlin_version = '1.2.71'
ext.junit_version = '4.12'
ext.quasar_version = '0.7.10'
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "net.corda.plugins:cordapp:$corda_gradle_plugins_version"
classpath "net.corda.plugins:cordformation:$corda_gradle_plugins_version"
classpath "net.corda.plugins:quasar-utils:$corda_gradle_plugins_version"
}
}
allprojects {
repositories {
mavenLocal()
jcenter()
mavenCentral()
maven { url 'https://ci-artifactory.corda.r3cev.com/artifactory/corda' }
maven { url 'https://jitpack.io' }
maven { url 'https://plugins.gradle.org/m2/' }
}
}
apply plugin: 'kotlin'
apply plugin: 'net.corda.plugins.cordapp'
apply plugin: 'net.corda.plugins.cordformation'
apply plugin: 'net.corda.plugins.quasar-utils'
以下是构建错误: 无法应用插件[id'net.corda.plugins.cordapp'] 无法创建net.corda.plugins.CordappExtension_Decorated类型的实例。 org.gradle.api.model.ObjectFactory.newInstance(Ljava / lang / Class; [Ljava / lang / Object;)Ljava / lang / Object;
请帮助解决此问题。