Skip to content

Commit

Permalink
Fix Scaladocs build. (#523)
Browse files Browse the repository at this point in the history
- Resolves #522
  - See: scala/bug#9111 (comment)
- Update README doc links
  • Loading branch information
ruebot committed Oct 25, 2021
1 parent f024f42 commit aea0d14
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# The Archives Unleashed Toolkit
[![codecov](https://codecov.io/gh/archivesunleashed/aut/branch/main/graph/badge.svg)](https://codecov.io/gh/archivesunleashed/aut)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.archivesunleashed/aut/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.archivesunleashed/aut)
[![Javadoc](https://javadoc-badge.appspot.com/io.archivesunleashed/aut.svg?label=javadoc)](http://api.docs.archivesunleashed.io/0.90.3/apidocs/index.html)
[![Scaladoc](https://javadoc-badge.appspot.com/io.archivesunleashed/aut.svg?label=scaladoc)](http://api.docs.archivesunleashed.io/0.90.3/scaladocs/index.html)
[![Javadoc](https://javadoc-badge.appspot.com/io.archivesunleashed/aut.svg?label=javadoc)](https://api.docs.archivesunleashed.io/0.90.3/apidocs/index.html)
[![Scaladoc](https://javadoc-badge.appspot.com/io.archivesunleashed/aut.svg?label=scaladoc)](https://api.docs.archivesunleashed.io/0.90.3/scaladocs/io/archivesunleashed/index.html)
[![UserDocs](https://img.shields.io/badge/UserDocs-0.90.3-brightgreen?style=flat)](https://aut.docs.archivesunleashed.org/docs/home)
[![LICENSE](https://img.shields.io/badge/license-Apache-blue.svg?style=flat)](https://www.apache.org/licenses/LICENSE-2.0)
[![Contribution Guidelines](http://img.shields.io/badge/CONTRIBUTING-Guidelines-blue.svg)](./CONTRIBUTING.md)
Expand Down
35 changes: 30 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
<versions.plugin.version>2.1</versions.plugin.version>
<tika.version>1.22</tika.version>
<jackson.version>2.10.0</jackson.version>
<scala.maven.plugin.version>4.5.4</scala.maven.plugin.version>
</properties>

<licenses>
Expand Down Expand Up @@ -147,7 +148,7 @@
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
<version>4.2.0</version>
<version>${scala.maven.plugin.version}</version>
<executions>
<execution>
<phase>process-resources</phase>
Expand All @@ -163,18 +164,31 @@
<goal>testCompile</goal>
</goals>
</execution>
<execution>
<id>attach-scaladocs</id>
<phase>verify</phase>
<goals>
<goal>doc-jar</goal>
</goals>
<configuration>
<args>
<arg>-no-java-comments</arg>
<arg>-no-link-warnings</arg>
</args>
</configuration>
</execution>
</executions>
<configuration>
<scalaVersion>${scala.version}</scalaVersion>
<checkMultipleScalaVersions>true</checkMultipleScalaVersions>
<failOnMultipleScalaVersions>true</failOnMultipleScalaVersions>
<sendJavaToScalac>true</sendJavaToScalac>
<args>
<arg>-target:jvm-1.8</arg>
<arg>-g:vars</arg>
<arg>-unchecked</arg>
<arg>-deprecation</arg>
<arg>-dependencyfile</arg>
<arg>${project.build.directory}/.scala_dependencies</arg>
<arg>-feature</arg>
<arg>-explaintypes</arg>
<arg>-target:jvm-1.8</arg>
</args>
</configuration>
</plugin>
Expand Down Expand Up @@ -412,6 +426,17 @@
</reportSet>
</reportSets>
</plugin>
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
<version>${scala.maven.plugin.version}</version>
<configuration>
<args>
<arg>-no-java-comments</arg>
<arg>-no-link-warnings</arg>
</args>
</configuration>
</plugin>
</plugins>
</reporting>

Expand Down
1 change: 1 addition & 0 deletions src/main/scala/io/archivesunleashed/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ import org.apache.spark.sql.types.{
}
import org.apache.spark.sql.{DataFrame, Dataset, Row, SparkSession}
import org.apache.spark.{RangePartitioner, SerializableWritable, SparkContext}
import scala.language.postfixOps
import scala.reflect.ClassTag
import scala.util.matching.Regex
import scala.util.Try
Expand Down

0 comments on commit aea0d14

Please sign in to comment.