在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):grails/grails-gradle-plugin-archived开源软件地址(OpenSource Url):https://github.com/grails/grails-gradle-plugin-archived开源编程语言(OpenSource Language):Groovy 96.3%开源软件介绍(OpenSource Introduction):Grails Gradle PluginThis plugin for Gradle allows you to build Grails projects. To use it, simply include the required JARs via buildscript {
repositories {
jcenter()
}
dependencies {
classpath "org.grails:grails-gradle-plugin:2.1.2"
}
}
version "0.1"
group "example"
apply plugin: "grails"
repositories {
grails.central() //creates a maven repo for the Grails Central repository (Core libraries and plugins)
}
grails {
grailsVersion = '2.4.3'
groovyVersion = '2.3.7'
springLoadedVersion '1.2.0.RELEASE'
}
dependencies {
bootstrap "org.grails.plugins:tomcat:7.0.50" // No container is deployed by default, so add this
compile 'org.grails.plugins:asset-pipeline:2.1.3' // Just an example of adding a Grails plugin
} You must specify the The 'grails.groovyVersion' property is a convenience for Grails 2.3.0, it may not work correctly in earlier
versions, so it's best to not use it with version pre-2.3.0. Declaring The grails-gradle-plugin will populate the bootstrap, compile, and test classpaths with a base set of dependencies for Grails. You need to provide a container plugin such as 'tomcat' to the bootstrap classpath to enable the run-app command. Warning If you're using a pre-1.3.5 or pre-1.2.4 version of Grails, you'll need to add this runtime dependency to your project's build file: runtime org.aspectj:aspectjrt:1.6.8 Once you have this build file, you can create a Grails application with the 'init' task: gradle init Initialize a new Grails plugin project by running: gradle init-plugin The plugin creates standard tasks that mimic the Java lifecycle:
These tasks are wrapper tasks that declare a
You can also access any Grails command by prefixing it with gradle grails-run-app If you want to pass in some arguments, you can do so via the gradle -PgrailsArgs='--inplace solr' grails-create-plugin You can also change the environment via the gradle -PgrailsEnv=prod grails-run-app You can execute multiple Grails commands in a single step, but bear in mind that if you are passing Troubleshooting
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论