当前位置: 首页 > 工具软件 > Metacat > 使用案例 >

编译metacat 报错

石喜
2023-12-01

问题:

* What went wrong:
Could not compile build file 'D:\github\metacat-master\build.gradle'.
> startup failed:
  build file 'D:\github\metacat-master\build.gradle': 39: argument list must be exactly 1 literal non empty string
  

 

解决:

gradle 版本太低。

As of Gradle 5.6, you can declare your plugin versions in the gradle.properties file, and reference these properties in plugins block.

For example, the gradle.properties file:

springBootVersion=2.2.0.RELEASE

the plugins block in build.gradle:

plugins {
    id "org.springframework.boot" version "${springBootVersion}"
}

See: https://github.com/gradle/gradle/issues/1697#issuecomment-506910915.

See also:

  1. https://docs.gradle.org/5.6/release-notes.html#central-management-of-plugin-versions-with-settings-script
  2. https://docs.gradle.org/5.6/userguide/plugins.html#sec:plugin_management
 类似资料: