diff --git a/build.gradle b/build.gradle old mode 100644 new mode 100755 index cb72e8f..5e70c03 --- a/build.gradle +++ b/build.gradle @@ -10,12 +10,44 @@ buildscript { maven { url "https://plugins.gradle.org/m2/" } +// // ---------------------------------------------------------- +// // Uncomment the below lines to resolve the gateway policy-plugin binaries from the specified directory (i.e., bins) +// // ---------------------------------------------------------- +// 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.+" +// // ---------------------------------------------------------- +// // 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: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..3bb1bd8 --- 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 = "SNAPSHOT" + 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..ef5333a --- 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 = "SNAPSHOT" + 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..c40f324 --- 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 = "SNAPSHOT" + 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..31d3870 --- 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 = "SNAPSHOT" + 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..afdab49 --- 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 = "SNAPSHOT" + 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..a786d2e --- 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 = "SNAPSHOT" + 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..48ee1a6 --- 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 = "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 old mode 100644 new mode 100755 index da46b78..5385ba6 --- 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="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 old mode 100644 new mode 100755 index 4aabd1f..02e5eed --- 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="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/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..b5e504d --- a/service-annotations/build.gradle +++ b/service-annotations/build.gradle @@ -1,29 +1,9 @@ -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 { + 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") + ] + } } -