Update package names
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.springframework.platform.cli.command;
|
||||
package org.springframework.cloud.cli.command;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.springframework.platform.cli.compiler;
|
||||
package org.springframework.cloud.cli.compiler;
|
||||
|
||||
import org.codehaus.groovy.ast.ClassNode;
|
||||
import org.codehaus.groovy.control.CompilationFailedException;
|
||||
@@ -37,7 +37,7 @@ public class CloudfoundryResourceCompilerAutoConfiguration extends CompilerAutoC
|
||||
public void applyDependencies(DependencyCustomizer dependencies) {
|
||||
dependencies
|
||||
.ifAnyMissingClasses(
|
||||
"org.springframework.platform.cloudfoundry.resource.EnableCloudfoundryResource")
|
||||
"org.springframework.cloud.cloudfoundry.resource.EnableCloudfoundryResource")
|
||||
.add("spring-platform-starter-cloudfoundry")
|
||||
.add("org.springframework.security.oauth:spring-security-oauth2:2.0.3.RELEASE");
|
||||
}
|
||||
@@ -45,7 +45,7 @@ public class CloudfoundryResourceCompilerAutoConfiguration extends CompilerAutoC
|
||||
@Override
|
||||
public void applyImports(ImportCustomizer imports) throws CompilationFailedException {
|
||||
imports.addImports(
|
||||
"org.springframework.platform.cloudfoundry.resource.EnableCloudfoundryResource",
|
||||
"org.springframework.cloud.cloudfoundry.resource.EnableCloudfoundryResource",
|
||||
"org.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfigurerAdapter");
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.springframework.platform.cli.compiler;
|
||||
package org.springframework.cloud.cli.compiler;
|
||||
|
||||
import org.codehaus.groovy.ast.ClassNode;
|
||||
import org.codehaus.groovy.control.CompilationFailedException;
|
||||
@@ -37,7 +37,7 @@ public class CloudfoundrySsoCompilerAutoConfiguration extends CompilerAutoConfig
|
||||
public void applyDependencies(DependencyCustomizer dependencies) {
|
||||
dependencies
|
||||
.ifAnyMissingClasses(
|
||||
"org.springframework.platform.cloudfoundry.sso.EnableCloudfoundrySso")
|
||||
"org.springframework.cloud.cloudfoundry.sso.EnableCloudfoundrySso")
|
||||
.add("spring-platform-starter-cloudfoundry")
|
||||
.add("org.springframework.security.oauth:spring-security-oauth2:2.0.3.RELEASE");
|
||||
}
|
||||
@@ -45,8 +45,8 @@ public class CloudfoundrySsoCompilerAutoConfiguration extends CompilerAutoConfig
|
||||
@Override
|
||||
public void applyImports(ImportCustomizer imports) throws CompilationFailedException {
|
||||
imports.addImports(
|
||||
"org.springframework.platform.cloudfoundry.sso.EnableCloudfoundrySso",
|
||||
"org.springframework.platform.cloudfoundry.sso.CloudfoundrySsoConfigurerAdapter");
|
||||
"org.springframework.cloud.cloudfoundry.sso.EnableCloudfoundrySso",
|
||||
"org.springframework.cloud.cloudfoundry.sso.CloudfoundrySsoConfigurerAdapter");
|
||||
}
|
||||
|
||||
}
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.springframework.platform.cli.compiler;
|
||||
package org.springframework.cloud.cli.compiler;
|
||||
|
||||
import org.codehaus.groovy.ast.ClassNode;
|
||||
import org.codehaus.groovy.control.CompilationFailedException;
|
||||
@@ -36,13 +36,13 @@ public class ConfigServerCompilerAutoConfiguration extends CompilerAutoConfigura
|
||||
@Override
|
||||
public void applyDependencies(DependencyCustomizer dependencies) {
|
||||
dependencies
|
||||
.ifAnyMissingClasses("org.springframework.platform.config.server.EnableConfigServer")
|
||||
.ifAnyMissingClasses("org.springframework.cloud.config.server.EnableConfigServer")
|
||||
.add("spring-platform-config-server");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void applyImports(ImportCustomizer imports) throws CompilationFailedException {
|
||||
imports.addImports("org.springframework.platform.config.server.EnableConfigServer");
|
||||
imports.addImports("org.springframework.cloud.config.server.EnableConfigServer");
|
||||
}
|
||||
|
||||
}
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.springframework.platform.cli.compiler;
|
||||
package org.springframework.cloud.cli.compiler;
|
||||
|
||||
import org.codehaus.groovy.ast.ClassNode;
|
||||
import org.codehaus.groovy.control.CompilationFailedException;
|
||||
@@ -36,16 +36,16 @@ public class EurekaClientCompilerAutoConfiguration extends CompilerAutoConfigura
|
||||
@Override
|
||||
public void applyDependencies(DependencyCustomizer dependencies) {
|
||||
dependencies.ifAnyMissingClasses(
|
||||
"org.springframework.platform.netflix.eureka.EnableEurekaClient").add(
|
||||
"org.springframework.cloud.netflix.eureka.EnableEurekaClient").add(
|
||||
"spring-platform-starter-eureka");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void applyImports(ImportCustomizer imports) throws CompilationFailedException {
|
||||
imports.addImports(
|
||||
"org.springframework.platform.netflix.eureka.EnableEurekaClient",
|
||||
"org.springframework.platform.netflix.eureka.EurekaInstanceConfigBean",
|
||||
"org.springframework.platform.netflix.eureka.EurekaClientConfigBean",
|
||||
"org.springframework.cloud.netflix.eureka.EnableEurekaClient",
|
||||
"org.springframework.cloud.netflix.eureka.EurekaInstanceConfigBean",
|
||||
"org.springframework.cloud.netflix.eureka.EurekaClientConfigBean",
|
||||
"com.netflix.discovery.DiscoveryClient",
|
||||
"com.netflix.appinfo.InstanceInfo");
|
||||
}
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.springframework.platform.cli.compiler;
|
||||
package org.springframework.cloud.cli.compiler;
|
||||
|
||||
import org.codehaus.groovy.ast.ClassNode;
|
||||
import org.codehaus.groovy.control.CompilationFailedException;
|
||||
@@ -36,14 +36,14 @@ public class HystrixCompilerAutoConfiguration extends CompilerAutoConfiguration
|
||||
@Override
|
||||
public void applyDependencies(DependencyCustomizer dependencies) {
|
||||
dependencies.ifAnyMissingClasses(
|
||||
"org.springframework.platform.netflix.hystrix.annotations.EnableHystrix")
|
||||
"org.springframework.cloud.netflix.hystrix.annotations.EnableHystrix")
|
||||
.add("spring-platform-starter-hystrix");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void applyImports(ImportCustomizer imports) throws CompilationFailedException {
|
||||
imports.addImports(
|
||||
"org.springframework.platform.netflix.hystrix.annotations.EnableHystrix",
|
||||
"org.springframework.cloud.netflix.hystrix.annotations.EnableHystrix",
|
||||
"com.netflix.hystrix.contrib.javanica.annotation.HystrixCollapser",
|
||||
"com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand");
|
||||
}
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.springframework.platform.cli.compiler;
|
||||
package org.springframework.cloud.cli.compiler;
|
||||
|
||||
import groovy.grape.Grape;
|
||||
|
||||
@@ -44,7 +44,7 @@ public class SpringPlatformCompilerAutoConfiguration extends CompilerAutoConfigu
|
||||
"org.springframework.boot.actuate.endpoint.EnvironmentEndpoint").add(
|
||||
"spring-boot-starter-actuator");
|
||||
dependencies
|
||||
.ifAnyMissingClasses("org.springframework.platform.config.Environment")
|
||||
.ifAnyMissingClasses("org.springframework.cloud.config.Environment")
|
||||
.add("spring-platform-config-client");
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ public class SpringPlatformCompilerAutoConfiguration extends CompilerAutoConfigu
|
||||
}
|
||||
|
||||
private List<Dependencies> getAdditionalDependencies() {
|
||||
String[] components = "org.springframework.platform:spring-platform-components-versions:1.0.0.BUILD-SNAPSHOT"
|
||||
String[] components = "org.springframework.cloud:spring-platform-components-versions:1.0.0.BUILD-SNAPSHOT"
|
||||
.split(":");
|
||||
Map<String, String> dependency;
|
||||
dependency = new HashMap<String, String>();
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.springframework.platform.cli.compiler;
|
||||
package org.springframework.cloud.cli.compiler;
|
||||
|
||||
import org.codehaus.groovy.ast.ClassNode;
|
||||
import org.codehaus.groovy.control.CompilationFailedException;
|
||||
@@ -36,13 +36,13 @@ public class ZuulCompilerAutoConfiguration extends CompilerAutoConfiguration {
|
||||
@Override
|
||||
public void applyDependencies(DependencyCustomizer dependencies) {
|
||||
dependencies
|
||||
.ifAnyMissingClasses("org.springframework.platform.netflix.zuul.EnableZuulProxy")
|
||||
.ifAnyMissingClasses("org.springframework.cloud.netflix.zuul.EnableZuulProxy")
|
||||
.add("spring-platform-starter-zuul");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void applyImports(ImportCustomizer imports) throws CompilationFailedException {
|
||||
imports.addImports("org.springframework.platform.netflix.zuul.EnableZuulProxy");
|
||||
imports.addImports("org.springframework.cloud.netflix.zuul.EnableZuulProxy");
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user