This is an automated email from the ASF dual-hosted git repository. rfscholte pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-javadoc-plugin.git
The following commit(s) were added to refs/heads/master by this push: new 9e86675 [MJAVADOC-552] Author tag is removed 9e86675 is described below commit 9e866756046d5fafc52983a54c5a87a3d0653957 Author: rfscholte <rfscho...@apache.org> AuthorDate: Sat Dec 29 12:21:22 2018 +0100 [MJAVADOC-552] Author tag is removed --- .../MJAVADOC-552_fix-author/invoker.properties | 18 +++++++++ src/it/projects/MJAVADOC-552_fix-author/pom.xml | 47 ++++++++++++++++++++++ .../src/main/java/com/example/FirstBug.java | 34 ++++++++++++++++ .../projects/MJAVADOC-552_fix-author/verify.groovy | 26 ++++++++++++ 4 files changed, 125 insertions(+) diff --git a/src/it/projects/MJAVADOC-552_fix-author/invoker.properties b/src/it/projects/MJAVADOC-552_fix-author/invoker.properties new file mode 100644 index 0000000..2f27cf0 --- /dev/null +++ b/src/it/projects/MJAVADOC-552_fix-author/invoker.properties @@ -0,0 +1,18 @@ +# 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. + +invoker.goals=javadoc:fix compile javadoc:javadoc diff --git a/src/it/projects/MJAVADOC-552_fix-author/pom.xml b/src/it/projects/MJAVADOC-552_fix-author/pom.xml new file mode 100644 index 0000000..d8e2f31 --- /dev/null +++ b/src/it/projects/MJAVADOC-552_fix-author/pom.xml @@ -0,0 +1,47 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + 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. +--> + +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + <groupId>org.apache.maven.plugins.maven-javadoc-plugin.it</groupId> + <artifactId>mjavadoc552</artifactId> + <version>1.0.0-SNAPSHOT</version> + + <url>https://issues.apache.org/jira/browse/MJAVADOC-552</url> + + <build> + <pluginManagement> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-javadoc-plugin</artifactId> + <version>@project.version@</version> + <configuration> + <force>true</force> + <ignoreClirr>true</ignoreClirr> + </configuration> + </plugin> + </plugins> + </pluginManagement> + </build> + +</project> diff --git a/src/it/projects/MJAVADOC-552_fix-author/src/main/java/com/example/FirstBug.java b/src/it/projects/MJAVADOC-552_fix-author/src/main/java/com/example/FirstBug.java new file mode 100644 index 0000000..f498e05 --- /dev/null +++ b/src/it/projects/MJAVADOC-552_fix-author/src/main/java/com/example/FirstBug.java @@ -0,0 +1,34 @@ +package com.example; + +/* + * 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. + */ + +/** + * Class developed by several authors. + * + * @author Developer, One + * @author Developer, Two + * @author Developer, Three + * @version 1.0.9, 2018-12-19 + * @since 0.0.1 + */ +public class FirstBug +{ + +} \ No newline at end of file diff --git a/src/it/projects/MJAVADOC-552_fix-author/verify.groovy b/src/it/projects/MJAVADOC-552_fix-author/verify.groovy new file mode 100644 index 0000000..095553a --- /dev/null +++ b/src/it/projects/MJAVADOC-552_fix-author/verify.groovy @@ -0,0 +1,26 @@ +/* + * 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. + */ + +def file = new File( basedir, 'src/main/java/com/example/FirstBug.java' ); + +assert file.exists() + +assert 1 == file.text.count('* @author Developer, One') +assert 1 == file.text.count('* @author Developer, Two') +assert 1 == file.text.count('* @author Developer, Three')