Skip to content

Commit

Permalink
Revert "Merge pull request scala#118 from alonsodomin/native"
Browse files Browse the repository at this point in the history
This reverts commit fd760fc, reversing
changes made to 615b70f.

 Conflicts:
	build.sbt
	project/plugins.sbt
  • Loading branch information
gourlaysama committed Jan 31, 2018
1 parent 1f108e5 commit ba11bea
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 62 deletions.
5 changes: 0 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
language: scala

dist: trusty

sudo: required

addons:
apt:
packages:
Expand All @@ -15,7 +11,6 @@ before_install:
- sed -e "s/^\\(127\\.0\\.0\\.1.*\\)/\\1 $(hostname | cut -c1-63)/" /etc/hosts > /tmp/hosts
- sudo mv /tmp/hosts /etc/hosts
- cat /etc/hosts # optionally check the content *after*
- admin/setup_travis.sh

env:
global:
Expand Down
22 changes: 0 additions & 22 deletions admin/setup_travis.sh

This file was deleted.

22 changes: 4 additions & 18 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import ScalaModulePlugin._
import sbtcrossproject.{crossProject, CrossType}

scalaVersionsByJvm in ThisBuild := {
val v211 = "2.11.11"
Expand All @@ -15,11 +14,12 @@ scalaVersionsByJvm in ThisBuild := {
}

lazy val root = project.in(file("."))
.aggregate(`scala-parser-combinatorsJS`, `scala-parser-combinatorsJVM`, `scala-parser-combinatorsNative`)
.aggregate(`scala-parser-combinatorsJS`, `scala-parser-combinatorsJVM`)
.settings(disablePublishing)

lazy val `scala-parser-combinators` = crossProject(JSPlatform, JVMPlatform, NativePlatform).in(file(".")).
lazy val `scala-parser-combinators` = crossProject.in(file(".")).
settings(scalaModuleSettings: _*).
jvmSettings(scalaModuleSettingsJVM).
settings(
name := "scala-parser-combinators",
version := "1.0.7-SNAPSHOT",
Expand All @@ -40,10 +40,7 @@ lazy val `scala-parser-combinators` = crossProject(JSPlatform, JVMPlatform, Nati
version.value
)
).
jvmSettings(scalaModuleSettingsJVM).
jvmSettings(
// Mima uses the name of the jvm project in the artifactId
// when resolving previous versions (so no "-jvm" project)
OsgiKeys.exportPackage := Seq(s"scala.util.parsing.*;version=${version.value}"),
libraryDependencies += "junit" % "junit" % "4.12" % "test",
libraryDependencies += "com.novocode" % "junit-interface" % "0.11" % "test"
Expand All @@ -52,18 +49,7 @@ lazy val `scala-parser-combinators` = crossProject(JSPlatform, JVMPlatform, Nati
// Scala.js cannot run forked tests
fork in Test := false
).
jsConfigure(_.enablePlugins(ScalaJSJUnitPlugin)).
nativeSettings(
scalaVersion := "2.11.11",
skip in compile := System.getProperty("java.version").startsWith("1.6"),
test := {},
libraryDependencies := {
if (!scalaVersion.value.startsWith("2.11"))
libraryDependencies.value.filterNot(_.organization == "org.scala-native")
else libraryDependencies.value
}
)
jsConfigure(_.enablePlugins(ScalaJSJUnitPlugin))

lazy val `scala-parser-combinatorsJVM` = `scala-parser-combinators`.jvm
lazy val `scala-parser-combinatorsJS` = `scala-parser-combinators`.js
lazy val `scala-parser-combinatorsNative` = `scala-parser-combinators`.native
14 changes: 0 additions & 14 deletions native/src/main/scala/scala/util/parsing/input/PositionCache.scala

This file was deleted.

3 changes: 0 additions & 3 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
addSbtPlugin("org.scala-lang.modules" % "sbt-scala-module" % "1.0.12")

addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.21")
addSbtPlugin("org.scala-native" % "sbt-crossproject" % "0.2.2")
addSbtPlugin("org.scala-native" % "sbt-scalajs-crossproject" % "0.2.2")
addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.3.3")

0 comments on commit ba11bea

Please sign in to comment.