Skip to content

Commit 6d502f4

Browse files
committed
[fit] 优化版本号设置
1 parent 4a64ada commit 6d502f4

File tree

62 files changed

+177
-695
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+177
-695
lines changed

framework/fit/java/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ FIT 函数平台是一套支持多语言融合编程、插件化开发、聚散
55
- 插件化开发:FIT 为多种编程语言分别提供了插件开发标准,允许插件在不依赖其他插件的前提下调用其他插件所提供的服务。
66
- 聚散部署:FIT 为多种编程语言分别提供了运行时环境,允许插件在其运行时环境中既可以单个插件独立进程运行,也可以多个插件共享进程运行。
77
- 共享内存:FIT 支持插件之间共享内存,即使多个插件分散为多个进程部署,也可以以内存访问的效率来访问共享数据。
8+
89
## 快速开始
910

1011
以下是在`Java`中完整的`FIT`应用程序的简单说明。
@@ -16,6 +17,7 @@ FIT 函数平台是一套支持多语言融合编程、插件化开发、聚散
1617
* Maven,推荐版本 Maven 3.8.8+
1718
* 对 fitframework 构建:在 framework/fit/java 目录下使用 Maven 对框架进行编译:`mvn clean install`
1819
* 对 您的项目 构建:在您的项目下进行编译:`mvn clean install`
20+
1921
#### 0. 依赖
2022
在系统生成的 pom 文件中,添加 Web 相关的依赖,如下所示:
2123

