diff --git a/blade-ops/blade-flowable/Dockerfile b/blade-ops/blade-flowable/Dockerfile new file mode 100644 index 00000000..8ac110db --- /dev/null +++ b/blade-ops/blade-flowable/Dockerfile @@ -0,0 +1,15 @@ +FROM anapsix/alpine-java:8_server-jre_unlimited + +MAINTAINER smallchill@163.com + +RUN mkdir -p /blade/admin + +WORKDIR /blade/admin + +EXPOSE 7002 + +ADD ./target/blade-flowable.jar ./app.jar + +ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "app.jar"] + +CMD ["--spring.profiles.active=test"] diff --git a/blade-ops/blade-flowable/pom.xml b/blade-ops/blade-flowable/pom.xml new file mode 100644 index 00000000..500a24dc --- /dev/null +++ b/blade-ops/blade-flowable/pom.xml @@ -0,0 +1,30 @@ + + + + blade-ops + org.springblade + 2.0.0.RC8 + + 4.0.0 + + blade-flowable + ${project.artifactId} + ${bladex.project.version} + jar + + + + org.springblade + blade-core-boot + ${bladex.tool.version} + + + org.springblade + blade-common + ${bladex.project.version} + + + + diff --git a/blade-ops/blade-flowable/src/main/java/org/springblade/flowable/FlowableApplication.java b/blade-ops/blade-flowable/src/main/java/org/springblade/flowable/FlowableApplication.java new file mode 100644 index 00000000..7101bbc9 --- /dev/null +++ b/blade-ops/blade-flowable/src/main/java/org/springblade/flowable/FlowableApplication.java @@ -0,0 +1,38 @@ +/* + * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the dreamlu.net developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * Author: Chill 庄骞 (smallchill@163.com) + */ +package org.springblade.flowable; + +import org.springblade.core.cloud.feign.EnableBladeFeign; +import org.springblade.core.launch.BladeApplication; +import org.springblade.core.launch.constant.AppConstant; +import org.springframework.cloud.client.SpringCloudApplication; + +/** + * Flowable启动器 + * + * @author Chill + */ +@EnableBladeFeign +@SpringCloudApplication +public class FlowableApplication { + + public static void main(String[] args) { + BladeApplication.run(AppConstant.APPLICATION_FLOWABLE_NAME, FlowableApplication.class, args); + } + +} + diff --git a/blade-ops/blade-flowable/src/main/resources/application-dev.yml b/blade-ops/blade-flowable/src/main/resources/application-dev.yml new file mode 100644 index 00000000..83eab198 --- /dev/null +++ b/blade-ops/blade-flowable/src/main/resources/application-dev.yml @@ -0,0 +1,10 @@ +#服务器端口 +server: + port: 8008 + +#数据源配置 +spring: + datasource: + url: ${blade.datasource.dev.url} + username: ${blade.datasource.dev.username} + password: ${blade.datasource.dev.password} diff --git a/blade-ops/blade-flowable/src/main/resources/application-prod.yml b/blade-ops/blade-flowable/src/main/resources/application-prod.yml new file mode 100644 index 00000000..3665ecfe --- /dev/null +++ b/blade-ops/blade-flowable/src/main/resources/application-prod.yml @@ -0,0 +1,10 @@ +#服务器端口 +server: + port: 8008 + +#数据源配置 +spring: + datasource: + url: ${blade.datasource.prod.url} + username: ${blade.datasource.prod.username} + password: ${blade.datasource.prod.password} diff --git a/blade-ops/blade-flowable/src/main/resources/application-test.yml b/blade-ops/blade-flowable/src/main/resources/application-test.yml new file mode 100644 index 00000000..3e83be8f --- /dev/null +++ b/blade-ops/blade-flowable/src/main/resources/application-test.yml @@ -0,0 +1,10 @@ +#服务器端口 +server: + port: 8008 + +#数据源配置 +spring: + datasource: + url: ${blade.datasource.test.url} + username: ${blade.datasource.test.username} + password: ${blade.datasource.test.password} diff --git a/blade-ops/blade-flowdesign/Dockerfile b/blade-ops/blade-flowdesign/Dockerfile new file mode 100644 index 00000000..cedecf8f --- /dev/null +++ b/blade-ops/blade-flowdesign/Dockerfile @@ -0,0 +1,15 @@ +FROM anapsix/alpine-java:8_server-jre_unlimited + +MAINTAINER smallchill@163.com + +RUN mkdir -p /blade/admin + +WORKDIR /blade/admin + +EXPOSE 7002 + +ADD ./target/blade-flowdesign.jar ./app.jar + +ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "app.jar"] + +CMD ["--spring.profiles.active=test"] diff --git a/blade-ops/blade-flowdesign/pom.xml b/blade-ops/blade-flowdesign/pom.xml new file mode 100644 index 00000000..4c9eb5cb --- /dev/null +++ b/blade-ops/blade-flowdesign/pom.xml @@ -0,0 +1,86 @@ + + + + blade-ops + org.springblade + 2.0.0.RC8 + + 4.0.0 + + blade-flowdesign + ${project.artifactId} + ${bladex.project.version} + jar + + + + org.springframework.boot + spring-boot-starter-web + + + org.springframework.boot + spring-boot-starter-thymeleaf + + + org.springframework.boot + spring-boot-configuration-processor + true + + + net.sourceforge.nekohtml + nekohtml + + + org.liquibase + liquibase-core + + + org.flowable + flowable-spring-boot-starter-process + ${flowable.version} + + + org.flowable + flowable-ui-modeler-rest + ${flowable.version} + + + mysql + mysql-connector-java + 8.0.15 + + + com.alibaba + druid-spring-boot-starter + 1.1.16 + + + + + + + com.spotify + docker-maven-plugin + ${docker.plugin.version} + + ${docker.registry.url}/blade/${project.artifactId}:${project.version} + ${project.basedir} + ${docker.registry.host} + + + / + ${project.build.directory} + ${project.build.finalName}.jar + + + ${docker.registry.url} + ${docker.registry.url} + true + + + + + + diff --git a/blade-ops/blade-flowdesign/src/main/java/org/springblade/flowable/constant/FlowableConstant.java b/blade-ops/blade-flowdesign/src/main/java/org/springblade/flowable/constant/FlowableConstant.java new file mode 100644 index 00000000..102900fc --- /dev/null +++ b/blade-ops/blade-flowdesign/src/main/java/org/springblade/flowable/constant/FlowableConstant.java @@ -0,0 +1,17 @@ +package org.springblade.flowable.constant; + +/** + * Flowable常量 + * + * @author Chill + */ +public interface FlowableConstant { + String BASE_PACHAGE = "org.springblade"; + String FLOWABLE_BASE_PACKAGE = "org.flowable.ui"; + + String css = ".css"; + String js = ".js"; + String jpg = ".jpg"; + String png = ".png"; + String app = "/app"; +} diff --git a/blade-ops/pom.xml b/blade-ops/pom.xml index 54304bfc..7d8fae8b 100644 --- a/blade-ops/pom.xml +++ b/blade-ops/pom.xml @@ -14,6 +14,8 @@ blade-admin blade-develop + blade-flowable + blade-flowdesign diff --git a/pom.xml b/pom.xml index 512c6d15..3bdc5b85 100644 --- a/pom.xml +++ b/pom.xml @@ -19,6 +19,7 @@ 3.1.0 4.0.1 1.6.0 + 6.4.1 0.2.1.RELEASE 2.1.2 @@ -132,6 +133,11 @@ + + release + Release Repository + http://nexus.gitee.ltd/repository/maven-releases/ + aliyun-repos http://maven.aliyun.com/nexus/content/groups/public/ @@ -139,11 +145,6 @@ false - - release - Release Repository - http://nexus.gitee.ltd/repository/maven-releases/ -