heroku-vraptor-scaffold 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (148) hide show
  1. data/.gitignore +10 -0
  2. data/.travis.yml +6 -0
  3. data/CHANGELOG.rdoc +188 -0
  4. data/Gemfile +2 -0
  5. data/Gemfile.lock +30 -0
  6. data/LICENSE +22 -0
  7. data/README.md +23 -0
  8. data/README.textile +51 -0
  9. data/Rakefile +20 -0
  10. data/bin/heroku-vraptor +8 -0
  11. data/heroku-vraptor-scaffold.gemspec +28 -0
  12. data/index.sample.html +169 -0
  13. data/lib/vraptor-scaffold.rb +14 -0
  14. data/lib/vraptor-scaffold/configuration.rb +54 -0
  15. data/lib/vraptor-scaffold/execution.rb +22 -0
  16. data/lib/vraptor-scaffold/generators/app/app_generator.rb +161 -0
  17. data/lib/vraptor-scaffold/generators/app/dependency.rb +15 -0
  18. data/lib/vraptor-scaffold/generators/app/dependency_manager.rb +32 -0
  19. data/lib/vraptor-scaffold/generators/app/templates/angular/angular.js +14327 -0
  20. data/lib/vraptor-scaffold/generators/app/templates/bootstrap/bootstrap-responsive.css +9 -0
  21. data/lib/vraptor-scaffold/generators/app/templates/bootstrap/bootstrap.css +9 -0
  22. data/lib/vraptor-scaffold/generators/app/templates/bootstrap/bootstrap.js +6 -0
  23. data/lib/vraptor-scaffold/generators/app/templates/bootstrap/glyphicons-halflings-white.png +0 -0
  24. data/lib/vraptor-scaffold/generators/app/templates/bootstrap/glyphicons-halflings.png +0 -0
  25. data/lib/vraptor-scaffold/generators/app/templates/eclipse/classpath.erb +18 -0
  26. data/lib/vraptor-scaffold/generators/app/templates/eclipse/project.erb +36 -0
  27. data/lib/vraptor-scaffold/generators/app/templates/eclipse/settings/org.eclipse.jdt.core.prefs +8 -0
  28. data/lib/vraptor-scaffold/generators/app/templates/eclipse/settings/org.eclipse.wst.common.component.tt +10 -0
  29. data/lib/vraptor-scaffold/generators/app/templates/eclipse/settings/org.eclipse.wst.common.project.facet.core.xml +10 -0
  30. data/lib/vraptor-scaffold/generators/app/templates/eclipse/settings/org.eclipse.wst.jsdt.ui.superType.container +1 -0
  31. data/lib/vraptor-scaffold/generators/app/templates/eclipse/settings/org.eclipse.wst.jsdt.ui.superType.name +1 -0
  32. data/lib/vraptor-scaffold/generators/app/templates/heroku/Main.java +21 -0
  33. data/lib/vraptor-scaffold/generators/app/templates/heroku/Procfile +1 -0
  34. data/lib/vraptor-scaffold/generators/app/templates/jquery/jquery.min.js +4 -0
  35. data/lib/vraptor-scaffold/generators/app/templates/models/Entity.erb +46 -0
  36. data/lib/vraptor-scaffold/generators/app/templates/orm/Repository-hibernate.java.tt +50 -0
  37. data/lib/vraptor-scaffold/generators/app/templates/orm/Repository-jpa.java.tt +48 -0
  38. data/lib/vraptor-scaffold/generators/app/templates/orm/Repository-objectify.java.tt +41 -0
  39. data/lib/vraptor-scaffold/generators/app/templates/orm/hibernate.cfg.xml +7 -0
  40. data/lib/vraptor-scaffold/generators/app/templates/orm/persistence.xml +10 -0
  41. data/lib/vraptor-scaffold/generators/app/templates/pom.erb +110 -0
  42. data/lib/vraptor-scaffold/generators/app/templates/resources-test/.empty_directory +0 -0
  43. data/lib/vraptor-scaffold/generators/app/templates/resources/hibernate.properties +16 -0
  44. data/lib/vraptor-scaffold/generators/app/templates/resources/log4j.properties +4 -0
  45. data/lib/vraptor-scaffold/generators/app/templates/resources/messages.properties +0 -0
  46. data/lib/vraptor-scaffold/generators/app/templates/underscore/underscore.min.js +32 -0
  47. data/lib/vraptor-scaffold/generators/app/templates/vraptor-scaffold.erb +5 -0
  48. data/lib/vraptor-scaffold/generators/app/templates/webapp/WEB-INF/web.xml.tt +33 -0
  49. data/lib/vraptor-scaffold/generators/app/templates/webapp/images/.empty_directory +0 -0
  50. data/lib/vraptor-scaffold/generators/app/templates/webapp/index.html +24 -0
  51. data/lib/vraptor-scaffold/generators/app/templates/webapp/javascripts/utils.js +7 -0
  52. data/lib/vraptor-scaffold/generators/base.rb +16 -0
  53. data/lib/vraptor-scaffold/generators/scaffold/attribute.rb +51 -0
  54. data/lib/vraptor-scaffold/generators/scaffold/base_scaffold.rb +54 -0
  55. data/lib/vraptor-scaffold/generators/scaffold/client_generator/client_generator.rb +41 -0
  56. data/lib/vraptor-scaffold/generators/scaffold/client_generator/templates/controller.erb +75 -0
  57. data/lib/vraptor-scaffold/generators/scaffold/client_generator/templates/details.erb +16 -0
  58. data/lib/vraptor-scaffold/generators/scaffold/client_generator/templates/form.erb +39 -0
  59. data/lib/vraptor-scaffold/generators/scaffold/client_generator/templates/list.erb +40 -0
  60. data/lib/vraptor-scaffold/generators/scaffold/controller_generator/controller_generator.rb +20 -0
  61. data/lib/vraptor-scaffold/generators/scaffold/controller_generator/templates/controller.erb +77 -0
  62. data/lib/vraptor-scaffold/generators/scaffold/controller_generator/templates/controller_test.erb +12 -0
  63. data/lib/vraptor-scaffold/generators/scaffold/model_generator/model_generator.rb +26 -0
  64. data/lib/vraptor-scaffold/generators/scaffold/model_generator/templates/model.erb +32 -0
  65. data/lib/vraptor-scaffold/generators/scaffold/model_generator/templates/model_test.erb +13 -0
  66. data/lib/vraptor-scaffold/generators/scaffold/repository_generator/repository_generator.rb +32 -0
  67. data/lib/vraptor-scaffold/generators/scaffold/repository_generator/templates/repository.erb +22 -0
  68. data/lib/vraptor-scaffold/generators/scaffold/repository_generator/templates/repository_impl.erb +16 -0
  69. data/lib/vraptor-scaffold/generators/scaffold/repository_generator/templates/repository_test.erb +13 -0
  70. data/lib/vraptor-scaffold/generators/scaffold/scaffold_generator.rb +35 -0
  71. data/lib/vraptor-scaffold/runner.rb +9 -0
  72. data/lib/vraptor-scaffold/runner/commands_help.rb +13 -0
  73. data/lib/vraptor-scaffold/runner/generator.rb +15 -0
  74. data/lib/vraptor-scaffold/runner/help.rb +12 -0
  75. data/lib/vraptor-scaffold/runner/scaffold.rb +16 -0
  76. data/lib/vraptor-scaffold/version.rb +3 -0
  77. data/maven/repo/br/com/caelum/vraptor-gae/1.0/vraptor-gae-1.0.jar +0 -0
  78. data/spec/resources/vraptor-scaffold-objectify.properties +7 -0
  79. data/spec/resources/vraptor-scaffold.properties +7 -0
  80. data/spec/spec.opts +4 -0
  81. data/spec/spec_helper.rb +31 -0
  82. data/spec/vraptor-scaffold/configuration_spec.rb +146 -0
  83. data/spec/vraptor-scaffold/execution_spec.rb +51 -0
  84. data/spec/vraptor-scaffold/generators/app/app_generator_spec.rb +557 -0
  85. data/spec/vraptor-scaffold/generators/app/dependency_manager_spec.rb +34 -0
  86. data/spec/vraptor-scaffold/generators/app/dependency_spec.rb +14 -0
  87. data/spec/vraptor-scaffold/generators/app/freemarker_template_engine_spec.rb +80 -0
  88. data/spec/vraptor-scaffold/generators/app/jsp_template_engine_spec.rb +77 -0
  89. data/spec/vraptor-scaffold/generators/app/templates/Entity.java +45 -0
  90. data/spec/vraptor-scaffold/generators/app/templates/FreemarkerPathResolver.java +21 -0
  91. data/spec/vraptor-scaffold/generators/app/templates/ObjectifyFactory.java +30 -0
  92. data/spec/vraptor-scaffold/generators/app/templates/RepositoryJPA.java +48 -0
  93. data/spec/vraptor-scaffold/generators/app/templates/RepositoryObjectify.java +41 -0
  94. data/spec/vraptor-scaffold/generators/app/templates/build.gradle +60 -0
  95. data/spec/vraptor-scaffold/generators/app/templates/build.properties +18 -0
  96. data/spec/vraptor-scaffold/generators/app/templates/build.xml +146 -0
  97. data/spec/vraptor-scaffold/generators/app/templates/classpath-gae +18 -0
  98. data/spec/vraptor-scaffold/generators/app/templates/decorators-jsp.xml +7 -0
  99. data/spec/vraptor-scaffold/generators/app/templates/decorators.xml +7 -0
  100. data/spec/vraptor-scaffold/generators/app/templates/freemarker-web.xml +60 -0
  101. data/spec/vraptor-scaffold/generators/app/templates/gae-jsp-web.xml +45 -0
  102. data/spec/vraptor-scaffold/generators/app/templates/ivy-gae.xml +45 -0
  103. data/spec/vraptor-scaffold/generators/app/templates/ivy.xml +40 -0
  104. data/spec/vraptor-scaffold/generators/app/templates/jsp-web.xml +45 -0
  105. data/spec/vraptor-scaffold/generators/app/templates/pom-heroku.xml +182 -0
  106. data/spec/vraptor-scaffold/generators/app/templates/pom.xml +157 -0
  107. data/spec/vraptor-scaffold/generators/app/templates/project-gae +47 -0
  108. data/spec/vraptor-scaffold/generators/app/templates/vraptor-scaffold.properties +7 -0
  109. data/spec/vraptor-scaffold/generators/plugin/expected_configs/build.gradle +62 -0
  110. data/spec/vraptor-scaffold/generators/plugin/expected_configs/default_org_build.gradle +62 -0
  111. data/spec/vraptor-scaffold/generators/plugin/expected_configs/default_org_ivy.xml +41 -0
  112. data/spec/vraptor-scaffold/generators/plugin/expected_configs/default_org_pom.xml +152 -0
  113. data/spec/vraptor-scaffold/generators/plugin/expected_configs/ivy.xml +42 -0
  114. data/spec/vraptor-scaffold/generators/plugin/expected_configs/pom.xml +182 -0
  115. data/spec/vraptor-scaffold/generators/scaffold/attribute_spec.rb +186 -0
  116. data/spec/vraptor-scaffold/generators/scaffold/base_scaffold_spec.rb +73 -0
  117. data/spec/vraptor-scaffold/generators/scaffold/client_controller_generator/controller_generator_spec.rb +62 -0
  118. data/spec/vraptor-scaffold/generators/scaffold/client_controller_generator/templates/ProductController.java +95 -0
  119. data/spec/vraptor-scaffold/generators/scaffold/controller_generator/controller_generator_spec.rb +62 -0
  120. data/spec/vraptor-scaffold/generators/scaffold/controller_generator/templates/ProductController.java +95 -0
  121. data/spec/vraptor-scaffold/generators/scaffold/freemarker_generator/freemarker_generator_spec.rb +81 -0
  122. data/spec/vraptor-scaffold/generators/scaffold/freemarker_generator/templates/form.ftl +28 -0
  123. data/spec/vraptor-scaffold/generators/scaffold/jsp_generator/jsp_generator_spec.rb +81 -0
  124. data/spec/vraptor-scaffold/generators/scaffold/jsp_generator/templates/form.jsp +61 -0
  125. data/spec/vraptor-scaffold/generators/scaffold/model_generator/model_generator_spec.rb +54 -0
  126. data/spec/vraptor-scaffold/generators/scaffold/model_generator/objectify_model_generator_spec.rb +40 -0
  127. data/spec/vraptor-scaffold/generators/scaffold/model_generator/templates/ObjectifyFactory.java +33 -0
  128. data/spec/vraptor-scaffold/generators/scaffold/model_generator/templates/Objectify_Product.java +38 -0
  129. data/spec/vraptor-scaffold/generators/scaffold/model_generator/templates/Product.java +25 -0
  130. data/spec/vraptor-scaffold/generators/scaffold/model_generator/templates/hibernate.cfg.xml +8 -0
  131. data/spec/vraptor-scaffold/generators/scaffold/repository_generator/objectify_repository_generator_spec.rb +33 -0
  132. data/spec/vraptor-scaffold/generators/scaffold/repository_generator/repository_generator_spec.rb +68 -0
  133. data/spec/vraptor-scaffold/generators/scaffold/repository_generator/templates/ClientRepository.java +22 -0
  134. data/spec/vraptor-scaffold/generators/scaffold/repository_generator/templates/ClientRepositoryImpl.java +16 -0
  135. data/spec/vraptor-scaffold/generators/scaffold/repository_generator/templates/Objectify_ProductRepository.java +22 -0
  136. data/spec/vraptor-scaffold/generators/scaffold/repository_generator/templates/Objectify_ProductRepositoryImpl.java +16 -0
  137. data/spec/vraptor-scaffold/generators/scaffold/repository_generator/templates/ProductRepository.java +22 -0
  138. data/spec/vraptor-scaffold/generators/scaffold/repository_generator/templates/ProductRepositoryImpl.java +16 -0
  139. data/spec/vraptor-scaffold/generators/scaffold/scaffold_generator_spec.rb +79 -0
  140. data/spec/vraptor-scaffold/http_request_spec.rb +40 -0
  141. data/spec/vraptor-scaffold/runner/commands_help_spec.rb +12 -0
  142. data/spec/vraptor-scaffold/runner/configure_spec.rb +12 -0
  143. data/spec/vraptor-scaffold/runner/generator_spec.rb +31 -0
  144. data/spec/vraptor-scaffold/runner/help_spec.rb +29 -0
  145. data/spec/vraptor-scaffold/runner/scaffold_spec.rb +35 -0
  146. data/spec/vraptor-scaffold/runner/start_spec.rb +51 -0
  147. data/spec/vraptor-scaffold_spec.rb +4 -0
  148. metadata +261 -0
