Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
set "deprecation" and "unchecked" scalac settings correctly in multi-…
…module project
- Loading branch information
Showing
8 changed files
with
64 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
...sbt-test/sbt-idea/external-rootproject-dependency/.idea_modules/root-project.iml.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<module type="JAVA_MODULE" version="4"> | ||
<component name="FacetManager"> | ||
<facet type="scala" name="Scala"> | ||
<configuration> | ||
<option value="Project" name="compilerLibraryLevel"></option> | ||
<option value="scala-2.9.1" name="compilerLibraryName"></option> | ||
<option value="true" name="fsc"></option> | ||
<option value="true" name="uncheckedWarnings"></option> | ||
<option value="-unchecked" name="compilerOptions"></option> | ||
</configuration> | ||
</facet> | ||
</component> | ||
<component inherit-compiler-output="false" name="NewModuleRootManager"> | ||
<output url="file://$MODULE_DIR$/../target/scala-2.9.1/classes"></output> | ||
<output-test url="file://$MODULE_DIR$/../target/scala-2.9.1/test-classes"></output-test> | ||
<exclude-output></exclude-output> | ||
<content url="file:///tmp/sbt_/external-rootproject-dependency"> | ||
<sourceFolder isTestSource="false" url="file://$MODULE_DIR$/../src/main/scala" ></sourceFolder> | ||
<sourceFolder isTestSource="false" url="file://$MODULE_DIR$/../src/main/java" ></sourceFolder> | ||
<sourceFolder isTestSource="false" url="file://$MODULE_DIR$/../src/main/resources" ></sourceFolder> | ||
<sourceFolder isTestSource="true" url="file://$MODULE_DIR$/../src/test/scala" ></sourceFolder> | ||
<sourceFolder isTestSource="true" url="file://$MODULE_DIR$/../src/test/java" ></sourceFolder> | ||
<sourceFolder isTestSource="true" url="file://$MODULE_DIR$/../src/test/resources" ></sourceFolder> | ||
<excludeFolder url="file://$MODULE_DIR$/../target"></excludeFolder> | ||
</content> | ||
<orderEntry type="inheritedJdk"></orderEntry> | ||
<orderEntry type="sourceFolder" forTests="false"></orderEntry> | ||
<orderEntry level="project" name="org.scala-lang_scala-library_2.9.1" type="library"></orderEntry> | ||
<orderEntry type="module" module-name="dependency-root" exported=""></orderEntry> | ||
</component> | ||
</module> |
4 changes: 3 additions & 1 deletion
4
src/sbt-test/sbt-idea/external-rootproject-dependency/dependency-project/project/Build.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
import sbt._ | ||
import sbt.Keys._ | ||
|
||
object SubBuild extends Build { | ||
lazy val root = Project("dependency-root", file(".")) | ||
lazy val root = Project("dependency-root", file(".")) settings( | ||
scalacOptions ++= Seq("-deprecation")) | ||
} |
9 changes: 7 additions & 2 deletions
9
src/sbt-test/sbt-idea/external-rootproject-dependency/project/Build.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
import org.sbtidea.test.util.AbstractScriptedTestBuild | ||
import sbt._ | ||
import Keys.libraryDependencies | ||
import sbt.Keys._ | ||
|
||
object ScriptedTestBuild extends AbstractScriptedTestBuild("external-rootproject-dependency") { | ||
lazy val root = Project("root-project", file("."), settings = Defaults.defaultSettings ++ scriptedTestSettings) aggregate(dependencyProject) dependsOn(dependencyProject) | ||
|
||
lazy val mainSettings: Seq[Project.Setting[_]] = Defaults.defaultSettings ++ scriptedTestSettings ++ Seq( | ||
scalacOptions ++= Seq("-unchecked") | ||
) | ||
|
||
lazy val root = Project("root-project", file("."), settings = mainSettings) aggregate(dependencyProject) dependsOn(dependencyProject) | ||
lazy val dependencyProject = RootProject(file("dependency-project")) | ||
} |