@@ -38,6 +40,7 @@ FIT 函数平台是一套支持多语言融合编程、插件化开发、聚散
3840
</dependency>
3941
</dependencies>
4042
```
43+
4144
#### 1. 创建启动器
4245
通过 FitStarter 类的静态方法 start 去启动整个应用,使 FIT 框架对启动类进行识别,示例如下:
4346
``` java
@@ -52,6 +55,7 @@ public class DemoApplication {
5255
}
5356
}
5457
```
58+
5559
#### 2. 创建控制器
5660
在该应用程序中,HTTP 请求由控制器处理。我们可以创建相应的控制器和方法来进行处理,示例如下:
5761
``` java
@@ -71,11 +75,15 @@ public class Controller {
7175
}
7276
}
7377
```
78+
7479
#### 3. 启动
7580
当前应用启动有两种方式:
7681
- 通过 IDEA 启动:您可以直接在 IDEA 运行 main 方法。
7782
- 通过执行 JAR 文件:您可以使用 Maven 在命令行运行,构建一个包含所有必要依赖项、类和资源的单个可执行 JAR 文件,并运行该文件。
7883

84+
## 发布
85+
86+
进入 FIT for Java 根目录(即当前文件所处目录),执行命令 `mvn clean deploy`
7987

8088
## 更多内容
8189
### FIT 快速入门指南

framework/fit/java/fit-aop/fit-aop-aspect/pom.xml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -53,21 +53,10 @@
5353
<plugin>
5454
<groupId>org.fitframework</groupId>
5555
<artifactId>fit-dependency-maven-plugin</artifactId>
56-
<version>${fit.version}</version>
57-
<executions>
58-
<execution>
59-
<id>dependency</id>
60-
<phase>compile</phase>
61-
<goals>
62-
<goal>dependency</goal>
63-
</goals>
64-
</execution>
65-
</executions>
6656
</plugin>
6757
<plugin>
6858
<groupId>org.apache.maven.plugins</groupId>
6959
<artifactId>maven-jar-plugin</artifactId>
70-
<version>${maven.jar.version}</version>
7160
<configuration>
7261
<outputDirectory>../../target/lib/</outputDirectory>
7362
<archive>

framework/fit/java/fit-aop/fit-aop-bytebuddy/pom.xml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -57,21 +57,10 @@
5757
<plugin>
5858
<groupId>org.fitframework</groupId>
5959
<artifactId>fit-dependency-maven-plugin</artifactId>
60-
<version>${fit.version}</version>
61-
<executions>
62-
<execution>
63-
<id>dependency</id>
64-
<phase>compile</phase>
65-
<goals>
66-
<goal>dependency</goal>
67-
</goals>
68-
</execution>
69-
</executions>
7060
</plugin>
7161
<plugin>
7262
<groupId>org.apache.maven.plugins</groupId>
7363
<artifactId>maven-dependency-plugin</artifactId>
74-
<version>${maven.dependency.version}</version>
7564
<executions>
7665
<execution>
7766
<id>copy-dependencies</id>
@@ -89,7 +78,6 @@
8978
<plugin>
9079
<groupId>org.apache.maven.plugins</groupId>
9180
<artifactId>maven-jar-plugin</artifactId>
92-
<version>${maven.jar.version}</version>
9381
<configuration>
9482
<outputDirectory>../../target/lib/</outputDirectory>
9583
<archive>

framework/fit/java/fit-aop/fit-aop/pom.xml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,21 +49,10 @@
4949
<plugin>
5050
<groupId>org.fitframework</groupId>
5151
<artifactId>fit-dependency-maven-plugin</artifactId>
52-
<version>${fit.version}</version>
53-
<executions>
54-
<execution>
55-
<id>dependency</id>
56-
<phase>compile</phase>
57-
<goals>
58-
<goal>dependency</goal>
59-
</goals>
60-
</execution>
61-
</executions>
6252
</plugin>
6353
<plugin>
6454
<groupId>org.apache.maven.plugins</groupId>
6555
<artifactId>maven-jar-plugin</artifactId>
66-
<version>${maven.jar.version}</version>
6756
<configuration>
6857
<outputDirectory>../../target/lib/</outputDirectory>
6958
<archive>

framework/fit/java/fit-api/pom.xml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
<artifactId>fit-api</artifactId>
1313

1414
<dependencies>
15+
<!-- FIT core -->
1516
<dependency>
1617
<groupId>org.fitframework</groupId>
1718
<artifactId>fit-util</artifactId>
@@ -40,21 +41,10 @@
4041
<plugin>
4142
<groupId>org.fitframework</groupId>
4243
<artifactId>fit-dependency-maven-plugin</artifactId>
43-
<version>${fit.version}</version>
44-
<executions>
45-
<execution>
46-
<id>dependency</id>
47-
<phase>compile</phase>
48-
<goals>
49-
<goal>dependency</goal>
50-
</goals>
51-
</execution>
52-
</executions>
5344
</plugin>
5445
<plugin>
5546
<groupId>org.apache.maven.plugins</groupId>
5647
<artifactId>maven-jar-plugin</artifactId>
57-
<version>${maven.jar.version}</version>
5848
<configuration>
5949
<outputDirectory>../target/shared/</outputDirectory>
6050
<archive>

framework/fit/java/fit-broker/pom.xml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
<artifactId>fit-broker</artifactId>
1313

1414
<dependencies>
15+
<!-- FIT core -->
1516
<dependency>
1617
<groupId>org.fitframework</groupId>
1718
<artifactId>fit-api</artifactId>
@@ -29,7 +30,7 @@
2930
<artifactId>fit-util</artifactId>
3031
</dependency>
3132

32-
<!-- Genericables -->
33+
<!-- Services -->
3334
<dependency>
3435
<groupId>org.fitframework.service</groupId>
3536
<artifactId>fit-message-serializer</artifactId>
@@ -70,21 +71,10 @@
7071
<plugin>
7172
<groupId>org.fitframework</groupId>
7273
<artifactId>fit-dependency-maven-plugin</artifactId>
73-
<version>${fit.version}</version>
74-
<executions>
75-
<execution>
76-
<id>dependency</id>
77-
<phase>compile</phase>
78-
<goals>
79-
<goal>dependency</goal>
80-
</goals>
81-
</execution>
82-
</executions>
8374
</plugin>
8475
<plugin>
8576
<groupId>org.apache.maven.plugins</groupId>
8677
<artifactId>maven-dependency-plugin</artifactId>
87-
<version>${maven.dependency.version}</version>
8878
<executions>
8979
<execution>
9080
<id>copy-dependencies</id>
@@ -103,7 +93,6 @@
10393
<plugin>
10494
<groupId>org.apache.maven.plugins</groupId>
10595
<artifactId>maven-jar-plugin</artifactId>
106-
<version>${maven.jar.version}</version>
10796
<configuration>
10897
<outputDirectory>../target/lib/</outputDirectory>
10998
<archive>

framework/fit/java/fit-builtin/plugins/fit-actuator/pom.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
<dependency>
3333
<groupId>org.projectlombok</groupId>
3434
<artifactId>lombok</artifactId>
35-
<version>1.18.36</version>
3635
<scope>provided</scope>
3736
</dependency>
3837

@@ -59,7 +58,6 @@
5958
<plugin>
6059
<groupId>org.apache.maven.plugins</groupId>
6160
<artifactId>maven-antrun-plugin</artifactId>
62-
<version>${maven.antrun.version}</version>
6361
<executions>
6462
<execution>
6563
<phase>package</phase>

framework/fit/java/fit-builtin/plugins/fit-client-http/pom.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<artifactId>fit-reactor</artifactId>
2727
</dependency>
2828

29-
<!-- Micro genericables -->
29+
<!-- Services -->
3030
<dependency>
3131
<groupId>org.fitframework.service</groupId>
3232
<artifactId>fit-client</artifactId>
@@ -38,7 +38,6 @@
3838
<dependency>
3939
<groupId>org.fitframework.service</groupId>
4040
<artifactId>fit-security</artifactId>
41-
<version>${fit.version}</version>
4241
</dependency>
4342

4443
<!-- Test -->
@@ -64,7 +63,6 @@
6463
<plugin>
6564
<groupId>org.apache.maven.plugins</groupId>
6665
<artifactId>maven-antrun-plugin</artifactId>
67-
<version>${maven.antrun.version}</version>
6866
<executions>
6967
<execution>
7068
<phase>package</phase>

framework/fit/java/fit-builtin/plugins/fit-dynamic-plugin-directory/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
<plugin>
4646
<groupId>org.apache.maven.plugins</groupId>
4747
<artifactId>maven-antrun-plugin</artifactId>
48-
<version>${maven.antrun.version}</version>
4948
<executions>
5049
<execution>
5150
<phase>package</phase>

framework/fit/java/fit-builtin/plugins/fit-heartbeat-client/pom.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<artifactId>fit-util</artifactId>
2323
</dependency>
2424

25-
<!-- Micro genericables -->
25+
<!-- Services -->
2626
<dependency>
2727
<groupId>org.fitframework.service</groupId>
2828
<artifactId>fit-heartbeat</artifactId>
@@ -51,7 +51,6 @@
5151
<plugin>
5252
<groupId>org.apache.maven.plugins</groupId>
5353
<artifactId>maven-antrun-plugin</artifactId>
54-
<version>${maven.antrun.version}</version>
5554
<executions>
5655
<execution>
5756
<phase>package</phase>

0 commit comments

Comments
 (0)