更改 Grails 中的主题 3.x.x
Changing themes in Grails 3.x.x
我在 google 中找不到一个博客来更新 Grails 3.x.x 的主题插件。
如果有人熟悉使用 Grails 3.x.x 项目附带的 gradle 属性文件来玩主题,请告诉我...
升级到 3.x.x 版本后,我一直在为 Gradle 苦苦挣扎
我尝试了以下但以失败告终....
build.gradle
dependencies {
....
compile "org.grails.plugins:platform-ui:1.0.RC7"
.....
}
|
Resolving Dependencies. Please wait...
CONFIGURE FAILED
Total time: 13.404 secs Error | Error initializing classpath: Could
not find org.grails.plugins:platform-ui:1.0.RC7. Searched in the
following locations:
file:/C:/Users/admin/.m2/repository/org/grails/plugins/platform-ui/1.0.RC7/platform-ui-1.0.RC7.pom
file:/C:/Users/admin/.m2/repository/org/grails/plugins/platform-ui/1.0.RC7/platform-ui-1.0.RC7.jar
https://repo.grails.org/grails/core/org/grails/plugins/platform-ui/1.0.RC7/platform-ui-1.0.RC7.pom
https://repo.grails.org/grails/core/org/grails/plugins/platform-ui/1.0.RC7/platform-ui-1.0.RC7.jar
Required by:
project : (Use --stacktrace to see the full trace)
FAILURE: Build failed with an exception.
What went wrong: A problem occurred configuring root project 'apprater'.
Could not resolve all dependencies for configuration ':runtime'.
Could not find org.grails.plugins:platform-ui:1.0.RC7.
Searched in the following locations:
file:/C:/Users/admin/.m2/repository/org/grails/plugins/platform-ui/1.0.RC7/platform-ui-1.0.RC7.pom
file:/C:/Users/admin/.m2/repository/org/grails/plugins/platform-ui/1.0.RC7/platform-ui-1.0.RC7.jar
https://repo.grails.org/grails/core/org/grails/plugins/platform-ui/1.0.RC7/platform-ui-1.0.RC7.pom
https://repo.grails.org/grails/core/org/grails/plugins/platform-ui/1.0.RC7/platform-ui-1.0.RC7.jar
Required by:
project :
尝试:运行 使用 --stacktrace 选项获取堆栈跟踪。 运行 使用 --info 或 --debug 选项以获得更多日志输出。
Grails 2 和 Grails 3 的更高版本使用资产管道来处理您的 css/javascript。默认情况下,Grails 3 在 grails-app/assets/stylesheets/*
下确实有一个 bootstrap 的版本,但您绝对不需要使用它。您可以自定义它或删除它并添加您自己的样式表。然后在您的 gsp/html 中引用这些样式。
http://www.asset-pipeline.com/manual/
如果您希望 gradle 项目引入 javascript 或样式表依赖项,请查看客户端依赖项 gradle 插件 https://github.com/craigburke/client-dependencies-gradle
编辑:
您的问题已更新,其中包含有关您正在使用的插件的更多信息 - platform-ui
插件的作者似乎尚未发布 Grails 3 插件,因此这就是您无法解决依赖关系的原因。
我在 google 中找不到一个博客来更新 Grails 3.x.x 的主题插件。 如果有人熟悉使用 Grails 3.x.x 项目附带的 gradle 属性文件来玩主题,请告诉我...
升级到 3.x.x 版本后,我一直在为 Gradle 苦苦挣扎
我尝试了以下但以失败告终....
build.gradle
dependencies {
....
compile "org.grails.plugins:platform-ui:1.0.RC7"
.....
}
|
Resolving Dependencies. Please wait...
CONFIGURE FAILED
Total time: 13.404 secs Error | Error initializing classpath: Could not find org.grails.plugins:platform-ui:1.0.RC7. Searched in the following locations: file:/C:/Users/admin/.m2/repository/org/grails/plugins/platform-ui/1.0.RC7/platform-ui-1.0.RC7.pom file:/C:/Users/admin/.m2/repository/org/grails/plugins/platform-ui/1.0.RC7/platform-ui-1.0.RC7.jar https://repo.grails.org/grails/core/org/grails/plugins/platform-ui/1.0.RC7/platform-ui-1.0.RC7.pom https://repo.grails.org/grails/core/org/grails/plugins/platform-ui/1.0.RC7/platform-ui-1.0.RC7.jar Required by: project : (Use --stacktrace to see the full trace)
FAILURE: Build failed with an exception.
What went wrong: A problem occurred configuring root project 'apprater'.
Could not resolve all dependencies for configuration ':runtime'. Could not find org.grails.plugins:platform-ui:1.0.RC7. Searched in the following locations: file:/C:/Users/admin/.m2/repository/org/grails/plugins/platform-ui/1.0.RC7/platform-ui-1.0.RC7.pom file:/C:/Users/admin/.m2/repository/org/grails/plugins/platform-ui/1.0.RC7/platform-ui-1.0.RC7.jar https://repo.grails.org/grails/core/org/grails/plugins/platform-ui/1.0.RC7/platform-ui-1.0.RC7.pom https://repo.grails.org/grails/core/org/grails/plugins/platform-ui/1.0.RC7/platform-ui-1.0.RC7.jar Required by: project :
尝试:运行 使用 --stacktrace 选项获取堆栈跟踪。 运行 使用 --info 或 --debug 选项以获得更多日志输出。
Grails 2 和 Grails 3 的更高版本使用资产管道来处理您的 css/javascript。默认情况下,Grails 3 在 grails-app/assets/stylesheets/*
下确实有一个 bootstrap 的版本,但您绝对不需要使用它。您可以自定义它或删除它并添加您自己的样式表。然后在您的 gsp/html 中引用这些样式。
http://www.asset-pipeline.com/manual/
如果您希望 gradle 项目引入 javascript 或样式表依赖项,请查看客户端依赖项 gradle 插件 https://github.com/craigburke/client-dependencies-gradle
编辑:
您的问题已更新,其中包含有关您正在使用的插件的更多信息 - platform-ui
插件的作者似乎尚未发布 Grails 3 插件,因此这就是您无法解决依赖关系的原因。