Skip to content

Instantly share code, notes, and snippets.

@zeryx
Last active June 19, 2019 21:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zeryx/4e281a5abff7999b6eeb57463d7e29e5 to your computer and use it in GitHub Desktop.
Save zeryx/4e281a5abff7999b6eeb57463d7e29e5 to your computer and use it in GitHub Desktop.
name := "algorithm-handler"
organization := "com.foo"
version := "1.0.0"
autoScalaLibrary := false
// More compiler warnings
scalacOptions ++= Seq("-deprecation", "-unchecked", "-feature", "-Xlint")
javacOptions ++= Seq("-source", "8", "-target", "8")
//javacOptions in doc := Seq("-source", "8")
//If I totally remove the javadoc compilation, things work properly. However I can't deploy to sonatype without javadocs
sources in (Compile, doc) := Seq.empty
publishArtifact in (Compile, packageDoc) := false
libraryDependencies ++= Seq(
"com.google.code.gson" % "gson" % "2.6.2",
"org.apache.httpcomponents" % "httpasyncclient" % "4.1.1",
"commons-io" % "commons-io" % "2.5",
"com.novocode" % "junit-interface" % "0.11" % "test->default",
"junit" % "junit" % "4.12",
"org.springframework" % "spring-core" % "5.1.7.RELEASE"
)
// Disable using the Scala version in published artifacts
crossPaths := false
testOptions += Tests.Argument(TestFrameworks.JUnit, "-av")
publish-local
[info] Packaging /home/zeryx/code/work/algorithm-handler-java/target/algorithm-handler-1.2.0-rc1-sources.jar ...
[info] Done packaging.
[info] Wrote /home/zeryx/code/work/algorithm-handler-java/target/algorithm-handler-1.2.0-rc1.pom
[info] :: delivering :: com.algorithmia#algorithm-handler;1.2.0-rc1 :: 1.2.0-rc1 :: release :: Wed Jun 19 17:18:31 ADT 2019
[info] Main Java API documentation to /home/zeryx/code/work/algorithm-handler-java/target/api...
[info] delivering ivy file to /home/zeryx/code/work/algorithm-handler-java/target/ivy-1.2.0-rc1.xml
[error] javadoc: error - invalid flag: -d
[error] Usage: javadoc [options] [packagenames] [sourcefiles] [@files]
[error] -overview <file> Read overview documentation from HTML file
[error] -public Show only public classes and members
[error] -protected Show protected/public classes and members (default)
[error] -package Show package/protected/public classes and members
[error] -private Show all classes and members
[error] --help Display command line options and exit
[error] -doclet <class> Generate output via alternate doclet
[error] -docletpath <path> Specify where to find doclet class files
[error] --module-source-path <path> Specify where to find input source files for multiple modules
[error] --upgrade-module-path <path> Override location of upgradeable modules
[error] --module-path <path>, -p <path> Specify where to find application modules
[error] --add-modules <module>(,<module>)*
[error] Root modules to resolve in addition to the initial modules,
[error] or all modules on the module path if <module> is ALL-MODULE-PATH.
[error] --limit-modules <module>(,<module>)*
[error] Limit the universe of observable modules
[error] --source-path <path> Specify where to find source files
[error] -sourcepath <path> Specify where to find source files
[error] --class-path <path> Specify where to find user class files
[error] -classpath <path> Specify where to find user class files
[error] -cp <path> Specify where to find user class files
[error] -exclude <pkglist> Specify a list of packages to exclude
[error] -subpackages <subpkglist> Specify subpackages to recursively load
[error] -breakiterator Compute first sentence with BreakIterator
[error] -bootclasspath <path> Override location of platform class files
[error] used for non-modular releases
[error] --system <jdk> Override location of system modules used
[error] for modular releases.
[error] -source <release> Provide source compatibility with specified release
[error] --release <release> Provide source compatibility with specified release
[error] -extdirs <dirlist> Override location of installed extensions
[error] -verbose Output messages about what Javadoc is doing
[error] -locale <name> Locale to be used, e.g. en_US or en_US_WIN
[error] -encoding <name> Source file encoding name
[error] -quiet Do not display status messages
[error] -J<flag> Pass <flag> directly to the runtime system
[error] -X Print a synopsis of nonstandard options and exit
[error]
[error]
[error] GNU-style options may use = instead whitespace to separate the name of an option
[error] from its value.
[error]
[error] 1 error
[info] Packaging /home/zeryx/code/work/algorithm-handler-java/target/algorithm-handler-1.2.0-rc1.jar ...
[info] Done packaging.
[error] (compile:doc) javadoc returned nonzero exit code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment