Created
June 30, 2021 07:40
-
-
Save hank-cp/61a3fa06263dbc84829b963928e6c188 to your computer and use it in GitHub Desktop.
exlcude_swgger_AutoConfiguration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: demo-rest-webservice/build.gradle | |
IDEA additional info: | |
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP | |
<+>UTF-8 | |
=================================================================== | |
diff --git a/demo-rest-webservice/build.gradle b/demo-rest-webservice/build.gradle | |
--- a/demo-rest-webservice/build.gradle (revision 83203192094a08d33f1c69856764be3819634ab0) | |
+++ b/demo-rest-webservice/build.gradle (revision 0ce0458e65d07edf7c88de3de1713a217e9163b7) | |
@@ -1,6 +1,5 @@ | |
dependencies { | |
- compile project(':sbp-spring-boot-starter') | |
- | |
+// compile project(':sbp-spring-boot-starter') | |
implementation "org.springframework.boot:spring-boot-starter-web" | |
implementation "io.springfox:springfox-boot-starter:3.0.0" | |
Index: demo-rest-webservice/src/main/resources/application.yml | |
IDEA additional info: | |
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP | |
<+>UTF-8 | |
=================================================================== | |
diff --git a/demo-rest-webservice/src/main/resources/application.yml b/demo-rest-webservice/src/main/resources/application.yml | |
--- a/demo-rest-webservice/src/main/resources/application.yml (revision 83203192094a08d33f1c69856764be3819634ab0) | |
+++ b/demo-rest-webservice/src/main/resources/application.yml (revision 0ce0458e65d07edf7c88de3de1713a217e9163b7) | |
@@ -1,8 +1,11 @@ | |
spring: | |
sbp: | |
- runtimeMode: deployment | |
+ classes-directories: | |
+ - "out/production/classes" | |
+ - "out/production/resources" | |
+ runtimeMode: development | |
enabled: true | |
auto-start-plugin : true | |
- plugins-root: extensions | |
+ plugins-root: plugins | |
controller: | |
base-path: sbpmanager | |
Index: plugins/demo-plugin-service/src/main/java/demo/sbp/service/ServicePlugin.java | |
IDEA additional info: | |
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP | |
<+>UTF-8 | |
=================================================================== | |
diff --git a/plugins/demo-plugin-service/src/main/java/demo/sbp/service/ServicePlugin.java b/plugins/demo-plugin-service/src/main/java/demo/sbp/service/ServicePlugin.java | |
--- a/plugins/demo-plugin-service/src/main/java/demo/sbp/service/ServicePlugin.java (revision 83203192094a08d33f1c69856764be3819634ab0) | |
+++ b/plugins/demo-plugin-service/src/main/java/demo/sbp/service/ServicePlugin.java (revision 0ce0458e65d07edf7c88de3de1713a217e9163b7) | |
@@ -15,10 +15,13 @@ | |
*/ | |
package demo.sbp.service; | |
-import org.pf4j.PluginWrapper; | |
import org.laxture.sbp.SpringBootPlugin; | |
-import org.laxture.sbp.spring.boot.SharedDataSourceSpringBootstrap; | |
import org.laxture.sbp.spring.boot.SpringBootstrap; | |
+import org.pf4j.PluginWrapper; | |
+ | |
+import java.util.ArrayList; | |
+import java.util.Arrays; | |
+import java.util.List; | |
/** | |
* @author <a href="https://github.com/hank-cp">Hank CP</a> | |
@@ -31,10 +34,15 @@ | |
@Override | |
protected SpringBootstrap createSpringBootstrap() { | |
- SpringBootstrap bootstrap = new SpringBootstrap(this, ServicePluginStarter.class); | |
-// if (getMainApplicationContext().containsBean(SecurityConfig.class.getName())) { | |
-// bootstrap.addPresetProperty("sbp.security.enabled", true); | |
-// } | |
+ SpringBootstrap bootstrap = new SpringBootstrap(this, ServicePluginStarter.class) { | |
+ @Override | |
+ protected String[] getExcludeConfigurations() { | |
+ List<String> excludes = new ArrayList<>( | |
+ Arrays.asList(super.getExcludeConfigurations())); | |
+ excludes.add("springfox.boot.starter.autoconfigure.OpenApiAutoConfiguration"); | |
+ return excludes.toArray(new String[]{}); | |
+ } | |
+ }; | |
return bootstrap; | |
} | |
Index: plugins/disabled.txt | |
IDEA additional info: | |
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP | |
<+>UTF-8 | |
=================================================================== | |
diff --git a/plugins/disabled.txt b/plugins/disabled.txt | |
--- a/plugins/disabled.txt (revision 83203192094a08d33f1c69856764be3819634ab0) | |
+++ b/plugins/disabled.txt (revision 0ce0458e65d07edf7c88de3de1713a217e9163b7) | |
@@ -3,7 +3,7 @@ | |
# - add one plugin id on each line | |
# - put this file in plugins folder | |
######################################## | |
-#demo-plugin-author | |
-#demo-plugin-shelf | |
-#demo-plugin-admin | |
-#demo-plugin-library | |
+demo-plugin-author | |
+demo-plugin-shelf | |
+demo-plugin-admin | |
+demo-plugin-library | |
Index: settings.gradle | |
IDEA additional info: | |
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP | |
<+>UTF-8 | |
=================================================================== | |
diff --git a/settings.gradle b/settings.gradle | |
--- a/settings.gradle (revision 83203192094a08d33f1c69856764be3819634ab0) | |
+++ b/settings.gradle (revision 0ce0458e65d07edf7c88de3de1713a217e9163b7) | |
@@ -1,23 +1,27 @@ | |
-include 'sbp-core', | |
- 'sbp-spring-boot-starter', | |
- 'demo-shared', | |
- 'demo-security', | |
- 'demo-api', | |
- 'demo-plugin-author-api', | |
- 'demo-app', | |
+//include 'sbp-core', | |
+// 'sbp-spring-boot-starter', | |
+// 'demo-shared', | |
+// 'demo-security', | |
+// 'demo-api', | |
+// 'demo-plugin-author-api', | |
+// 'demo-app', | |
+// 'demo-rest-webservice', | |
+// 'demo-plugin-author', | |
+// 'demo-plugin-shelf', | |
+// 'demo-plugin-library', | |
+// 'demo-plugin-admin', | |
+// 'demo-plugin-service' | |
+ | |
+include 'demo-api', | |
'demo-rest-webservice', | |
- 'demo-plugin-author', | |
- 'demo-plugin-shelf', | |
- 'demo-plugin-library', | |
- 'demo-plugin-admin', | |
'demo-plugin-service' | |
project(":demo-api").projectDir = file("demo-apis/demo-api") | |
-project(":demo-plugin-author-api").projectDir = file("demo-apis/demo-plugin-author-api") | |
+//project(":demo-plugin-author-api").projectDir = file("demo-apis/demo-plugin-author-api") | |
-project(":demo-plugin-author").projectDir = file("plugins/demo-plugin-author") | |
-project(":demo-plugin-shelf").projectDir = file("plugins/demo-plugin-shelf") | |
-project(":demo-plugin-library").projectDir = file("plugins/demo-plugin-library") | |
-project(":demo-plugin-admin").projectDir = file("plugins/demo-plugin-admin") | |
+//project(":demo-plugin-author").projectDir = file("plugins/demo-plugin-author") | |
+//project(":demo-plugin-shelf").projectDir = file("plugins/demo-plugin-shelf") | |
+//project(":demo-plugin-library").projectDir = file("plugins/demo-plugin-library") | |
+//project(":demo-plugin-admin").projectDir = file("plugins/demo-plugin-admin") | |
project(":demo-plugin-service").projectDir = file("plugins/demo-plugin-service") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment