Skip to content

Commit

Permalink
build: 简化插件包名结构
Browse files Browse the repository at this point in the history
  • Loading branch information
Yiuman committed Nov 13, 2024
1 parent f388e62 commit 0b7e435
Show file tree
Hide file tree
Showing 123 changed files with 57 additions and 42 deletions.
5 changes: 5 additions & 0 deletions autoflow-app/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@
<artifactId>spring-boot-starter-web</artifactId>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>

<dependency>
<groupId>io.ola</groupId>
<artifactId>ola-security-starter</artifactId>
Expand Down
6 changes: 6 additions & 0 deletions autoflow-app/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ spring:
init:
schema-locations: classpath:sql/schema.sql
mode: always
management:
endpoints:
web:
exposure:
include:
- '*'
ola:
crud:
default-db-type: mongodb
Expand Down
2 changes: 1 addition & 1 deletion autoflow-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<dependencies>
<dependency>
<groupId>io.autoflow</groupId>
<artifactId>autoflow-all-plugin</artifactId>
<artifactId>autoflow-plugin-all</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<version>${revision}</version>
</parent>

<artifactId>autoflow-gemini-plugin</artifactId>
<artifactId>autoflow-gemini</artifactId>
<version>${revision}</version>

<properties>
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<version>${revision}</version>
</parent>

<artifactId>autoflow-http-plugin</artifactId>
<artifactId>autoflow-http</artifactId>
<version>${revision}</version>

