polygene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nic...@apache.org
Subject [4/5] polygene-java git commit: Current snapshot for Paul (others) to take a close look if he wants.
Date Sun, 21 May 2017 14:38:41 GMT
http://git-wip-us.apache.org/repos/asf/polygene-java/blob/a9de6c65/tools/generator-polygene/app/templates/buildtool/gradle-bootstrap.tmpl
----------------------------------------------------------------------
diff --git a/tools/generator-polygene/app/templates/buildtool/gradle-bootstrap.tmpl b/tools/generator-polygene/app/templates/buildtool/gradle-bootstrap.tmpl
index 0d8dab2..9582076 100644
--- a/tools/generator-polygene/app/templates/buildtool/gradle-bootstrap.tmpl
+++ b/tools/generator-polygene/app/templates/buildtool/gradle-bootstrap.tmpl
@@ -20,25 +20,25 @@
 dependencies {
   compile project( ":model" )
 <% if( polygene.applicationtype === 'Rest API' ) {
-%>  compile project( ":rest" )<% } %>
-
-  compile "org.apache.polygene.core:org.apache.polygene.core.spi:$polygeneVersion"
+%>  compile project( ":rest" )
+<% }
+%>  compile "org.apache.polygene.core:org.apache.polygene.core.spi:$polygeneVersion"
   compile "org.apache.polygene.core:org.apache.polygene.core.bootstrap:$polygeneVersion"
-
   compile "org.apache.polygene.libraries:org.apache.polygene.library.fileconfig:$polygeneVersion"
-<% if( polygene.applicationtype === 'Rest API' ) { %>
-  compile "org.apache.polygene.libraries:org.apache.polygene.library.restlet:$polygeneVersion"
-<% } %>
-  compile "org.apache.polygene.extensions:org.apache.polygene.extension.entitystore-<%=
polygene.entitystoremodule.toLowerCase() %>:$polygeneVersion"
+<% if( polygene.applicationtype === 'Rest API' ) {
+       if( polygene.hasFeature('security') ) {
+%>  compile "org.apache.polygene.libraries:org.apache.polygene.library.shiro-web:$polygeneVersion"
+<%     }
+%>  compile "org.apache.polygene.libraries:org.apache.polygene.library.restlet:$polygeneVersion"
+  compile "org.apache.polygene.libraries:org.apache.polygene.library.http:$polygeneVersion"
+<% }
+%>  compile "org.apache.polygene.extensions:org.apache.polygene.extension.entitystore-<%=
polygene.entitystoremodule.toLowerCase() %>:$polygeneVersion"
   compile "org.apache.polygene.extensions:org.apache.polygene.extension.indexing-<%= polygene.indexing.toLowerCase()
%>:$polygeneVersion"
   compile "org.apache.polygene.extensions:org.apache.polygene.extension.serialization-<%=
polygene.serialization.toLowerCase() %>:$polygeneVersion"
-
-<% if( polygene.caching !== "None" ) { %>
-  compile "org.apache.polygene.extensions:org.apache.polygene.extension.cache-<%= polygene.caching.toLowerCase()
%>:$polygeneVersion"
-<% } %>
-
-<% if( polygene.metrics !== "None" ) { %>
-  compile "org.apache.polygene.extensions:org.apache.polygene.extension.metrics-<%= polygene.metrics.toLowerCase()
%>:$polygeneVersion"
-<% } %>
-
-}
\ No newline at end of file
+<% if( polygene.caching !== "None" ) {
+%>  compile "org.apache.polygene.extensions:org.apache.polygene.extension.cache-<%=
polygene.caching.toLowerCase() %>:$polygeneVersion"
+<% }
+   if( polygene.metrics !== "None" ) {
+%>  compile "org.apache.polygene.extensions:org.apache.polygene.extension.metrics-<%=
polygene.metrics.toLowerCase() %>:$polygeneVersion"
+<% }
+%>}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/polygene-java/blob/a9de6c65/tools/generator-polygene/app/templates/buildtool/gradle-root.tmpl
----------------------------------------------------------------------
diff --git a/tools/generator-polygene/app/templates/buildtool/gradle-root.tmpl b/tools/generator-polygene/app/templates/buildtool/gradle-root.tmpl
index 52b61d5..a6c1f92 100644
--- a/tools/generator-polygene/app/templates/buildtool/gradle-root.tmpl
+++ b/tools/generator-polygene/app/templates/buildtool/gradle-root.tmpl
@@ -31,6 +31,7 @@ allprojects() {
   defaultTasks 'assemble'
 
   repositories {
+    mavenLocal()
     mavenCentral()
     maven { name 'restlet-repo'; url 'http://maven.restlet.org/' }
 <% if( polygene.entitystore == 'Jdbm' ) {


Mime
View raw message