Skip to content

Commit

Permalink
prime the build's compiler bridge
Browse files Browse the repository at this point in the history
  • Loading branch information
eed3si9n committed May 12, 2019
1 parent 1dc0332 commit 07af463
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions bin/run-ci-scripted-to-jar.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ PROJECT_ROOT="zincRoot"
sbt -Dfile.encoding=UTF-8 \
-J-XX:ReservedCodeCacheSize=512M \
-J-Xms1024M -J-Xmx4096M -J-server \
"+compilerHelloworld/compile" \
"zincScripted/test:run --to-jar"
2 changes: 2 additions & 0 deletions bin/run-ci-scripted.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ set -eu
set -o nounset

PROJECT_ROOT="zincRoot"

sbt -Dfile.encoding=UTF-8 \
-J-XX:ReservedCodeCacheSize=512M \
-J-Xms1024M -J-Xmx4096M -J-server \
"+compilerHelloworld/compile" \
"zincScripted/test:run"
1 change: 1 addition & 0 deletions bin/run-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ PROJECT_ROOT="zincRoot"
sbt -Dfile.encoding=UTF-8 \
-J-XX:ReservedCodeCacheSize=512M \
-J-Xms1024M -J-Xmx4096M -J-server \
"+compilerHelloworld/compile" \
"$PROJECT_ROOT/mimaReportBinaryIssues" \
scalafmtCheckAll \
whitesourceCheckPolicies \
Expand Down
8 changes: 8 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,14 @@ lazy val zincCompileCore = (project in internalPath / "zinc-compile-core")
)
.configure(addSbtUtilLogging, addSbtIO, addSbtUtilControl)

lazy val compilerHelloworld = (project in internalPath / "helloworld")
.settings(
name := "Compiler Hello world",
scalaVersion := scala212,
crossScalaVersions := Seq(scala212, scala210, scala211, scala213),
publish / skip := true
)

// defines Java structures used across Scala versions, such as the API structures and relationships extracted by
// the analysis compiler phases and passed back to sbt. The API structures are defined in a simple
// format from which Java sources are generated by the sbt-contraband plugin.
Expand Down
2 changes: 2 additions & 0 deletions internal/helloworld/Hello.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
package example
object Hello extends App {}
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.2.8
sbt.version=1.3.0-M3

0 comments on commit 07af463

Please sign in to comment.