<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@
*/
public class HttpRequestService extends BaseService<HttpRequestParameter, HttpResult> {

@Override
public String getName() {
return "HTTP";
}

private static String extractFilename(String contentDisposition) {
if (StrUtil.isBlank(contentDisposition)) {
return null;
Expand All @@ -45,6 +40,11 @@ private static String extractFilename(String contentDisposition) {
return fileName;
}

@Override
public String getName() {
return "HTTP";
}

@Override
public HttpResult execute(HttpRequestParameter httpRequestParameter, ExecutionContext ctx) {
String url = UrlBuilder.of(httpRequestParameter.getUrl())
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<version>${revision}</version>
</parent>

<artifactId>autoflow-if-plugin</artifactId>
<artifactId>autoflow-if</artifactId>

<properties>
<maven.compiler.source>17</maven.compiler.source>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<version>${revision}</version>
</parent>

<artifactId>autoflow-knowledge-retrieval-plugin</artifactId>
<artifactId>autoflow-knowledge-retrieval</artifactId>
<version>${revision}</version>

<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<version>${revision}</version>
</parent>

<artifactId>autoflow-llm-plugin</artifactId>
<artifactId>autoflow-llm</artifactId>
<version>${revision}</version>

<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<version>${revision}</version>
</parent>

<artifactId>autoflow-loop-each-item-plugin</artifactId>
<artifactId>autoflow-loop-each-item</artifactId>
<version>${revision}</version>

<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<version>${revision}</version>
</parent>

<artifactId>autoflow-openai-plugin</artifactId>
<artifactId>autoflow-openai</artifactId>
<version>${revision}</version>

<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<version>${revision}</version>
</parent>

<artifactId>autoflow-all-plugin</artifactId>
<artifactId>autoflow-plugin-all</artifactId>
<version>${revision}</version>

<properties>
Expand All @@ -21,68 +21,68 @@
<dependencies>
<dependency>
<groupId>io.autoflow</groupId>
<artifactId>autoflow-http-plugin</artifactId>
<artifactId>autoflow-http</artifactId>
<version>${revision}</version>
</dependency>

<dependency>
<groupId>io.autoflow</groupId>
<artifactId>autoflow-regex-plugin</artifactId>
<artifactId>autoflow-regex</artifactId>
<version>${revision}</version>
</dependency>

<dependency>
<groupId>io.autoflow</groupId>
<artifactId>autoflow-sql-plugin</artifactId>
<artifactId>autoflow-sql</artifactId>
<version>${revision}</version>
</dependency>

<dependency>
<groupId>io.autoflow</groupId>
<artifactId>autoflow-if-plugin</artifactId>
<artifactId>autoflow-if</artifactId>
<version>${revision}</version>
</dependency>

<dependency>
<groupId>io.autoflow</groupId>
<artifactId>autoflow-loop-each-item-plugin</artifactId>
<artifactId>autoflow-loop-each-item</artifactId>
<version>${revision}</version>
</dependency>

<dependency>
<groupId>io.autoflow</groupId>
<artifactId>autoflow-openai-plugin</artifactId>
<artifactId>autoflow-openai</artifactId>
<version>${revision}</version>
</dependency>

<dependency>
<groupId>io.autoflow</groupId>
<artifactId>autoflow-gemini-plugin</artifactId>
<artifactId>autoflow-gemini</artifactId>
<version>${revision}</version>
</dependency>

<dependency>
<groupId>io.autoflow</groupId>
<artifactId>autoflow-variable-extract-plugin</artifactId>
<artifactId>autoflow-variable-extract</artifactId>
<version>${revision}</version>
</dependency>

<dependency>
<groupId>io.autoflow</groupId>
<artifactId>autoflow-knowledge-retrieval-plugin</artifactId>
<artifactId>autoflow-knowledge-retrieval</artifactId>
<version>${revision}</version>
</dependency>

<dependency>
<groupId>io.autoflow</groupId>
<artifactId>autoflow-llm-plugin</artifactId>
<artifactId>autoflow-llm</artifactId>
<version>${revision}</version>
</dependency>


<dependency>
<groupId>io.autoflow</groupId>
<artifactId>autoflow-textextractor-plugin</artifactId>
<artifactId>autoflow-textextractor</artifactId>
<version>${revision}</version>
</dependency>
</dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<version>${revision}</version>
</parent>

<artifactId>autoflow-regex-plugin</artifactId>
<artifactId>autoflow-regex</artifactId>

<properties>
<maven.compiler.source>17</maven.compiler.source>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<version>${revision}</version>
</parent>

<artifactId>autoflow-sql-plugin</artifactId>
<artifactId>autoflow-sql</artifactId>

<properties>
<maven.compiler.source>17</maven.compiler.source>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<version>1.0-SNAPSHOT</version>
</parent>

<artifactId>autoflow-textextractor-plugin</artifactId>
<artifactId>autoflow-textextractor</artifactId>

<properties>
<docod.version>0.0.1</docod.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<version>1.0-SNAPSHOT</version>
</parent>

<artifactId>autoflow-variable-extract-plugin</artifactId>
<artifactId>autoflow-variable-extract</artifactId>

<properties>
<maven.compiler.source>17</maven.compiler.source>
Expand Down
24 changes: 12 additions & 12 deletions autoflow-plugins/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@
<packaging>pom</packaging>

<modules>
<module>autoflow-http-plugin</module>
<module>autoflow-all-plugin</module>
<module>autoflow-regex-plugin</module>
<module>autoflow-sql-plugin</module>
<module>autoflow-if-plugin</module>
<module>autoflow-loop-each-item-plugin</module>
<module>autoflow-openai-plugin</module>
<module>autoflow-gemini-plugin</module>
<module>autoflow-variable-extract-plugin</module>
<module>autoflow-knowledge-retrieval-plugin</module>
<module>autoflow-llm-plugin</module>
<module>autoflow-textextractor-plugin</module>
<module>autoflow-plugin-all</module>
<module>autoflow-http</module>
<module>autoflow-regex</module>
<module>autoflow-sql</module>
<module>autoflow-if</module>
<module>autoflow-loop-each-item</module>
<module>autoflow-openai</module>
<module>autoflow-gemini</module>
<module>autoflow-variable-extract</module>
<module>autoflow-knowledge-retrieval</module>
<module>autoflow-llm</module>
<module>autoflow-textextractor</module>
</modules>

<properties>
Expand Down

0 comments on commit 0b7e435

Please sign in to comment.