Skip to content

Commit

Permalink
Added project scaffolding.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidrpugh committed Jun 1, 2017
1 parent 8c86bb1 commit 36f5c72
Show file tree
Hide file tree
Showing 6 changed files with 96 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
*.class
*.log

# ignore Inellij IDEA cruft
.idea/
target/

# ignore Jupyter cruft
.ipynb_checkpoints/
65 changes: 65 additions & 0 deletions auctions-simulation.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 3,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[info] Loading global plugins from C:\\Users\\pughdr\\.sbt\\0.13\\plugins\n",
"[info] Loading project definition from C:\\Users\\pughdr\\Research\\scalabm\\auctions-simulation-example\\project\n",
"[info] Set current project to auctions-simulation-example (in build file:/C:/Users/pughdr/Research/scalabm/auctions-simulation-example/)\n",
"[info] Running Simulation \n",
"Hello from Scala!\n",
"[success] Total time: 1 s, completed Jun 1, 2017 1:15:55 PM\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0\n"
]
}
],
"source": [
"!sbt \"run-main Simulation\""
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.0"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
16 changes: 16 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name := "auctions-simulation-example"

version := "1.0"

scalaVersion := "2.12.2"

resolvers ++= Seq(
"Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots",
"Sonatype OSS Releases" at "https://oss.sonatype.org/content/repositories/releases"
)

libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-actor" % "2.5.1",
"com.typesafe.akka" %% "akka-remote" % "2.5.1",
"org.economicsl" %% "esl-auctions" % "0.2.0-SNAPSHOT"
)
1 change: 1 addition & 0 deletions project/build.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sbt.version = 0.13.15
1 change: 1 addition & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
logLevel := Level.Warn
6 changes: 6 additions & 0 deletions src/main/scala/Simulation.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/** Entry point for the auction simulation. */
object Simulation extends App {

println("Hello from Scala!")

}

0 comments on commit 36f5c72

Please sign in to comment.