Compare commits
24 Commits
3db8b2211f
...
micro
| Author | SHA1 | Date | |
|---|---|---|---|
| ed184c22c0 | |||
| 9b1f22cb82 | |||
| 7623fdd38a | |||
| ce6f75417c | |||
| 7c379a5ff1 | |||
| 1c4e34d8a8 | |||
| 0eabdb6101 | |||
| 74cbd19a10 | |||
| 14d0755d9f | |||
| d3358e424c | |||
| 055b3983ea | |||
| 8b9329c841 | |||
| 4f3eacd114 | |||
| 5745f10565 | |||
| 43aadbb06b | |||
| 9c24317a18 | |||
| fa259ce453 | |||
| 2ad767722a | |||
| 2caf931a46 | |||
| cd55ec8ca0 | |||
| fde437b8b9 | |||
| cc0062434c | |||
| dc8f834942 | |||
| 9175d32599 |
9
.gitignore
vendored
Normal file
9
.gitignore
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
## IntelliJ IDEA
|
||||
.idea/
|
||||
*.iml
|
||||
|
||||
## Maven
|
||||
target/
|
||||
|
||||
## System
|
||||
.DS_Store
|
||||
3
.vscode/settings.json
vendored
Normal file
3
.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"java.compile.nullAnalysis.mode": "automatic"
|
||||
}
|
||||
11
template/client/pom.xml
Normal file
11
template/client/pom.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>{{ .groupId }}</groupId>
|
||||
<artifactId>{{ .artifactId }}</artifactId>
|
||||
<version>${revision}</version>
|
||||
</parent>
|
||||
<artifactId>{{ .artifactId }}-client</artifactId>
|
||||
</project>
|
||||
@@ -20,11 +20,27 @@
|
||||
<maven.compiler.target>11</maven.compiler.target>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<revision>3.0-SNAPSHOT</revision>
|
||||
{{- if eq .microserviceFrameworkType "SPRING_CLOUD" }}
|
||||
<spring.cloud.version>{{ default "2021.0.9" .microserviceFrameworkVersion }}</spring.cloud.version>
|
||||
{{- end }}
|
||||
{{- if eq .dbType "dm" }}
|
||||
<dm.driver.version>18</dm.driver.version>
|
||||
<db.hiernate.dialect.version>8.1.3.140</db.hiernate.dialect.version>
|
||||
{{- end }}
|
||||
</properties>
|
||||
{{- if eq .microserviceFrameworkType "SPRING_CLOUD" }}
|
||||
<dependencyManagement>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-dependencies</artifactId>
|
||||
<version>${spring.cloud.version}</version>
|
||||
<type>pom</type>
|
||||
<scope>import</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</dependencyManagement>
|
||||
{{- end }}
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>cn.hutool</groupId>
|
||||
@@ -36,12 +52,6 @@
|
||||
<artifactId>javax.persistence-api</artifactId>
|
||||
<version>2.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>4.13</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>ch.qos.logback</groupId>
|
||||
<artifactId>logback-classic</artifactId>
|
||||
@@ -158,15 +168,10 @@
|
||||
<artifactId>javax.annotation-api</artifactId>
|
||||
<version>1.3.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>cn.hutool</groupId>
|
||||
<artifactId>hutool-all</artifactId>
|
||||
<version>5.7.4</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
<version>1.18.20</version>
|
||||
<version>1.18.46</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-collections</groupId>
|
||||
@@ -198,7 +203,7 @@
|
||||
<dependency>
|
||||
<groupId>io.github.think-1024</groupId>
|
||||
<artifactId>toco-all-spring5-springboot2-community</artifactId>
|
||||
<version>2.0</version>
|
||||
<version>2.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.tomcat.embed</groupId>
|
||||
@@ -231,6 +236,13 @@
|
||||
<artifactId>transmittable-thread-local</artifactId>
|
||||
<version>2.12.3</version>
|
||||
</dependency>
|
||||
{{- if and (eq .microserviceFrameworkType "DUBBO") .microserviceFrameworkVersion }}
|
||||
<dependency>
|
||||
<groupId>org.apache.dubbo</groupId>
|
||||
<artifactId>dubbo-spring-boot-starter</artifactId>
|
||||
<version>{{ .microserviceFrameworkVersion }}</version>
|
||||
</dependency>
|
||||
{{- end }}
|
||||
{{- if eq .dbType "dm" }}
|
||||
<dependency>
|
||||
<groupId>dm</groupId>
|
||||
@@ -306,8 +318,11 @@
|
||||
</plugins>
|
||||
</build>
|
||||
<modules>
|
||||
<module>remote_contract/types</module>
|
||||
<module>remote_contract/interfaces</module>
|
||||
<module>public_service</module>
|
||||
<module>entrance</module>
|
||||
<module>common</module>
|
||||
<module>public_service</module>
|
||||
<module>client</module>
|
||||
</modules>
|
||||
</project>
|
||||
@@ -8,4 +8,12 @@
|
||||
<version>${revision}</version>
|
||||
</parent>
|
||||
<artifactId>{{ .artifactId }}-public-service</artifactId>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>{{ .groupId }}</groupId>
|
||||
<artifactId>{{ .artifactId }}-remote-contract-types</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
|
||||
113
template/remote_contract/dist/pom.xml
vendored
Normal file
113
template/remote_contract/dist/pom.xml
vendored
Normal file
@@ -0,0 +1,113 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<groupId>{{ .groupId }}</groupId>
|
||||
<artifactId>{{ .artifactId }}-api</artifactId>
|
||||
<version>3.0-SNAPSHOT</version>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>{{ .groupId }}</groupId>
|
||||
<artifactId>{{ .artifactId }}-remote-contract-interfaces</artifactId>
|
||||
<version>3.0-SNAPSHOT</version>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>{{ .groupId }}</groupId>
|
||||
<artifactId>{{ .artifactId }}-remote-contract-types</artifactId>
|
||||
<version>3.0-SNAPSHOT</version>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.github.think-1024</groupId>
|
||||
<artifactId>toco-all-spring5-springboot2-community</artifactId>
|
||||
<version>2.0</version>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<finalName>{{ .artifactId }}-api</finalName>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-shade-plugin</artifactId>
|
||||
<version>3.5.1</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>shade</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<artifactSet>
|
||||
<includes>
|
||||
<include>{{ .groupId }}:{{ .artifactId }}-remote-contract-interfaces</include>
|
||||
<include>{{ .groupId }}:{{ .artifactId }}-remote-contract-types</include>
|
||||
<include>io.github.think-1024:toco-all-spring5-springboot2-community</include>
|
||||
</includes>
|
||||
</artifactSet>
|
||||
|
||||
<filters>
|
||||
<filter>
|
||||
<artifact>io.github.think-1024:toco-all-spring5-springboot2-community</artifact>
|
||||
<includes>
|
||||
<include>com/vs/query/QueryResult.class</include>
|
||||
<include>com/vs/code/TocoGenerated.class</include>
|
||||
<include>com/vs/code/TocoGenerated$LockLevel.class</include>
|
||||
</includes>
|
||||
</filter>
|
||||
</filters>
|
||||
<shadedArtifactAttached>false</shadedArtifactAttached>
|
||||
<createDependencyReducedPom>false</createDependencyReducedPom>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-resources-plugin</artifactId>
|
||||
<version>3.3.1</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>copy-api-sources</id>
|
||||
<phase>generate-sources</phase>
|
||||
<goals>
|
||||
<goal>copy-resources</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<outputDirectory>${project.build.directory}/api-sources</outputDirectory>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>${project.basedir}/../types/src/main/java</directory>
|
||||
</resource>
|
||||
<resource>
|
||||
<directory>${project.basedir}/../interfaces/src/main/java</directory>
|
||||
</resource>
|
||||
</resources>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<version>3.3.0</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>attach-api-sources</id>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>jar</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<classesDirectory>${project.build.directory}/api-sources</classesDirectory>
|
||||
<classifier>sources</classifier>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
||||
20
template/remote_contract/interfaces/pom.xml
Normal file
20
template/remote_contract/interfaces/pom.xml
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>{{ .groupId }}</groupId>
|
||||
<artifactId>{{ .artifactId }}-remote-contract</artifactId>
|
||||
<version>${revision}</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
<artifactId>{{ .artifactId }}-remote-contract-interfaces</artifactId>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>{{ .groupId }}</groupId>
|
||||
<artifactId>{{ .artifactId }}-remote-contract-types</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
61
template/remote_contract/pom.xml
Normal file
61
template/remote_contract/pom.xml
Normal file
@@ -0,0 +1,61 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<groupId>{{ .groupId }}</groupId>
|
||||
<artifactId>{{ .artifactId }}-remote-contract</artifactId>
|
||||
<version>${revision}</version>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<maven.compiler.source>11</maven.compiler.source>
|
||||
<maven.compiler.target>11</maven.compiler.target>
|
||||
<revision>3.0-SNAPSHOT</revision>
|
||||
<lombok.version>1.18.20</lombok.version>
|
||||
<validation-api.version>2.0.1.Final</validation-api.version>
|
||||
<toco.version>2.0</toco.version>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>io.github.think-1024</groupId>
|
||||
<artifactId>toco-all-spring5-springboot2-community</artifactId>
|
||||
<version>${toco.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>javax.validation</groupId>
|
||||
<artifactId>validation-api</artifactId>
|
||||
<version>${validation-api.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
<version>${lombok.version}</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<pluginManagement>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>3.11.0</version>
|
||||
<configuration>
|
||||
<source>${maven.compiler.source}</source>
|
||||
<target>${maven.compiler.target}</target>
|
||||
<encoding>${project.build.sourceEncoding}</encoding>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</pluginManagement>
|
||||
</build>
|
||||
|
||||
<modules>
|
||||
<module>types</module>
|
||||
<module>interfaces</module>
|
||||
<module>dist</module>
|
||||
</modules>
|
||||
</project>
|
||||
12
template/remote_contract/types/pom.xml
Normal file
12
template/remote_contract/types/pom.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>{{ .groupId }}</groupId>
|
||||
<artifactId>{{ .artifactId }}-remote-contract</artifactId>
|
||||
<version>${revision}</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
<artifactId>{{ .artifactId }}-remote-contract-types</artifactId>
|
||||
</project>
|
||||
@@ -6,6 +6,8 @@ version: 1.0-SNAPSHOT
|
||||
vsVersion: 1.0.0
|
||||
projectId: 3fdc654b-feb2-4d4a-be19-e9ca2998b5d6
|
||||
dbType: mysql
|
||||
microserviceFrameworkType: ""
|
||||
microserviceFrameworkVersion: ""
|
||||
dbHost: 10.0.2.201
|
||||
dbPort: 3306
|
||||
package: "{{ .groupId }}.{{ .artifactId }}"
|
||||
|
||||
Reference in New Issue
Block a user