{"id":19714000,"url":"https://github.com/grails/grails-gradle-plugin-archived","last_synced_at":"2025-04-29T18:31:37.438Z","repository":{"id":806988,"uuid":"512300","full_name":"grails/grails-gradle-plugin-archived","owner":"grails","description":null,"archived":true,"fork":false,"pushed_at":"2015-09-26T01:23:53.000Z","size":1377,"stargazers_count":141,"open_issues_count":36,"forks_count":40,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-04-20T15:25:09.611Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Groovy","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/grails.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-02-10T23:59:29.000Z","updated_at":"2024-12-05T02:39:16.000Z","dependencies_parsed_at":"2022-08-16T10:55:27.378Z","dependency_job_id":null,"html_url":"https://github.com/grails/grails-gradle-plugin-archived","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grails%2Fgrails-gradle-plugin-archived","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grails%2Fgrails-gradle-plugin-archived/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grails%2Fgrails-gradle-plugin-archived/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grails%2Fgrails-gradle-plugin-archived/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grails","download_url":"https://codeload.github.com/grails/grails-gradle-plugin-archived/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250736134,"owners_count":21478733,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T22:27:58.065Z","updated_at":"2025-04-29T18:31:37.395Z","avatar_url":"https://github.com/grails.png","language":"Groovy","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Grails Gradle Plugin\n\nThis plugin for Gradle allows you to build Grails projects. To use it, simply include the required JARs via `buildscript {}` and 'apply' the plugin:\n\n```groovy\nbuildscript {\n  repositories {\n    jcenter()\n  }\n  dependencies {\n    classpath \"org.grails:grails-gradle-plugin:2.1.2\"\n  }\n}\n\nversion \"0.1\"\ngroup \"example\"\n\napply plugin: \"grails\"\n\nrepositories {\n  grails.central() //creates a maven repo for the Grails Central repository (Core libraries and plugins)\n}\n\ngrails {\n  grailsVersion = '2.4.3'\n  groovyVersion = '2.3.7'\n  springLoadedVersion '1.2.0.RELEASE'\n}\n\ndependencies {\n  bootstrap \"org.grails.plugins:tomcat:7.0.50\" // No container is deployed by default, so add this\n  compile 'org.grails.plugins:asset-pipeline:2.1.3' // Just an example of adding a Grails plugin\n}\n```\nYou must specify the `grails.grailsVersion` property before executing any Grails commands.\n\nThe 'grails.groovyVersion' property is a convenience for Grails 2.3.0, it may not work correctly in earlier\nversions, so it's best to not use it with version pre-2.3.0. Declaring `grails.groovyVersion` will configure a Gradle ResolutionStrategy to modify all requests for `groovy-all` to be\nfor the version specified. Additionally, the ResolutionStrategy will change all requests for `groovy` to be `groovy-all`\n\nThe grails-gradle-plugin will populate the bootstrap, compile, and test classpaths with a base set of dependencies for Grails.\nYou need to provide a container plugin such as 'tomcat' to the bootstrap classpath to enable the run-app command.\n\n*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:\n```groovy\nruntime org.aspectj:aspectjrt:1.6.8\n```\n\nOnce you have this build file, you can create a Grails application with the 'init' task:\n```sh\ngradle init\n```\n\nInitialize a new Grails plugin project by running:\n```sh\ngradle init-plugin\n```\n\nThe plugin creates standard tasks that mimic the Java lifecycle:\n\n* clean\n* test\n* check\n* build\n* assemble\n\nThese tasks are wrapper tasks that declare a `dependsOn` to Grails specific tasks. This will allow for further build customization.\n\n* clean [grails-clean]\n* test [grails-test]\n* assemble [grails-war or grails-package-plugin]\n\nYou can also access any Grails command by prefixing it with `grails-`. For example, to run the application:\n```sh\ngradle grails-run-app\n```\nIf you want to pass in some arguments, you can do so via the `grailsArgs` project property:\n```sh\ngradle -PgrailsArgs='--inplace solr' grails-create-plugin\n```\nYou can also change the environment via the `env` project property:\n```sh\ngradle -PgrailsEnv=prod grails-run-app\n```\nYou can execute multiple Grails commands in a single step, but bear in mind that if you are passing `grailsEnv` or `grailsArgs` then each of the\ncommands will execute with the same values.\n\n## Troubleshooting\n\n* `Caused by: org.apache.tools.ant.BuildException: java.lang.NoClassDefFoundError: org/apache/commons/cli/Options`\n\n  This happens if your project depends on the `groovy` JAR rather than `groovy-all`. Change your dependency to the latter and all will be well.\n\n* Classloading issues, casting proxy instances to their corresponding interface\n\n  This can be a sign of a corrupted Spring-Loaded cache directory.  The plugin has spring-loaded cache in `$HOME/.grails/.slcache` - try cleaning that directory\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrails%2Fgrails-gradle-plugin-archived","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrails%2Fgrails-gradle-plugin-archived","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrails%2Fgrails-gradle-plugin-archived/lists"}