Skip to content
This repository has been archived by the owner on Jun 6, 2023. It is now read-only.

Commit

Permalink
feat: update templates to be able to use ap4k if requested
Browse files Browse the repository at this point in the history
  • Loading branch information
metacosm committed Mar 15, 2019
1 parent 5a55cd5 commit 967a857
Show file tree
Hide file tree
Showing 7 changed files with 72 additions and 30 deletions.
48 changes: 24 additions & 24 deletions pkg/template/assets_vfsdata.go

Large diffs are not rendered by default.

9 changes: 8 additions & 1 deletion pkg/template/tmpl/client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,14 @@
</dependencies>
</dependencyManagement>

<dependencies>
<dependencies>{{ range .Dependencies }}
<dependency>
<groupId>{{.GroupId}}</groupId>
<artifactId>{{.ArtifactId}}</artifactId>{{ if .Version}}
<version>{{.Version}}</version>{{ end }}{{ if .Scope }}
<scope>{{.Scope}}</scope>{{ end }}
</dependency>
{{ end }}
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
Expand Down
9 changes: 8 additions & 1 deletion pkg/template/tmpl/crud/1.5/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,14 @@
</dependencies>
</dependencyManagement>

<dependencies>
<dependencies>{{ range .Dependencies }}
<dependency>
<groupId>{{.GroupId}}</groupId>
<artifactId>{{.ArtifactId}}</artifactId>{{ if .Version}}
<version>{{.Version}}</version>{{ end }}{{ if .Scope }}
<scope>{{.Scope}}</scope>{{ end }}
</dependency>
{{ end }}
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
Expand Down
9 changes: 8 additions & 1 deletion pkg/template/tmpl/crud/2.1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,14 @@
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependencies>{{ range .Dependencies }}
<dependency>
<groupId>{{.GroupId}}</groupId>
<artifactId>{{.ArtifactId}}</artifactId>{{ if .Version}}
<version>{{.Version}}</version>{{ end }}{{ if .Scope }}
<scope>{{.Scope}}</scope>{{ end }}
</dependency>
{{ end }}
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
Expand Down
9 changes: 8 additions & 1 deletion pkg/template/tmpl/jsp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,14 @@
</dependencies>
</dependencyManagement>

<dependencies>
<dependencies>{{ range .Dependencies }}
<dependency>
<groupId>{{.GroupId}}</groupId>
<artifactId>{{.ArtifactId}}</artifactId>{{ if .Version}}
<version>{{.Version}}</version>{{ end }}{{ if .Scope }}
<scope>{{.Scope}}</scope>{{ end }}
</dependency>
{{ end }}
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
Expand Down
9 changes: 8 additions & 1 deletion pkg/template/tmpl/rest/1.5/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,14 @@
</dependencies>
</dependencyManagement>

<dependencies>
<dependencies>{{ range .Dependencies }}
<dependency>
<groupId>{{.GroupId}}</groupId>
<artifactId>{{.ArtifactId}}</artifactId>{{ if .Version}}
<version>{{.Version}}</version>{{ end }}{{ if .Scope }}
<scope>{{.Scope}}</scope>{{ end }}
</dependency>
{{ end }}
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
Expand Down
9 changes: 8 additions & 1 deletion pkg/template/tmpl/rest/2.1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,14 @@
</dependencies>
</dependencyManagement>

<dependencies>
<dependencies>{{ range .Dependencies }}
<dependency>
<groupId>{{.GroupId}}</groupId>
<artifactId>{{.ArtifactId}}</artifactId>{{ if .Version}}
<version>{{.Version}}</version>{{ end }}{{ if .Scope }}
<scope>{{.Scope}}</scope>{{ end }}
</dependency>
{{ end }}
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
Expand Down

0 comments on commit 967a857

Please sign in to comment.