Skip to content

Commit

Permalink
Merge remote-tracking branch 'official/idea173.x' into hydra-integration
Browse files Browse the repository at this point in the history
  • Loading branch information
maris123 committed Nov 6, 2017
2 parents adc42ed + 63d2fd9 commit 2854156
Show file tree
Hide file tree
Showing 530 changed files with 4,893 additions and 7,433 deletions.
2 changes: 1 addition & 1 deletion .idea/runConfigurations/All_Tests.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 19 additions & 12 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ resolvers in ThisBuild += Resolver.sonatypeRepo("snapshots")

ideaBuild in ThisBuild := Versions.ideaVersion

ideaDownloadDirectory in ThisBuild := Path.userHome / ".ScalaPluginIC" / "sdk"
ideaDownloadDirectory in ThisBuild := homePrefix / ".ScalaPluginIC" / "sdk"

testConfigDir in ThisBuild := Path.userHome / ".ScalaPluginIC" / "test-config"
testConfigDir in ThisBuild := homePrefix / ".ScalaPluginIC" / "test-config"

testSystemDir in ThisBuild := Path.userHome / ".ScalaPluginIC" / "test-system"
testSystemDir in ThisBuild := homePrefix / ".ScalaPluginIC" / "test-system"

onLoad in Global := ((s: State) => { "updateIdea" :: s}) compose (onLoad in Global).value

Expand Down Expand Up @@ -168,7 +168,7 @@ lazy val sbtRuntimeDependencies =
ideSkipProject := true
)

lazy val testDownloader =
lazy val testJarsDownloader =
newProject("testJarsDownloader", file("target/tools/test-jars-downloader"))
.settings(
conflictManager := ConflictManager.all,
Expand Down Expand Up @@ -196,10 +196,10 @@ lazy val sbtLaunchTestDownloader =
ideSkipProject := true
)

lazy val jmhBenchmarks =
newProject("benchmarks", file("scala/benchmarks"))
.dependsOn(scalaImpl % "test->test")
.enablePlugins(JmhPlugin)
//lazy val jmhBenchmarks =
// newProject("benchmarks", file("scala/benchmarks"))
// .dependsOn(scalaImpl % "test->test")
// .enablePlugins(JmhPlugin)

// Testing keys and settings
import Common.TestCategory._
Expand All @@ -226,7 +226,7 @@ addCommandAlias("runFastTestsScala", s"testOnly scala.* -- $fastTestOptions")
lazy val setUpTestEnvironment = taskKey[Unit]("Set up proper environment for running tests")

setUpTestEnvironment in ThisBuild := {
update.in(testDownloader).value
update.in(testJarsDownloader).value
}

lazy val cleanUpTestEnvironment = taskKey[Unit]("Clean up IDEA test system and config directories")
Expand All @@ -253,6 +253,15 @@ lazy val iLoopWrapperPath = settingKey[File]("Path to repl interface sources")

iLoopWrapperPath := baseDirectory.in(compilerJps).value / "resources" / "ILoopWrapperImpl.scala"

//packages output of several modules to a single jar
lazy val scalaPluginJarPackager =
newProject("scalaPluginJarPackager", file("target/tools/scalaPluginJarPackager"))
.settings(
products in Compile :=
products.in(scalaImpl, Compile).value ++
products.in(cbt, Compile).value,
ideSkipProject := true
)

lazy val pluginPackagerCommunity =
newProject("pluginPackagerCommunity", file("target/tools/packager"))
Expand Down Expand Up @@ -301,9 +310,7 @@ lazy val pluginPackagerCommunity =
"launcher/sbt-launch.jar")
)
val lib = Seq(
MergedArtifact(Seq(
pack.in(scalaImpl, Compile).value,
pack.in(cbt, Compile).value),
Artifact(pack.in(scalaPluginJarPackager, Compile).value,
"lib/scala-plugin.jar"),
Artifact(pack.in(decompiler, Compile).value,
"lib/scalap.jar"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import com.intellij.openapi.externalSystem.service.notification.{ExternalSystemN
import com.intellij.openapi.externalSystem.service.project.IdeModifiableModelsProvider
import com.intellij.openapi.project.Project
import com.intellij.openapi.roots.libraries.Library
import org.jetbrains.plugins.cbt.project.CbtProjectSystem
import org.jetbrains.plugins.cbt.structure.CbtModuleExtData
import org.jetbrains.plugins.scala.project.{LibraryExt, ModuleExt, Platform, ScalaLanguageLevel}
import org.jetbrains.sbt.project.SbtProjectSystem
import org.jetbrains.sbt.project.data.service.{AbstractDataService, AbstractImporter, Importer}

class CbtModuleExtDataService extends AbstractDataService[CbtModuleExtData, Library](CbtModuleExtData.Key) {
Expand All @@ -28,7 +28,7 @@ object CbtModuleExtDataService {
NotificationCategory.WARNING,
NotificationSource.PROJECT_SYNC)
ExternalSystemNotificationManager.getInstance(project)
.showNotification(SbtProjectSystem.Id, notification)
.showNotification(CbtProjectSystem.Id, notification)
}

private class Importer(toImport: Seq[DataNode[CbtModuleExtData]],
Expand Down
99 changes: 0 additions & 99 deletions probes/src/examples/AWTEvents.java

This file was deleted.

Loading

0 comments on commit 2854156

Please sign in to comment.