Slim3-gradle is a sample project using gradle as build tool and slim3 as framework.
Almost all of the project of slim3 products is built with Maven2 and Eclipse. But this project aims to build slim3 project with gradle and IntelliJ IDEA.
Copyright mike_neck (twitter : @mike_neck / [email protected]) 2012
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
- copy
build.gradle
to your project home. - modify the group name to your project’s home package. the description is at around the line 9.
group = 'your.package.name'
- then do this command for preparing IntelliJ IDEA environment.
$ gradle idea
- modify the application id and the application version.
def applicationId = 'your-application-id' def applicationVersion = '1'
- after the commands project’s ipr file is so available that you can load project into IntelliJ IDEA.
- this project contains the feature for creating .gitignore file
- the file is available via following command
$ gradle gitignore
- then you can find .gitignore file in your project home.
- this task creates Meta classes
- do this command after creation of your model class
$ gradle gen
- then you can find Meta classes are available in IntelliJ IDEA.
$ cd /to/forked/path
$ gradle install
- collect project dependencies
- prepare project structure (half)
- add apt-gen-model
- create web structure and its required files
- add some other slim3’s feature. like…
- generate controllers and services
- gwt
- kotori-web-junit
- packaging components
- deploying archives