mirror of https://github.com/sbt/sbt.git
2.6 KiB
2.6 KiB
Fixes
- Fixed issue with scala.library.jar not being on javac's classpath.
- Fixed buffered logging for parallel execution.
- Fixed test-* tab completion being permanently set on first completion.
- Works with Scala 2.8 trunk again (including the latest 2.8.0-SNAPSHOT).
- The latest launcher should fix issues with retrieving Scala 2.8.0-SNAPSHOT versions.
- sxr sources
- Maven local repository excluded when the Scala version is a snapshot. This should fix issues with out of date Scala snapshots.
Improvements
- Merged Seth's patch to invoke
javacin the same jvm whentools.jaris on the classpath. Macs includetools.jarby default, Linux and Windows users would need to add it to their sbt startup script or explicitly add it tocompileClasspath. - The compiler interface is precompiled against common Scala versions (for this release, 2.7.7 and 2.8.0.Beta1).
- There have been some new methods added to
PathandPathFinderrecently, such as PathFinder.distinct - Running multiple commands at once at the interactive prompt is now supported. Prefix each command with ';'.
- Run and return the output of a process as a String with
!!or as a (blocking)Stream[String]withlines.
New Feature
- Java tests + Annotation detection
- Test frameworks can now specify annotation fingerprints. Specify the names of annotations and sbt discovers classes with the annotations on it or one of its methods. Use version 0.5 of the test-interface.
- Detect subclasses and annotations in Java sources (really, their class files).
Compatibility
This section is important for users that work with the TestDefinition, AnalysisCallback, or CompileConfiguration classes in sbt.
- Discovered is new root of hierarchy representing discovered subclasses + annotations.
TestDefinitionno longer fulfills this role. TestDefinitionis modified to be name+Fingerprintand represents a runnable test. It need not beDiscoveredand could be file-based in the future, for example.- Replaced testDefinitionClassNames method with
fingerprintsinCompileConfiguration. - Added foundAnnotation to
AnalysisCallback. - Added
Runner2,Fingerprint,AnnotationFingerprint, andSubclassFingerprintto the test-interface. Existing test frameworks should still work. ImplementRunner2to use fingerprints other thanSubclassFingerprint.