@@ -0,0 +1,157 @@
1
+ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3
+ <modelVersion>4.0.0</modelVersion>
4
+ <groupId>vraptor-scaffold</groupId>
5
+ <artifactId>vraptor-scaffold</artifactId>
6
+ <packaging>war</packaging>
7
+ <version>0.0.1-SNAPSHOT</version>
8
+ <name>vraptor-scaffold</name>
9
+
10
+ <properties>
11
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
12
+ </properties>
13
+
14
+ <build>
15
+ <outputDirectory>${basedir}/src/main/webapp/WEB-INF/classes</outputDirectory>
16
+ <plugins>
17
+ <plugin>
18
+ <artifactId>maven-compiler-plugin</artifactId>
19
+ <version>2.3.2</version>
20
+ <configuration>
21
+ <source>1.6</source>
22
+ <target>1.6</target>
23
+ <encoding>UTF-8</encoding>
24
+ </configuration>
25
+ </plugin>
26
+ <plugin>
27
+ <artifactId>maven-eclipse-plugin</artifactId>
28
+ <version>2.8</version>
29
+ <configuration>
30
+ <downloadSources>true</downloadSources>
31
+ <downloadJavadocs>true</downloadJavadocs>
32
+ <wtpversion>2.0</wtpversion>
33
+ </configuration>
34
+ </plugin>
35
+ <plugin>
36
+ <groupId>org.apache.maven.plugins</groupId>
37
+ <artifactId>maven-war-plugin</artifactId>
38
+ <version>2.1.1</version>
39
+ </plugin>
40
+ <plugin>
41
+ <groupId>org.mortbay.jetty</groupId>
42
+ <artifactId>maven-jetty-plugin</artifactId>
43
+ <version>6.1.14</version>
44
+ <configuration>
45
+ <scanIntervalSeconds>3</scanIntervalSeconds>
46
+ <stopKey>foo</stopKey>
47
+ <stopPort>9999</stopPort>
48
+ <webAppConfig>
49
+ <contextPath>/</contextPath>
50
+ </webAppConfig>
51
+ </configuration>
52
+ </plugin>
53
+ </plugins>
54
+ </build>
55
+
56
+ <dependencies>
57
+ <dependency>
58
+ <groupId>br.com.caelum</groupId>
59
+ <artifactId>vraptor</artifactId>
60
+ <version>3.4.0</version>
61
+ </dependency>
62
+ <dependency>
63
+ <groupId>opensymphony</groupId>
64
+ <artifactId>sitemesh</artifactId>
65
+ <version>2.4.2</version>
66
+ </dependency>
67
+ <dependency>
68
+ <groupId>javax.servlet</groupId>
69
+ <artifactId>jstl</artifactId>
70
+ <version>1.2</version>
71
+ </dependency>
72
+ <dependency>
73
+ <groupId>org.hsqldb</groupId>
74
+ <artifactId>hsqldb</artifactId>
75
+ <version>2.2.8</version>
76
+ </dependency>
77
+ <dependency>
78
+ <groupId>org.hibernate</groupId>
79
+ <artifactId>hibernate-entitymanager</artifactId>
80
+ <version>4.0.1.Final</version>
81
+ </dependency>
82
+ <dependency>
83
+ <groupId>org.hibernate</groupId>
84
+ <artifactId>hibernate-c3p0</artifactId>
85
+ <version>4.0.1.Final</version>
86
+ </dependency>
87
+ <dependency>
88
+ <groupId>org.hibernate</groupId>
89
+ <artifactId>hibernate-validator</artifactId>
90
+ <version>4.2.0.Final</version>
91
+ </dependency>
92
+ <dependency>
93
+ <groupId>joda-time</groupId>
94
+ <artifactId>joda-time</artifactId>
95
+ <version>2.0</version>
96
+ </dependency>
97
+ <dependency>
98
+ <groupId>com.thoughtworks.xstream</groupId>
99
+ <artifactId>xstream</artifactId>
100
+ <version>1.4.1</version>
101
+ </dependency>
102
+ <dependency>
103
+ <groupId>com.google.code.gson</groupId>
104
+ <artifactId>gson</artifactId>
105
+ <version>2.2.1</version>
106
+ </dependency>
107
+ <dependency>
108
+ <groupId>com.github.filipesperandio.vraptor</groupId>
109
+ <artifactId>vraptor-hypermedia</artifactId>
110
+ <version>3.4.0</version>
111
+ </dependency>
112
+
113
+ <!-- Test dependencies -->
114
+ <dependency>
115
+ <groupId>junit</groupId>
116
+ <artifactId>junit</artifactId>
117
+ <version>4.10</version>
118
+ <scope>test</scope>
119
+ </dependency>
120
+ <dependency>
121
+ <groupId>org.hamcrest</groupId>
122
+ <artifactId>hamcrest-all</artifactId>
123
+ <version>1.1</version>
124
+ <scope>test</scope>
125
+ </dependency>
126
+ <dependency>
127
+ <groupId>org.mockito</groupId>
128
+ <artifactId>mockito-all</artifactId>
129
+ <version>1.9.0</version>
130
+ <scope>test</scope>
131
+ </dependency>
132
+
133
+ <!-- Provided dependencies -->
134
+ <dependency>
135
+ <groupId>javax.servlet</groupId>
136
+ <artifactId>servlet-api</artifactId>
137
+ <version>2.5</version>
138
+ <scope>provided</scope>
139
+ </dependency>
140
+ <dependency>
141
+ <groupId>javax.servlet.jsp</groupId>
142
+ <artifactId>jsp-api</artifactId>
143
+ <version>2.1</version>
144
+ <scope>provided</scope>
145
+ </dependency>
146
+ </dependencies>
147
+
148
+ <reporting>
149
+ <plugins>
150
+ <plugin>
151
+ <groupId>org.codehaus.mojo</groupId>
152
+ <artifactId>cobertura-maven-plugin</artifactId>
153
+ <version>2.5.1</version>
154
+ </plugin>
155
+ </plugins>
156
+ </reporting>
157
+ </project>
@@ -0,0 +1,47 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <projectDescription>
3
+ <name>gae</name>
4
+ <comment></comment>
5
+ <projects>
6
+ </projects>
7
+ <buildSpec>
8
+ <buildCommand>
9
+ <name>org.eclipse.jdt.core.javabuilder</name>
10
+ <arguments>
11
+ </arguments>
12
+ </buildCommand>
13
+ <buildCommand>
14
+ <name>org.eclipse.wst.common.project.facet.core.builder</name>
15
+ <arguments>
16
+ </arguments>
17
+ </buildCommand>
18
+ <buildCommand>
19
+ <name>org.eclipse.wst.validation.validationbuilder</name>
20
+ <arguments>
21
+ </arguments>
22
+ </buildCommand>
23
+ <buildCommand>
24
+ <name>com.google.gdt.eclipse.core.webAppProjectValidator</name>
25
+ <arguments>
26
+ </arguments>
27
+ </buildCommand>
28
+ <buildCommand>
29
+ <name>com.google.appengine.eclipse.core.enhancerbuilder</name>
30
+ <arguments>
31
+ </arguments>
32
+ </buildCommand>
33
+ <buildCommand>
34
+ <name>com.google.appengine.eclipse.core.projectValidator</name>
35
+ <arguments>
36
+ </arguments>
37
+ </buildCommand>
38
+ </buildSpec>
39
+ <natures>
40
+ <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
41
+ <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
42
+ <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
43
+ <nature>org.eclipse.jdt.core.javanature</nature>
44
+ <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
45
+ <nature>com.google.appengine.eclipse.core.gaeNature</nature>
46
+ </natures>
47
+ </projectDescription>
@@ -0,0 +1,7 @@
1
+ build_tool: mvn
2
+ package: app
3
+ template_engine: jsp
4
+ orm: jpa
5
+ models_package: domain
6
+ controllers_package: control
7
+ repositories_package: repository
@@ -0,0 +1,62 @@
1
+ repositories {
2
+ mavenCentral()
3
+ }
4
+
5
+ apply plugin: 'java'
6
+ apply plugin: 'war'
7
+ apply plugin: 'jetty'
8
+ apply plugin: 'eclipse'
9
+ apply plugin: 'project-report'
10
+
11
+ sourceCompatibility = 1.6
12
+ targetCompatibility = 1.6
13
+ version = '1.0'
14
+
15
+ sourceSets {
16
+ main {
17
+ java {
18
+ srcDir 'src/main/java'
19
+ }
20
+ resources {
21
+ srcDir 'src/main/resources'
22
+ }
23
+ }
24
+ test {
25
+ java {
26
+ srcDir 'src/test/java'
27
+ }
28
+ resources {
29
+ srcDir 'src/test/resources'
30
+ }
31
+ }
32
+ }
33
+
34
+ sourceSets.main.classesDir = new File('src/main/webapp/WEB-INF/classes')
35
+
36
+ jettyRun.scanIntervalSeconds=3
37
+ jettyRun.contextPath = '/'
38
+ [jettyRunWar,jettyStop]*.stopPort = 8081
39
+ [jettyRunWar,jettyStop]*.stopKey = 'stopKey'
40
+
41
+ dependencies {
42
+ compile group: 'br.com.caelum.vraptor.plugin', name: 'vraptor-environment', version: '0.0.8'
43
+
44
+ compile group: 'br.com.caelum', name: 'vraptor', version: '3.4.0'
45
+ compile group: 'opensymphony', name: 'sitemesh', version: '2.4.2'
46
+ compile group: 'javax.servlet', name: 'jstl', version: '1.2'
47
+ compile group: 'org.hsqldb', name: 'hsqldb', version: '2.2.8'
48
+ compile group: 'org.hibernate', name: 'hibernate-entitymanager', version: '4.0.1.Final'
49
+ compile group: 'org.hibernate', name: 'hibernate-c3p0', version: '4.0.1.Final'
50
+ compile group: 'org.hibernate', name: 'hibernate-validator', version: '4.2.0.Final'
51
+ compile group: 'joda-time', name: 'joda-time', version: '2.0'
52
+ compile group: 'com.thoughtworks.xstream', name: 'xstream', version: '1.4.1'
53
+
54
+ //Provided dependencies
55
+ providedCompile group: 'javax.servlet', name: 'servlet-api', version: '2.5'
56
+ providedCompile group: 'javax.servlet.jsp', name: 'jsp-api', version: '2.1'
57
+
58
+ //Test dependencies
59
+ testCompile group: 'junit', name: 'junit', version: '4.10'
60
+ testCompile group: 'org.hamcrest', name: 'hamcrest-all', version: '1.1'
61
+ testCompile group: 'org.mockito', name: 'mockito-all', version: '1.9.0'
62
+ }
@@ -0,0 +1,62 @@
1
+ repositories {
2
+ mavenCentral()
3
+ }
4
+
5
+ apply plugin: 'java'
6
+ apply plugin: 'war'
7
+ apply plugin: 'jetty'
8
+ apply plugin: 'eclipse'
9
+ apply plugin: 'project-report'
10
+
11
+ sourceCompatibility = 1.6
12
+ targetCompatibility = 1.6
13
+ version = '1.0'
14
+
15
+ sourceSets {
16
+ main {
17
+ java {
18
+ srcDir 'src/main/java'
19
+ }
20
+ resources {
21
+ srcDir 'src/main/resources'
22
+ }
23
+ }
24
+ test {
25
+ java {
26
+ srcDir 'src/test/java'
27
+ }
28
+ resources {
29
+ srcDir 'src/test/resources'
30
+ }
31
+ }
32
+ }
33
+
34
+ sourceSets.main.classesDir = new File('src/main/webapp/WEB-INF/classes')
35
+
36
+ jettyRun.scanIntervalSeconds=3
37
+ jettyRun.contextPath = '/'
38
+ [jettyRunWar,jettyStop]*.stopPort = 8081
39
+ [jettyRunWar,jettyStop]*.stopKey = 'stopKey'
40
+
41
+ dependencies {
42
+ compile group: 'br.com.caelum.vraptor', name: 'vraptor-environment', version: '0.0.8'
43
+
44
+ compile group: 'br.com.caelum', name: 'vraptor', version: '3.4.0'
45
+ compile group: 'opensymphony', name: 'sitemesh', version: '2.4.2'
46
+ compile group: 'javax.servlet', name: 'jstl', version: '1.2'
47
+ compile group: 'org.hsqldb', name: 'hsqldb', version: '2.2.8'
48
+ compile group: 'org.hibernate', name: 'hibernate-entitymanager', version: '4.0.1.Final'
49
+ compile group: 'org.hibernate', name: 'hibernate-c3p0', version: '4.0.1.Final'
50
+ compile group: 'org.hibernate', name: 'hibernate-validator', version: '4.2.0.Final'
51
+ compile group: 'joda-time', name: 'joda-time', version: '2.0'
52
+ compile group: 'com.thoughtworks.xstream', name: 'xstream', version: '1.4.1'
53
+
54
+ //Provided dependencies
55
+ providedCompile group: 'javax.servlet', name: 'servlet-api', version: '2.5'
56
+ providedCompile group: 'javax.servlet.jsp', name: 'jsp-api', version: '2.1'
57
+
58
+ //Test dependencies
59
+ testCompile group: 'junit', name: 'junit', version: '4.10'
60
+ testCompile group: 'org.hamcrest', name: 'hamcrest-all', version: '1.1'
61
+ testCompile group: 'org.mockito', name: 'mockito-all', version: '1.9.0'
62
+ }
@@ -0,0 +1,41 @@
1
+ <ivy-module version="2.0">
2
+ <info organisation="ant" module="ant" />
3
+
4
+ <configurations>
5
+ <conf name="default" description="dependencies used for compile" />
6
+ <conf name="provided" description="dependencies used for compile but is not packaged" visibility="public" />
7
+ <conf name="test" description="dependencies used for tests" visibility="public" />
8
+ <conf name="jetty" description="dependencies used for jetty" visibility="public" />
9
+ <conf name="minify" description="dependencies used to minify js and css" visibility="public" />
10
+ </configurations>
11
+
12
+ <dependencies>
13
+ <dependency org="br.com.caelum.vraptor" name="vraptor-environment" rev="0.0.8" conf="default" />
14
+ <dependency org="br.com.caelum" name="vraptor" rev="3.4.0" conf="default" />
15
+ <dependency org="opensymphony" name="sitemesh" rev="2.4.2" conf="default" />
16
+ <dependency org="javax.servlet" name="jstl" rev="1.2" conf="default" />
17
+ <dependency org="org.hsqldb" name="hsqldb" rev="2.2.8" conf="default" />
18
+ <dependency org="org.hibernate" name="hibernate-entitymanager" rev="4.0.1.Final" conf="default" />
19
+ <dependency org="org.hibernate" name="hibernate-c3p0" rev="4.0.1.Final" conf="default" />
20
+ <dependency org="org.hibernate" name="hibernate-validator" rev="4.2.0.Final" conf="default" />
21
+ <dependency org="joda-time" name="joda-time" rev="2.0" conf="default" />
22
+ <dependency org="com.thoughtworks.xstream" name="xstream" rev="1.4.1" conf="default" />
23
+
24
+ <!-- Provided dependencies -->
25
+ <dependency org="javax.servlet" name="servlet-api" rev="2.5" conf="provided->default" />
26
+ <dependency org="javax.servlet.jsp" name="jsp-api" rev="2.1" conf="provided->default" />
27
+
28
+ <!-- Test dependencies -->
29
+ <dependency org="junit" name="junit" rev="4.10" conf="test->default" />
30
+ <dependency org="org.hamcrest" name="hamcrest-all" rev="1.1" conf="test->default" />
31
+ <dependency org="org.mockito" name="mockito-all" rev="1.9.0" conf="test->default" />
32
+
33
+ <!-- Jetty dependencies -->
34
+ <dependency org="org.mortbay.jetty" name="jsp-api-2.1" rev="6.1.14" conf="jetty->default" />
35
+ <dependency org="org.mortbay.jetty" name="jsp-2.1" rev="6.1.14" conf="jetty->default" />
36
+ <dependency org="org.mortbay.jetty" name="jetty-ant" rev="6.1.14" conf="jetty->default" />
37
+
38
+ <!-- Minify dependencies -->
39
+ <dependency org="com.yahoo.platform.yui" name="yuicompressor" rev="2.3.6" conf="minify->default" />
40
+ </dependencies>
41
+ </ivy-module>
@@ -0,0 +1,152 @@
1
+ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3
+ <modelVersion>4.0.0</modelVersion>
4
+ <groupId>maven</groupId>
5
+ <artifactId>maven</artifactId>
6
+ <packaging>war</packaging>
7
+ <version>0.0.1-SNAPSHOT</version>
8
+ <name>maven</name>
9
+
10
+ <properties>
11
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
12
+ </properties>
13
+
14
+ <build>
15
+ <outputDirectory>${basedir}/src/main/webapp/WEB-INF/classes</outputDirectory>
16
+ <plugins>
17
+ <plugin>
18
+ <artifactId>maven-compiler-plugin</artifactId>
19
+ <version>2.3.2</version>
20
+ <configuration>
21
+ <source>1.6</source>
22
+ <target>1.6</target>
23
+ <encoding>UTF-8</encoding>
24
+ </configuration>
25
+ </plugin>
26
+ <plugin>
27
+ <artifactId>maven-eclipse-plugin</artifactId>
28
+ <version>2.8</version>
29
+ <configuration>
30
+ <downloadSources>true</downloadSources>
31
+ <downloadJavadocs>true</downloadJavadocs>
32
+ <wtpversion>2.0</wtpversion>
33
+ </configuration>
34
+ </plugin>
35
+ <plugin>
36
+ <groupId>org.apache.maven.plugins</groupId>
37
+ <artifactId>maven-war-plugin</artifactId>
38
+ <version>2.1.1</version>
39
+ </plugin>
40
+ <plugin>
41
+ <groupId>org.mortbay.jetty</groupId>
42
+ <artifactId>maven-jetty-plugin</artifactId>
43
+ <version>6.1.14</version>
44
+ <configuration>
45
+ <scanIntervalSeconds>3</scanIntervalSeconds>
46
+ <stopKey>foo</stopKey>
47
+ <stopPort>9999</stopPort>
48
+ <webAppConfig>
49
+ <contextPath>/</contextPath>
50
+ </webAppConfig>
51
+ </configuration>
52
+ </plugin>
53
+ </plugins>
54
+ </build>
55
+
56
+ <dependencies>
57
+ <dependency>
58
+ <groupId>br.com.caelum.vraptor</groupId>
59
+ <artifactId>vraptor-environment</artifactId>
60
+ <version>0.0.8</version>
61
+ </dependency>
62
+ <dependency>
63
+ <groupId>br.com.caelum</groupId>
64
+ <artifactId>vraptor</artifactId>
65
+ <version>3.4.0</version>
66
+ </dependency>
67
+ <dependency>
68
+ <groupId>opensymphony</groupId>
69
+ <artifactId>sitemesh</artifactId>
70
+ <version>2.4.2</version>
71
+ </dependency>
72
+ <dependency>
73
+ <groupId>javax.servlet</groupId>
74
+ <artifactId>jstl</artifactId>
75
+ <version>1.2</version>
76
+ </dependency>
77
+ <dependency>
78
+ <groupId>org.hsqldb</groupId>
79
+ <artifactId>hsqldb</artifactId>
80
+ <version>2.2.8</version>
81
+ </dependency>
82
+ <dependency>
83
+ <groupId>org.hibernate</groupId>
84
+ <artifactId>hibernate-entitymanager</artifactId>
85
+ <version>4.0.1.Final</version>
86
+ </dependency>
87
+ <dependency>
88
+ <groupId>org.hibernate</groupId>
89
+ <artifactId>hibernate-c3p0</artifactId>
90
+ <version>4.0.1.Final</version>
91
+ </dependency>
92
+ <dependency>
93
+ <groupId>org.hibernate</groupId>
94
+ <artifactId>hibernate-validator</artifactId>
95
+ <version>4.2.0.Final</version>
96
+ </dependency>
97
+ <dependency>
98
+ <groupId>joda-time</groupId>
99
+ <artifactId>joda-time</artifactId>
100
+ <version>2.0</version>
101
+ </dependency>
102
+ <dependency>
103
+ <groupId>com.thoughtworks.xstream</groupId>
104
+ <artifactId>xstream</artifactId>
105
+ <version>1.4.1</version>
106
+ </dependency>
107
+
108
+ <!-- Test dependencies -->
109
+ <dependency>
110
+ <groupId>junit</groupId>
111
+ <artifactId>junit</artifactId>
112
+ <version>4.10</version>
113
+ <scope>test</scope>
114
+ </dependency>
115
+ <dependency>
116
+ <groupId>org.hamcrest</groupId>
117
+ <artifactId>hamcrest-all</artifactId>
118
+ <version>1.1</version>
119
+ <scope>test</scope>
120
+ </dependency>
121
+ <dependency>
122
+ <groupId>org.mockito</groupId>
123
+ <artifactId>mockito-all</artifactId>
124
+ <version>1.9.0</version>
125
+ <scope>test</scope>
126
+ </dependency>
127
+
128
+ <!-- Provided dependencies -->
129
+ <dependency>
130
+ <groupId>javax.servlet</groupId>
131
+ <artifactId>servlet-api</artifactId>
132
+ <version>2.5</version>
133
+ <scope>provided</scope>
134
+ </dependency>
135
+ <dependency>
136
+ <groupId>javax.servlet.jsp</groupId>
137
+ <artifactId>jsp-api</artifactId>
138
+ <version>2.1</version>
139
+ <scope>provided</scope>
140
+ </dependency>
141
+ </dependencies>
142
+
143
+ <reporting>
144
+ <plugins>
145
+ <plugin>
146
+ <groupId>org.codehaus.mojo</groupId>
147
+ <artifactId>cobertura-maven-plugin</artifactId>
148
+ <version>2.5.1</version>
149
+ </plugin>
150
+ </plugins>
151
+ </reporting>
152
+ </project>