Skip to content

Instantly share code, notes, and snippets.

@Blaisorblade
Last active December 22, 2015 20:58
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 Blaisorblade/6529621 to your computer and use it in GitHub Desktop.
Save Blaisorblade/6529621 to your computer and use it in GitHub Desktop.
Example of my `autoAPIMappings` problems
scalaVersion := "2.10.2"
//scalacOptions := Seq("-deprecation", "-feature", "-Xlint")
//For Scaladoc, requires SBT 0.13. However, automatic mapping does not work for the standard library - for me at least.
autoAPIMappings := true
<?xml version="1.0" encoding="UTF-8"?>
<ivy-module version="2.0" xmlns:m="http://ant.apache.org/ivy/maven">
<info organisation="org.scala-lang"
module="scala-library"
revision="2.10.2"
status="release"
publication="20130606200543"
>
<license name="BSD-like" url="http://www.scala-lang.org/downloads/license.html
" />
<description homepage="http://www.scala-lang.org/">
Standard library for the Scala Programming Language
</description>
<m:properties__info.apiURL>http://www.scala-lang.org/api/2.10.2/</m:properties__info.apiURL>
</info>
<configurations>
<conf name="default" visibility="public" description="runtime dependencies and master artifact can be used with this conf" extends="runtime,master"/>
<conf name="master" visibility="public" description="contains only the artifact published by this module itself, with no transitive dependencies"/>
<conf name="compile" visibility="public" description="this is the default scope, used if none is specified. Compile dependencies are available in all classpaths."/>
<conf name="provided" visibility="public" description="this is much like compile, but indicates you expect the JDK or a container to provide it. It is only available on the compilation classpath, and is not transitive."/>
<conf name="runtime" visibility="public" description="this scope indicates that the dependency is not required for compilation, but is for execution. It is in the runtime and test classpaths, but not the compile classpath." extends="compile"/>
<conf name="test" visibility="private" description="this scope indicates that the dependency is not required for normal use of the application, and is only available for the test compilation and execution phases." extends="runtime"/>
<conf name="system" visibility="public" description="this scope is similar to provided except that you have to provide the JAR which contains it explicitly. The artifact is always available and is not looked up in a repository."/>
<conf name="sources" visibility="public" description="this configuration contains the source artifact of this module, if any."/>
<conf name="javadoc" visibility="public" description="this configuration contains the javadoc artifact of this module, if any."/>
<conf name="optional" visibility="public" description="contains all optional dependencies"/>
</configurations>
<publications>
<artifact name="scala-library" type="jar" ext="jar" conf="master"/>
</publications>
</ivy-module>
<?xml version="1.0" encoding="UTF-8"?>
<ivy-module version="2.0" xmlns:m="http://ant.apache.org/ivy/maven" xmlns:e="http://ant.apache.org/ivy/extra">
<info organisation="org.scala-lang"
module="scala-library"
revision="2.10.2"
status="release"
publication="20130606200543"
e:info.apiURL="http://www.scala-lang.org/api/2.10.2/"
>
<license name="BSD-like" url="http://www.scala-lang.org/downloads/license.html
" />
<description homepage="http://www.scala-lang.org/">
Standard library for the Scala Programming Language
</description>
<m:properties__info.apiURL>http://www.scala-lang.org/api/2.10.2/</m:properties__info.apiURL>
</info>
<configurations>
<conf name="default" visibility="public" description="runtime dependencies and master artifact can be used with this conf" extends="runtime,master"/>
<conf name="master" visibility="public" description="contains only the artifact published by this module itself, with no transitive dependencies"/>
<conf name="compile" visibility="public" description="this is the default scope, used if none is specified. Compile dependencies are available in all classpaths."/>
<conf name="provided" visibility="public" description="this is much like compile, but indicates you expect the JDK or a container to provide it. It is only available on the compilation classpath, and is not transitive."/>
<conf name="runtime" visibility="public" description="this scope indicates that the dependency is not required for compilation, but is for execution. It is in the runtime and test classpaths, but not the compile classpath." extends="compile"/>
<conf name="test" visibility="private" description="this scope indicates that the dependency is not required for normal use of the application, and is only available for the test compilation and execution phases." extends="runtime"/>
<conf name="system" visibility="public" description="this scope is similar to provided except that you have to provide the JAR which contains it explicitly. The artifact is always available and is not looked up in a repository."/>
<conf name="sources" visibility="public" description="this configuration contains the source artifact of this module, if any."/>
<conf name="javadoc" visibility="public" description="this configuration contains the javadoc artifact of this module, if any."/>
<conf name="optional" visibility="public" description="contains all optional dependencies"/>
</configurations>
<publications>
<artifact name="scala-library" type="jar" ext="jar" conf="master"/>
</publications>
</ivy-module>
--- ivy-2.10.2-old.xml 2013-06-06 20:05:43.000000000 +0200
+++ ivy-2.10.2.xml 2013-09-12 00:29:11.000000000 +0200
@@ -1,10 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
-<ivy-module version="2.0" xmlns:m="http://ant.apache.org/ivy/maven">
+<ivy-module version="2.0" xmlns:m="http://ant.apache.org/ivy/maven" xmlns:e="http://ant.apache.org/ivy/extra">
<info organisation="org.scala-lang"
module="scala-library"
revision="2.10.2"
status="release"
publication="20130606200543"
+ e:info.apiURL="http://www.scala-lang.org/api/2.10.2/"
>
<license name="BSD-like" url="http://www.scala-lang.org/downloads/license.html
" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment