This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch fix245 in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
commit 4da69a94fee548e2d75cec6aa53b9ca049928b09 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Thu Oct 10 09:02:45 2019 +0200 Remove build scripts no longer needed as we generate this via Camel Maven tooling like we do at Apache Camel --- build/scripts/list-camel-quarkus-extensions.groovy | 43 ---------------------- .../ROOT/pages/_partials/common-extensions.adoc | 5 --- .../ROOT/pages/_partials/component-extensions.adoc | 24 ------------ extensions/pom.xml | 26 ------------- 4 files changed, 98 deletions(-) diff --git a/build/scripts/list-camel-quarkus-extensions.groovy b/build/scripts/list-camel-quarkus-extensions.groovy deleted file mode 100644 index a2d0caa..0000000 --- a/build/scripts/list-camel-quarkus-extensions.groovy +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You 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 java.util.stream.Collectors - -/* Keep in sync with the current file name */ -@groovy.transform.Field static final String currentScript = "list-camel-quarkus-extensions.groovy"; -final File extensionsPomPath = new File("${project.basedir}/pom.xml") -final File componentExtensionsAdocPath = new File("${project.basedir}/../docs/modules/ROOT/pages/_partials/component-extensions.adoc") -final File commonExtensionsAdocPath = new File("${project.basedir}/../docs/modules/ROOT/pages/_partials/common-extensions.adoc") - -def parser = new XmlParser() -def pom = parser.parseText(extensionsPomPath.getText('UTF-8')) -final Set componentExtensions = new TreeSet() -final Set commonExtensions = new TreeSet() -pom.modules.module.each { node -> - final String key = node.text().trim() - if (key.startsWith("core") || key.endsWith("-common")) { - commonExtensions.add(key) - } else { - componentExtensions.add(key) - } -} - -void writeFile(File f, Set<String> keys) { - f.setText('// Generated by ' + currentScript +'\n' + keys.stream().map { k -> '* `camel-quarkus-' + k +'`\n' }.collect(Collectors.joining()), 'UTF-8') -} - -writeFile(componentExtensionsAdocPath, componentExtensions) -writeFile(commonExtensionsAdocPath, commonExtensions) diff --git a/docs/modules/ROOT/pages/_partials/common-extensions.adoc b/docs/modules/ROOT/pages/_partials/common-extensions.adoc deleted file mode 100644 index 5c4952e..0000000 --- a/docs/modules/ROOT/pages/_partials/common-extensions.adoc +++ /dev/null @@ -1,5 +0,0 @@ -// Generated by list-camel-quarkus-extensions.groovy -* `camel-quarkus-core` -* `camel-quarkus-core-cloud` -* `camel-quarkus-http-common` -* `camel-quarkus-xml-common` diff --git a/docs/modules/ROOT/pages/_partials/component-extensions.adoc b/docs/modules/ROOT/pages/_partials/component-extensions.adoc deleted file mode 100644 index f8a301c..0000000 --- a/docs/modules/ROOT/pages/_partials/component-extensions.adoc +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by list-camel-quarkus-extensions.groovy -* `camel-quarkus-aws-eks` -* `camel-quarkus-aws-s3` -* `camel-quarkus-aws-sns` -* `camel-quarkus-aws-sqs` -* `camel-quarkus-bean` -* `camel-quarkus-csv` -* `camel-quarkus-direct` -* `camel-quarkus-infinispan` -* `camel-quarkus-jdbc` -* `camel-quarkus-log` -* `camel-quarkus-mail` -* `camel-quarkus-microprofile-metrics` -* `camel-quarkus-netty-http` -* `camel-quarkus-paho` -* `camel-quarkus-platform-http` -* `camel-quarkus-reactive-executor` -* `camel-quarkus-rest` -* `camel-quarkus-salesforce` -* `camel-quarkus-servlet` -* `camel-quarkus-support` -* `camel-quarkus-timer` -* `camel-quarkus-twitter` -* `camel-quarkus-zipfile` diff --git a/extensions/pom.xml b/extensions/pom.xml index a3c920d..3ba3193 100644 --- a/extensions/pom.xml +++ b/extensions/pom.xml @@ -86,32 +86,6 @@ <itestParentPath>../integration-tests/pom.xml</itestParentPath> </configuration> </plugin> - <plugin> - <groupId>org.codehaus.gmaven</groupId> - <artifactId>groovy-maven-plugin</artifactId> - <version>${groovy-maven-plugin.version}</version> - <inherited>false</inherited> - <executions> - <execution> - <id>list-camel-quarkus-extensions</id> - <goals> - <goal>execute</goal> - </goals> - <phase>validate</phase> - <configuration> - <source>file:///${project.basedir}/../build/scripts/list-camel-quarkus-extensions.groovy</source> - </configuration> - </execution> - </executions> - <dependencies> - <dependency> - <groupId>org.codehaus.groovy</groupId> - <artifactId>groovy-all</artifactId> - <version>${groovy.version}</version> - <type>pom</type> - </dependency> - </dependencies> - </plugin> </plugins> </build> </project>