Update package names

This commit is contained in:
Dave Syer
2014-08-29 13:34:36 +01:00
parent 7d3f98b8c5
commit 408535a235
8 changed files with 25 additions and 25 deletions

View File

@@ -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;

View File

@@ -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");
}

View File

@@ -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");
}
}

View File

@@ -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");
}
}

View File

@@ -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");
}

View File

@@ -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");
}

View File

@@ -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>();

View File

@@ -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");
}
}