A Grails Profile for creating standard Grails web applications, with popular CSS framework Bootstrap.
- Grails 5.0.0
- Grails Base Profile 5.0.6
- Grails Scaffolding Plugin 4.1.0
- Grails Fields Plugin 3.0.0.RC1
By default Grails will resolve profiles from the Grails central repository. However, you can override what repositories will be searched by specifying repositories in the USER_HOME/.grails/settings.groovy file.
If you want profiles to be resolved with a custom repository in addition to the Grails central repository, you must specify Grails central in the file as well:
grails {
profiles {
'web-bootstrap' {
groupId = "org.rainboyan.profiles"
version = "5.0.0"
}
repositories {
mavenCentral {
url = "https://repo1.maven.org/maven2/"
snapshotsEnabled = false
}
grailsCentral {
url = "https://repo.grails.org/grails/core"
snapshotsEnabled = true
}
}
}
}Generated project with default features, included hibernate5, events, geb2, gsp, asset-pipeline, jquery, popper, fields, bootstrap.
grails create-app --profile web-bootstrap org.grails.demo.web-bootstrap-demo
cd web-bootstrap-demo
grails run-app
Generated project with features, included hibernate5, events, geb2, gsp, asset-pipeline, jquery, popper, fields, bootstrap-sass.
grails create-app --profile web-bootstrap --features hibernate5,events,geb2,bootstrap-sass org.grails.demo.web-bootstrap-sass-demo
cd web-bootstrap-sass-demo
npm install
npm run build
grails run-app
grails run-appThe result will look something like this:
git clone https://github.com/rainboyan/web-bootstrap.git
cd web-bootstrap
./gradlew publishToMavenLocal
Generated project with default features, included hibernate5, events, geb2, gsp, asset-pipeline, fields, jquery, bootstrap.
grails create-app --profile web-bootstrap org.grails.demo.web-bootstrap-demo
cd web-bootstrap-demo
grails run-app
Generated project with features, included hibernate5, events, geb2, gsp, asset-pipeline, fields, jquery, bootstrap-sass.
grails create-app --profile web-bootstrap --features hibernate5,events,geb2,jquery,bootstrap-sass org.grails.demo.web-bootstrap-sass-demo
cd web-bootstrap-sass-demo
npm install
npm run build
grails run-app
- Update Grails 5.0
- Grails Base Profile 5.0.6
- Grails Scaffolding Plugin 4.1.0
- Update Bootstrap v5.1.3, Popper 2.10.2
- Grails Fields Plugin 3.0.0.RC1
- Update jQuery 3.6.0, Bootstrap 4.6.1
- Update Grails Scaffolding and Fields default templates
- Support Bootstrap form component, powerful grid system and responsive layout
- Support Bootstrap Icons v1.8.1
- Support Bootstrap with SASS and NPM
- Support Bootswatch themes
- Feature
popperis optional now, Usebootstrap.bundle.jsinclude it - Support Bootstrap SASS, Use DartSass in place of Node Sass
- Add Bootstrap taglib, support paginate and datePicker with more options
- Add messages_zh_CN.properties and messages_zh_TW.properties
- Default main layout support load javascript by convention
- Add Languages menu
- Add Management menu
- Add Themes menu
- Remove unsed css in main.css and grails.css
- Remove unsed skin images
