Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-77885

buildType is hard coded to gradle in Archetyper

    Details

      Description

      In Archetyper, buildType is hard-coded now.

      _setProperty(properties, "buildType", "gradle")
      

      So when we create a maven type project, some thing could be wrong.
      For example:
      In mvc-portlet template, the original bnd.bnd content is:

      Bundle-Name: ${artifactId}
      Bundle-SymbolicName: ${package}
      Bundle-Version: ${version}
      Export-Package: ${package}.constants#if (${buildType} != "gradle")
      
      -jsp: *.jsp,*.jspf
      -plugin.jsp: com.liferay.ant.bnd.jsp.JspAnalyzerPlugin
      -plugin.resourcebundle: com.liferay.ant.bnd.resource.bundle.ResourceBundleLoaderAnalyzerPlugin
      -plugin.sass: com.liferay.ant.bnd.sass.SassAnalyzerPlugin
      -sass: *#end
      

      Generated bnd.bnd
      except result:

      Bundle-Name: my-test-mvc-portlet
      Bundle-SymbolicName: my.test.mvc.portlet
      Bundle-Version: 1.0.0
      Export-Package: my.test.mvc.portlet.constants
      -jsp: *.jsp,*.jspf
      -plugin.jsp: com.liferay.ant.bnd.jsp.JspAnalyzerPlugin
      -plugin.resourcebundle: com.liferay.ant.bnd.resource.bundle.ResourceBundleLoaderAnalyzerPlugin
      -plugin.sass: com.liferay.ant.bnd.sass.SassAnalyzerPlugin
      -sass: *
      

      actual result:

      Bundle-Name: my-test-mvc-portlet
      Bundle-SymbolicName: my.test.mvc.portlet
      Bundle-Version: 1.0.0
      Export-Package: my.test.mvc.portlet.constants
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              gregory.amerson Gregory Amerson
              Reporter:
              joye.luo Joye Luo (Inactive)
              Participants of an Issue:
              Recent user:
              Jason Pince
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 42 weeks ago

                  Packages

                  Version Package
                  7.1.0 M2
                  7.1.X
                  Master