diff --git a/src/handlers/commands/support/java/javaPatterns.ts b/src/handlers/commands/support/java/javaPatterns.ts deleted file mode 100644 index def7c58d..00000000 --- a/src/handlers/commands/support/java/javaPatterns.ts +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright © 2018 Atomist, Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { BaseParameter } from "@atomist/automation-client/internal/metadata/decoratorSupport"; - -/** - * Validation pattern for Java identifiers - * @type BaseParameter - * @ModuleExport - * @deprecated moved to sdm-pack-spring - */ -export const JavaIdentifierRegExp: Partial = { - description: "valid Java identifier name", - pattern: /^([$a-zA-Z_][\w$]*)*$/, - validInput: "a valid Java identifier", - minLength: 1, - maxLength: 150, -}; - -/** - * A useful parameter definition - * @type BaseParameter - * @ModuleExport - * @deprecated moved to sdm-pack-spring - */ -export const JavaPackageRegExp: Partial = { - displayName: "Root Package", - description: "root package for your generated source, often this will be namespaced under the group ID", - pattern: /^([a-zA-Z_][.\w]*)*$/, - validInput: "valid java package name", - minLength: 0, - maxLength: 150, -}; - -/** - * A useful parameter definition - * @type BaseParameter - * @ModuleExport - * @deprecated moved to sdm-pack-spring - */ -export const MavenArtifactIdRegExp: Partial = { - displayName: "Maven Artifact ID", - description: "Maven artifact identifier, i.e., the name of the jar without the version." + - " Defaults to the project name", - pattern: /^([a-z][-a-z0-9_]*)$/, - validInput: "a valid Maven artifact ID, which starts with a lower-case letter and contains only " + - " alphanumeric, -, and _ characters. Defaults to project name", - minLength: 1, - maxLength: 50, -}; - -/** - * A useful parameter definition - * @type BaseParameter - * @deprecated moved to sdm-pack-spring - */ -export const MavenGroupIdRegExp: Partial = { - displayName: "Maven Group ID", - description: "Maven group identifier, often used to provide a namespace for your project," + - " e.g., com.pany.team", - pattern: /^([A-Za-z\-_][A-Za-z0-9_\-.]*)$/, - validInput: "a valid Maven group ID, which starts with a letter, -, or _ and contains only" + - " alphanumeric, -, and _ characters and may having leading period separated identifiers starting" + - " with letters or underscores and containing only alphanumeric and _ characters.", - minLength: 1, - maxLength: 50, -}; diff --git a/src/index.ts b/src/index.ts index ab5cdcd6..e222207d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,7 +1,6 @@ export { DockerBuildGoal, LocalEndpointGoal, LocalUndeploymentGoal, NoGoals, StagingUndeploymentGoal, TagGoal, VersionGoal, }from "./pack/well-known-goals/commonGoals"; -export { JavaIdentifierRegExp, JavaPackageRegExp, MavenArtifactIdRegExp, MavenGroupIdRegExp } from "./handlers/commands/support/java/javaPatterns"; export { DefaultLocalDeployerOptions } from "./internal/delivery/deploy/local/LocalDeployerOptions"; export { ManagedDeploymentTargeter } from "./internal/delivery/deploy/local/ManagedDeployments"; export {