From 551fe96a8715bc2b5055e4a1ba576c0c90aba9f9 Mon Sep 17 00:00:00 2001 From: Raju Gurram Date: Tue, 6 Jul 2021 13:08:53 +0530 Subject: [PATCH 1/3] revising the gradle build configuration --- build.gradle | 37 +++++++++++++++++-- cassandra-example/build.gradle | 32 ++++------------ clusterproperty-example/build.gradle | 34 ++++------------- encass-annotations/build.gradle | 20 ---------- gradle.properties | 1 + http2client-example/build.gradle | 32 ++++------------ idprovider-example/build.gradle | 32 ++++------------ jdbcconnection-example/build.gradle | 33 ++++------------- jms-example/build.gradle | 34 ++++------------- mqnative-example/build.gradle | 34 ++++------------- password-example/build.gradle | 34 ++++------------- privatekey-example/build.gradle | 34 ++++------------- ...culator.asmx?wsdl.wsdl => calculator.wsdl} | 0 ...PlayerStats?wsdl.wsdl => PlayerStats.wsdl} | 0 service-annotations/build.gradle | 35 ++++-------------- 15 files changed, 111 insertions(+), 281 deletions(-) mode change 100644 => 100755 build.gradle mode change 100644 => 100755 cassandra-example/build.gradle mode change 100644 => 100755 clusterproperty-example/build.gradle mode change 100644 => 100755 encass-annotations/build.gradle create mode 100755 gradle.properties mode change 100644 => 100755 http2client-example/build.gradle mode change 100644 => 100755 idprovider-example/build.gradle mode change 100644 => 100755 jdbcconnection-example/build.gradle mode change 100644 => 100755 jms-example/build.gradle mode change 100644 => 100755 mqnative-example/build.gradle mode change 100644 => 100755 password-example/build.gradle mode change 100644 => 100755 privatekey-example/build.gradle rename routings/src/main/gateway/soapResources/routings/soap/Calculator/{calculator.asmx?wsdl.wsdl => calculator.wsdl} (100%) rename routings/src/main/gateway/soapResources/routings/soap/PlayerStatsService/{PlayerStats?wsdl.wsdl => PlayerStats.wsdl} (100%) mode change 100644 => 100755 service-annotations/build.gradle diff --git a/build.gradle b/build.gradle old mode 100644 new mode 100755 index cb72e8f..ebbd457 --- a/build.gradle +++ b/build.gradle @@ -10,12 +10,41 @@ buildscript { maven { url "https://plugins.gradle.org/m2/" } + /* + flatDir { + dirs 'bins' + } + */ } + dependencies { - // "+" will always pull the latest available - classpath "com.ca.apim.gateway:gateway-policy-plugin:1.0.+" - classpath "com.ca.apim.gateway:gateway-export-plugin:1.0.+" - classpath "com.ca.apim.gateway:gateway-import-plugin:1.0.+" + /* + classpath 'org.apache.commons:commons-compress:1.18' + classpath 'org.reflections:reflections:0.9.11' + classpath 'com.google.inject:guice:4.2.1' + classpath group: 'com.fasterxml.jackson.dataformat', name: 'jackson-dataformat-yaml', version: '2.9.6' + classpath group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.9.6' + classpath 'org.bouncycastle:bcprov-jdk15on:1.60' + classpath 'commons-io:commons-io:2.6' + classpath 'org.apache.commons:commons-lang3:3.8.1' + classpath 'com.fasterxml.jackson.core:jackson-databind:2.9.7' + classpath 'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.9.7' + classpath 'com.google.guava:guava:26.0-jre' + classpath 'com.google.inject:guice:4.2.1' + classpath 'org.apache.commons:commons-collections4:4.2' + classpath 'org.jetbrains:annotations:16.0.2' + classpath 'org.reflections:reflections:0.9.11' + classpath 'org.apache.httpcomponents:httpclient:4.5.5' + classpath 'org.slf4j:slf4j-simple:1.7.25' + classpath 'org.apache.commons:commons-text:1.6' + classpath "com.bmuschko:gradle-docker-plugin:4.6.2" + + classpath "com.ca.apim.gateway:config-builder:$gatewayPluginVersion" + classpath "com.ca.apim.gateway:environment-creator-application:$gatewayPluginVersion" + */ + classpath "com.ca.apim.gateway:gateway-policy-plugin:$gatewayPluginVersion" + classpath "com.ca.apim.gateway:gateway-export-plugin:$gatewayPluginVersion" + classpath "com.ca.apim.gateway:gateway-import-plugin:$gatewayPluginVersion" } } diff --git a/cassandra-example/build.gradle b/cassandra-example/build.gradle old mode 100644 new mode 100755 index 92a3b96..cb118de --- a/cassandra-example/build.gradle +++ b/cassandra-example/build.gradle @@ -1,30 +1,12 @@ -buildscript { - repositories { - gradlePluginPortal() - mavenCentral() - jcenter() - } - dependencies { - classpath "com.ca.apim.gateway:config-builder:1.0.+" - classpath "com.ca.apim.gateway:environment-creator-application:1.0.+" - classpath "com.ca.apim.gateway:gateway-policy-plugin:1.0.+" - classpath "com.ca.apim.gateway:gateway-export-plugin:1.0.+" - } -} -apply plugin: 'com.ca.apim.gateway.gateway-export-plugin' -apply plugin: 'com.ca.apim.gateway.gateway-policy-plugin' group = "cassandraConnection" version = '1.0.0' -repositories { - gradlePluginPortal() - mavenCentral() - jcenter() -} -EnvironmentConfig{ - name="cassandraExample" - map=[ - "CASSANDRA_CONNECTION": file("./src/main/gateway/config/cassandra-connections.yml") - ] +GatewaySourceConfig { + EnvironmentConfig { + name = "cassandraExample" + map = [ + "CASSANDRA_CONNECTION": file("./src/main/gateway/config/cassandra-connections.yml") + ] + } } diff --git a/clusterproperty-example/build.gradle b/clusterproperty-example/build.gradle old mode 100644 new mode 100755 index d53efe2..002043f --- a/clusterproperty-example/build.gradle +++ b/clusterproperty-example/build.gradle @@ -1,30 +1,12 @@ -buildscript { - repositories { - gradlePluginPortal() - mavenCentral() - jcenter() - } - dependencies { - classpath "com.ca.apim.gateway:config-builder:1.0.+" - classpath "com.ca.apim.gateway:environment-creator-application:1.0.+" - classpath "com.ca.apim.gateway:gateway-policy-plugin:1.0.+" - classpath "com.ca.apim.gateway:gateway-export-plugin:1.0.+" - } -} -apply plugin: 'com.ca.apim.gateway.gateway-export-plugin' -apply plugin: 'com.ca.apim.gateway.gateway-policy-plugin' group = "clusterproperty" version = '1.0.0' -repositories { - gradlePluginPortal() - mavenCentral() - jcenter() -} -EnvironmentConfig{ - name="clusterPropertyExample" - map=[ - "PROPERTY": file("./src/main/gateway/config/global-env.properties") - ] -} \ No newline at end of file +GatewaySourceConfig { + EnvironmentConfig { + name = "clusterPropertyExample" + map = [ + "PROPERTY": file("./src/main/gateway/config/global-env.properties") + ] + } +} diff --git a/encass-annotations/build.gradle b/encass-annotations/build.gradle old mode 100644 new mode 100755 index db06207..cd69a9c --- a/encass-annotations/build.gradle +++ b/encass-annotations/build.gradle @@ -1,23 +1,3 @@ -buildscript { - repositories { - gradlePluginPortal() - mavenCentral() - jcenter() - } - dependencies { - classpath "com.ca.apim.gateway:config-builder:1.0.+" - classpath "com.ca.apim.gateway:environment-creator-application:1.0.+" - classpath "com.ca.apim.gateway:gateway-policy-plugin:1.0.+" - classpath "com.ca.apim.gateway:gateway-export-plugin:1.0.+" - } -} -apply plugin: 'com.ca.apim.gateway.gateway-export-plugin' -apply plugin: 'com.ca.apim.gateway.gateway-policy-plugin' group = "encassExample" version = '1.0.0' -repositories { - gradlePluginPortal() - mavenCentral() - jcenter() -} diff --git a/gradle.properties b/gradle.properties new file mode 100755 index 0000000..abeb2aa --- /dev/null +++ b/gradle.properties @@ -0,0 +1 @@ +gatewayPluginVersion=1.0.7 \ No newline at end of file diff --git a/http2client-example/build.gradle b/http2client-example/build.gradle old mode 100644 new mode 100755 index 418a1b3..f62f832 --- a/http2client-example/build.gradle +++ b/http2client-example/build.gradle @@ -1,30 +1,12 @@ -buildscript { - repositories { - gradlePluginPortal() - mavenCentral() - jcenter() - } - dependencies { - classpath "com.ca.apim.gateway:config-builder:1.0.+" - classpath "com.ca.apim.gateway:environment-creator-application:1.0.+" - classpath "com.ca.apim.gateway:gateway-policy-plugin:1.0.+" - classpath "com.ca.apim.gateway:gateway-export-plugin:1.0.+" - } -} -apply plugin: 'com.ca.apim.gateway.gateway-export-plugin' -apply plugin: 'com.ca.apim.gateway.gateway-policy-plugin' group = "http2client" version = '1.0.0' -repositories { - gradlePluginPortal() - mavenCentral() - jcenter() -} -EnvironmentConfig{ - name="http2clientExample" - map=[ - "GENERIC": file("./src/main/gateway/config/generic-entities.yml") - ] +GatewaySourceConfig { + EnvironmentConfig { + name = "http2clientExample" + map = [ + "GENERIC": file("./src/main/gateway/config/generic-entities.yml") + ] + } } diff --git a/idprovider-example/build.gradle b/idprovider-example/build.gradle old mode 100644 new mode 100755 index ef80a3d..fc72b34 --- a/idprovider-example/build.gradle +++ b/idprovider-example/build.gradle @@ -1,30 +1,12 @@ -buildscript { - repositories { - gradlePluginPortal() - mavenCentral() - jcenter() - } - dependencies { - classpath "com.ca.apim.gateway:config-builder:1.0.+" - classpath "com.ca.apim.gateway:environment-creator-application:1.0.+" - classpath "com.ca.apim.gateway:gateway-policy-plugin:1.0.+" - classpath "com.ca.apim.gateway:gateway-export-plugin:1.0.+" - } -} -apply plugin: 'com.ca.apim.gateway.gateway-export-plugin' -apply plugin: 'com.ca.apim.gateway.gateway-policy-plugin' group = "idprovider" version = '1.0.0' -repositories { - gradlePluginPortal() - mavenCentral() - jcenter() -} -EnvironmentConfig{ - name="idproviderExample" - map=[ - "IDENTITY_PROVIDER": file("./src/main/gateway/config/identity-providers.yml") - ] +GatewaySourceConfig { + EnvironmentConfig { + name = "idproviderExample" + map = [ + "IDENTITY_PROVIDER": file("./src/main/gateway/config/identity-providers.yml") + ] + } } diff --git a/jdbcconnection-example/build.gradle b/jdbcconnection-example/build.gradle old mode 100644 new mode 100755 index a58728f..66029fb --- a/jdbcconnection-example/build.gradle +++ b/jdbcconnection-example/build.gradle @@ -1,30 +1,13 @@ -buildscript { - repositories { - gradlePluginPortal() - mavenCentral() - jcenter() - } - dependencies { - classpath "com.ca.apim.gateway:config-builder:1.0.+" - classpath "com.ca.apim.gateway:environment-creator-application:1.0.+" - classpath "com.ca.apim.gateway:gateway-policy-plugin:1.0.+" - classpath "com.ca.apim.gateway:gateway-export-plugin:1.0.+" - } -} -apply plugin: 'com.ca.apim.gateway.gateway-export-plugin' -apply plugin: 'com.ca.apim.gateway.gateway-policy-plugin' group = "jdbcconnection" version = '1.0.0' -repositories { - gradlePluginPortal() - mavenCentral() - jcenter() -} -EnvironmentConfig{ - name="jdbcExample" - map=[ - "JDBC_CONNECTION": file("./src/main/gateway/config/jdbc-connections.yml") - ] +GatewaySourceConfig { + EnvironmentConfig { + name = "jdbcExample" + map = [ + "JDBC_CONNECTION": file("./src/main/gateway/config/jdbc-connections.yml") + ] + } } + diff --git a/jms-example/build.gradle b/jms-example/build.gradle old mode 100644 new mode 100755 index de0a00d..53f5123 --- a/jms-example/build.gradle +++ b/jms-example/build.gradle @@ -1,30 +1,12 @@ -buildscript { - repositories { - gradlePluginPortal() - mavenCentral() - jcenter() - } - dependencies { - classpath "com.ca.apim.gateway:config-builder:1.0.+" - classpath "com.ca.apim.gateway:environment-creator-application:1.0.+" - classpath "com.ca.apim.gateway:gateway-policy-plugin:1.0.+" - classpath "com.ca.apim.gateway:gateway-export-plugin:1.0.+" - } -} -apply plugin: 'com.ca.apim.gateway.gateway-export-plugin' -apply plugin: 'com.ca.apim.gateway.gateway-policy-plugin' group = "jmsconnection" version = '1.0.0' -repositories { - gradlePluginPortal() - mavenCentral() - jcenter() -} -EnvironmentConfig{ - name="jmsExample" - map=[ - "JMS_DESTINATION": file("./src/main/gateway/config/jms-destinations.yml") - ] -} \ No newline at end of file +GatewaySourceConfig { + EnvironmentConfig { + name = "jmsExample" + map = [ + "JMS_DESTINATION": file("./src/main/gateway/config/jms-destinations.yml") + ] + } +} diff --git a/mqnative-example/build.gradle b/mqnative-example/build.gradle old mode 100644 new mode 100755 index e82c4d9..d0fa99c --- a/mqnative-example/build.gradle +++ b/mqnative-example/build.gradle @@ -1,30 +1,12 @@ -buildscript { - repositories { - gradlePluginPortal() - mavenCentral() - jcenter() - } - dependencies { - classpath "com.ca.apim.gateway:config-builder:1.0.+" - classpath "com.ca.apim.gateway:environment-creator-application:1.0.+" - classpath "com.ca.apim.gateway:gateway-policy-plugin:1.0.+" - classpath "com.ca.apim.gateway:gateway-export-plugin:1.0.+" - } -} -apply plugin: 'com.ca.apim.gateway.gateway-export-plugin' -apply plugin: 'com.ca.apim.gateway.gateway-policy-plugin' group = "mqnative" version = '1.0.0' -repositories { - gradlePluginPortal() - mavenCentral() - jcenter() -} -EnvironmentConfig{ - name="mqnativeExample" - map=[ - "SSG_ACTIVE_CONNECTOR": file("./src/main/gateway/config/active-connectors.yml") - ] -} \ No newline at end of file +GatewaySourceConfig { + EnvironmentConfig { + name = "mqnativeExample" + map = [ + "SSG_ACTIVE_CONNECTOR": file("./src/main/gateway/config/active-connectors.yml") + ] + } +} diff --git a/password-example/build.gradle b/password-example/build.gradle old mode 100644 new mode 100755 index da46b78..e1a720e --- a/password-example/build.gradle +++ b/password-example/build.gradle @@ -1,30 +1,12 @@ -buildscript { - repositories { - gradlePluginPortal() - mavenCentral() - jcenter() - } - dependencies { - classpath "com.ca.apim.gateway:config-builder:1.0.+" - classpath "com.ca.apim.gateway:environment-creator-application:1.0.+" - classpath "com.ca.apim.gateway:gateway-policy-plugin:1.0.+" - classpath "com.ca.apim.gateway:gateway-export-plugin:1.0.+" - } -} -apply plugin: 'com.ca.apim.gateway.gateway-export-plugin' -apply plugin: 'com.ca.apim.gateway.gateway-policy-plugin' group = "storedpassword" version = '1.0.0' -repositories { - gradlePluginPortal() - mavenCentral() - jcenter() -} -EnvironmentConfig{ - name="passwordExample" - map=[ - "PASSWORD.jdbc_con_pass": file("./src/main/gateway/config/stored-passwords.properties") - ] -} \ No newline at end of file +GatewaySourceConfig { + EnvironmentConfig{ + name="passwordExample" + map=[ + "PASSWORD.jdbc_con_pass": file("./src/main/gateway/config/stored-passwords.properties") + ] + } +} diff --git a/privatekey-example/build.gradle b/privatekey-example/build.gradle old mode 100644 new mode 100755 index 4aabd1f..b4687a3 --- a/privatekey-example/build.gradle +++ b/privatekey-example/build.gradle @@ -1,31 +1,13 @@ -buildscript { - repositories { - gradlePluginPortal() - mavenCentral() - jcenter() - } - dependencies { - classpath "com.ca.apim.gateway:config-builder:1.0.+" - classpath "com.ca.apim.gateway:environment-creator-application:1.0.+" - classpath "com.ca.apim.gateway:gateway-policy-plugin:1.0.+" - classpath "com.ca.apim.gateway:gateway-export-plugin:1.0.+" - } -} -apply plugin: 'com.ca.apim.gateway.gateway-export-plugin' -apply plugin: 'com.ca.apim.gateway.gateway-policy-plugin' group = "privatekey" version = '1.0.0' -repositories { - gradlePluginPortal() - mavenCentral() - jcenter() -} -EnvironmentConfig{ - name="privateKeyExample" - map=[ - "PRIVATE_KEY.test": file("./src/main/gateway/config/private-keys.yml"), - "PRIVATE_KEY_FILE.test.p12": file("./src/main/gateway/config/privateKeys/test.p12") - ] +GatewaySourceConfig { + EnvironmentConfig { + name="privateKeyExample" + map = [ + "PRIVATE_KEY.test": file("./src/main/gateway/config/private-keys.yml"), + "PRIVATE_KEY_FILE.test.p12": file("./src/main/gateway/config/privateKeys/test.p12") + ] + } } diff --git a/routings/src/main/gateway/soapResources/routings/soap/Calculator/calculator.asmx?wsdl.wsdl b/routings/src/main/gateway/soapResources/routings/soap/Calculator/calculator.wsdl similarity index 100% rename from routings/src/main/gateway/soapResources/routings/soap/Calculator/calculator.asmx?wsdl.wsdl rename to routings/src/main/gateway/soapResources/routings/soap/Calculator/calculator.wsdl diff --git a/routings/src/main/gateway/soapResources/routings/soap/PlayerStatsService/PlayerStats?wsdl.wsdl b/routings/src/main/gateway/soapResources/routings/soap/PlayerStatsService/PlayerStats.wsdl similarity index 100% rename from routings/src/main/gateway/soapResources/routings/soap/PlayerStatsService/PlayerStats?wsdl.wsdl rename to routings/src/main/gateway/soapResources/routings/soap/PlayerStatsService/PlayerStats.wsdl diff --git a/service-annotations/build.gradle b/service-annotations/build.gradle old mode 100644 new mode 100755 index e803b22..34531dd --- a/service-annotations/build.gradle +++ b/service-annotations/build.gradle @@ -1,29 +1,10 @@ -buildscript { - repositories { - gradlePluginPortal() - mavenCentral() - jcenter() - } - dependencies { - classpath "com.ca.apim.gateway:config-builder:1.0.+" - classpath "com.ca.apim.gateway:environment-creator-application:1.0.+" - classpath "com.ca.apim.gateway:gateway-policy-plugin:1.0.+" - classpath "com.ca.apim.gateway:gateway-export-plugin:1.0.+" - } -} -apply plugin: 'com.ca.apim.gateway.gateway-export-plugin' -apply plugin: 'com.ca.apim.gateway.gateway-policy-plugin' -group = "service" -version = '1.0.0' -repositories { - gradlePluginPortal() - mavenCentral() - jcenter() -} -EnvironmentConfig{ - name="CertificateExample" - map = ["CERTIFICATE.www.google.com":file("./src/main/gateway/config/trusted-certs.yml"), - "CERTIFICATE_FILE.www.google.com.pem":file("./src/main/gateway/config/certificates/www.google.com.pem")] +GatewaySourceConfig { + EnvironmentConfig { + name = "CertificateExample" + map = [ + "CERTIFICATE.www.google.com":file("./src/main/gateway/config/trusted-certs.yml"), + "CERTIFICATE_FILE.www.google.com.pem":file("./src/main/gateway/config/certificates/www.google.com.pem") + ] + } } - From d60ca340d1e71adf63844649a94f61f011d2e015 Mon Sep 17 00:00:00 2001 From: Raju Gurram Date: Tue, 6 Jul 2021 15:06:52 +0530 Subject: [PATCH 2/3] modified config names to more appropriate keywords --- cassandra-example/build.gradle | 2 +- clusterproperty-example/build.gradle | 2 +- http2client-example/build.gradle | 2 +- idprovider-example/build.gradle | 2 +- jdbcconnection-example/build.gradle | 2 +- jms-example/build.gradle | 2 +- mqnative-example/build.gradle | 2 +- password-example/build.gradle | 2 +- privatekey-example/build.gradle | 2 +- service-annotations/build.gradle | 1 - 10 files changed, 9 insertions(+), 10 deletions(-) diff --git a/cassandra-example/build.gradle b/cassandra-example/build.gradle index cb118de..3bb1bd8 100755 --- a/cassandra-example/build.gradle +++ b/cassandra-example/build.gradle @@ -4,7 +4,7 @@ version = '1.0.0' GatewaySourceConfig { EnvironmentConfig { - name = "cassandraExample" + name = "SNAPSHOT" map = [ "CASSANDRA_CONNECTION": file("./src/main/gateway/config/cassandra-connections.yml") ] diff --git a/clusterproperty-example/build.gradle b/clusterproperty-example/build.gradle index 002043f..ef5333a 100755 --- a/clusterproperty-example/build.gradle +++ b/clusterproperty-example/build.gradle @@ -4,7 +4,7 @@ version = '1.0.0' GatewaySourceConfig { EnvironmentConfig { - name = "clusterPropertyExample" + name = "SNAPSHOT" map = [ "PROPERTY": file("./src/main/gateway/config/global-env.properties") ] diff --git a/http2client-example/build.gradle b/http2client-example/build.gradle index f62f832..c40f324 100755 --- a/http2client-example/build.gradle +++ b/http2client-example/build.gradle @@ -4,7 +4,7 @@ version = '1.0.0' GatewaySourceConfig { EnvironmentConfig { - name = "http2clientExample" + name = "SNAPSHOT" map = [ "GENERIC": file("./src/main/gateway/config/generic-entities.yml") ] diff --git a/idprovider-example/build.gradle b/idprovider-example/build.gradle index fc72b34..31d3870 100755 --- a/idprovider-example/build.gradle +++ b/idprovider-example/build.gradle @@ -4,7 +4,7 @@ version = '1.0.0' GatewaySourceConfig { EnvironmentConfig { - name = "idproviderExample" + name = "SNAPSHOT" map = [ "IDENTITY_PROVIDER": file("./src/main/gateway/config/identity-providers.yml") ] diff --git a/jdbcconnection-example/build.gradle b/jdbcconnection-example/build.gradle index 66029fb..afdab49 100755 --- a/jdbcconnection-example/build.gradle +++ b/jdbcconnection-example/build.gradle @@ -4,7 +4,7 @@ version = '1.0.0' GatewaySourceConfig { EnvironmentConfig { - name = "jdbcExample" + name = "SNAPSHOT" map = [ "JDBC_CONNECTION": file("./src/main/gateway/config/jdbc-connections.yml") ] diff --git a/jms-example/build.gradle b/jms-example/build.gradle index 53f5123..a786d2e 100755 --- a/jms-example/build.gradle +++ b/jms-example/build.gradle @@ -4,7 +4,7 @@ version = '1.0.0' GatewaySourceConfig { EnvironmentConfig { - name = "jmsExample" + name = "SNAPSHOT" map = [ "JMS_DESTINATION": file("./src/main/gateway/config/jms-destinations.yml") ] diff --git a/mqnative-example/build.gradle b/mqnative-example/build.gradle index d0fa99c..48ee1a6 100755 --- a/mqnative-example/build.gradle +++ b/mqnative-example/build.gradle @@ -4,7 +4,7 @@ version = '1.0.0' GatewaySourceConfig { EnvironmentConfig { - name = "mqnativeExample" + name = "RELEASE" map = [ "SSG_ACTIVE_CONNECTOR": file("./src/main/gateway/config/active-connectors.yml") ] diff --git a/password-example/build.gradle b/password-example/build.gradle index e1a720e..5385ba6 100755 --- a/password-example/build.gradle +++ b/password-example/build.gradle @@ -4,7 +4,7 @@ version = '1.0.0' GatewaySourceConfig { EnvironmentConfig{ - name="passwordExample" + name="SNAPSHOT" map=[ "PASSWORD.jdbc_con_pass": file("./src/main/gateway/config/stored-passwords.properties") ] diff --git a/privatekey-example/build.gradle b/privatekey-example/build.gradle index b4687a3..02e5eed 100755 --- a/privatekey-example/build.gradle +++ b/privatekey-example/build.gradle @@ -4,7 +4,7 @@ version = '1.0.0' GatewaySourceConfig { EnvironmentConfig { - name="privateKeyExample" + name="RELEASE" map = [ "PRIVATE_KEY.test": file("./src/main/gateway/config/private-keys.yml"), "PRIVATE_KEY_FILE.test.p12": file("./src/main/gateway/config/privateKeys/test.p12") diff --git a/service-annotations/build.gradle b/service-annotations/build.gradle index 34531dd..b5e504d 100755 --- a/service-annotations/build.gradle +++ b/service-annotations/build.gradle @@ -1,7 +1,6 @@ GatewaySourceConfig { EnvironmentConfig { - name = "CertificateExample" map = [ "CERTIFICATE.www.google.com":file("./src/main/gateway/config/trusted-certs.yml"), "CERTIFICATE_FILE.www.google.com.pem":file("./src/main/gateway/config/certificates/www.google.com.pem") From 43483e178360221308088230ea38d644420ef395 Mon Sep 17 00:00:00 2001 From: Raju Gurram Date: Tue, 6 Jul 2021 15:13:43 +0530 Subject: [PATCH 3/3] specified few comments about the commented section --- build.gradle | 59 +++++++++++++++++++++++++++------------------------- 1 file changed, 31 insertions(+), 28 deletions(-) diff --git a/build.gradle b/build.gradle index ebbd457..5e70c03 100755 --- a/build.gradle +++ b/build.gradle @@ -10,38 +10,41 @@ buildscript { maven { url "https://plugins.gradle.org/m2/" } - /* - flatDir { - dirs 'bins' - } - */ +// // ---------------------------------------------------------- +// // Uncomment the below lines to resolve the gateway policy-plugin binaries from the specified directory (i.e., bins) +// // ---------------------------------------------------------- +// flatDir { +// dirs 'bins' +// } } dependencies { - /* - classpath 'org.apache.commons:commons-compress:1.18' - classpath 'org.reflections:reflections:0.9.11' - classpath 'com.google.inject:guice:4.2.1' - classpath group: 'com.fasterxml.jackson.dataformat', name: 'jackson-dataformat-yaml', version: '2.9.6' - classpath group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.9.6' - classpath 'org.bouncycastle:bcprov-jdk15on:1.60' - classpath 'commons-io:commons-io:2.6' - classpath 'org.apache.commons:commons-lang3:3.8.1' - classpath 'com.fasterxml.jackson.core:jackson-databind:2.9.7' - classpath 'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.9.7' - classpath 'com.google.guava:guava:26.0-jre' - classpath 'com.google.inject:guice:4.2.1' - classpath 'org.apache.commons:commons-collections4:4.2' - classpath 'org.jetbrains:annotations:16.0.2' - classpath 'org.reflections:reflections:0.9.11' - classpath 'org.apache.httpcomponents:httpclient:4.5.5' - classpath 'org.slf4j:slf4j-simple:1.7.25' - classpath 'org.apache.commons:commons-text:1.6' - classpath "com.bmuschko:gradle-docker-plugin:4.6.2" +// // ---------------------------------------------------------- +// // Uncomment the below lines to resolve the gateway policy-plugin dependencies explicitly +// // ---------------------------------------------------------- +// classpath 'org.apache.commons:commons-compress:1.18' +// classpath 'org.reflections:reflections:0.9.11' +// classpath 'com.google.inject:guice:4.2.1' +// classpath group: 'com.fasterxml.jackson.dataformat', name: 'jackson-dataformat-yaml', version: '2.9.6' +// classpath group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.9.6' +// classpath 'org.bouncycastle:bcprov-jdk15on:1.60' +// classpath 'commons-io:commons-io:2.6' +// classpath 'org.apache.commons:commons-lang3:3.8.1' +// classpath 'com.fasterxml.jackson.core:jackson-databind:2.9.7' +// classpath 'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.9.7' +// classpath 'com.google.guava:guava:26.0-jre' +// classpath 'com.google.inject:guice:4.2.1' +// classpath 'org.apache.commons:commons-collections4:4.2' +// classpath 'org.jetbrains:annotations:16.0.2' +// classpath 'org.reflections:reflections:0.9.11' +// classpath 'org.apache.httpcomponents:httpclient:4.5.5' +// classpath 'org.slf4j:slf4j-simple:1.7.25' +// classpath 'org.apache.commons:commons-text:1.6' +// classpath "com.bmuschko:gradle-docker-plugin:4.6.2" +// +// classpath "com.ca.apim.gateway:config-builder:$gatewayPluginVersion" +// classpath "com.ca.apim.gateway:environment-creator-application:$gatewayPluginVersion" - classpath "com.ca.apim.gateway:config-builder:$gatewayPluginVersion" - classpath "com.ca.apim.gateway:environment-creator-application:$gatewayPluginVersion" - */ classpath "com.ca.apim.gateway:gateway-policy-plugin:$gatewayPluginVersion" classpath "com.ca.apim.gateway:gateway-export-plugin:$gatewayPluginVersion" classpath "com.ca.apim.gateway:gateway-import-plugin:$gatewayPluginVersion"