Skip to content

Instantly share code, notes, and snippets.

View Duhemm's full-sized avatar

Martin Duhem Duhemm

  • Switzerland
  • 09:47 (UTC +02:00)
View GitHub Profile
@Duhemm
Duhemm / complete
Last active August 29, 2015 14:01
Random failure of scripted test `source-dependencies/import-class-name-hashing`
> scripted source-dependencies/import-class-name-hashing
[info] :: delivering :: org.scala-sbt#interface;0.13.6-SNAPSHOT :: 0.13.6-SNAPSHOT :: integration :: Fri May 16 12:27:38 CEST 2014
[info] delivering ivy file to /Users/martin/Documents/Projects/Duhemm/sbt/interface/target/ivy-0.13.6-SNAPSHOT.xml
[info] :: delivering :: org.scala-sbt#launcher-interface;0.13.6-SNAPSHOT :: 0.13.6-SNAPSHOT :: integration :: Fri May 16 12:27:38 CEST 2014
[info] delivering ivy file to /Users/martin/Documents/Projects/Duhemm/sbt/launch/interface/target/ivy-0.13.6-SNAPSHOT.xml
[info] :: delivering :: org.scala-sbt#cross;0.13.6-SNAPSHOT :: 0.13.6-SNAPSHOT :: integration :: Fri May 16 12:27:38 CEST 2014
[info] delivering ivy file to /Users/martin/Documents/Projects/Duhemm/sbt/util/cross/target/ivy-0.13.6-SNAPSHOT.xml
[info] :: delivering :: org.scala-sbt#collections;0.13.6-SNAPSHOT :: 0.13.6-SNAPSHOT :: integration :: Fri May 16 12:27:38 CEST 2014
[info] delivering ivy file to /Users/martin/Documents/Projects/Duhemm/sbt/util
@Duhemm
Duhemm / example-project
Created January 11, 2015 00:37
Recompile macro provider whenever one of its transitive dependencies is changed
Project: https://github.com/Duhemm/macro-transitive-dependencies
@Duhemm
Duhemm / scripted ouput
Created July 13, 2015 22:28
dependency-management/mvn-local
[info] Getting org.scala-sbt sbt 0.13.9-SNAPSHOT ...
[info] :: retrieving :: org.scala-sbt#boot-app
[info] confs: [default]
[info] 49 artifacts copied, 0 already retrieved (17109kB/239ms)
[info] Getting Scala 2.10.5 (for sbt)...
[info] :: retrieving :: org.scala-sbt#boot-scala
[info] confs: [default]
[info] 5 artifacts copied, 0 already retrieved (24493kB/130ms)
[info] [info] Loading project definition from /private/var/folders/fs/vxmgphx94n12rsfmvdyn4s880000gn/T/sbt_e8cecca7/mvn-local/project
[info] [info] Updating {file:/private/var/folders/fs/vxmgphx94n12rsfmvdyn4s880000gn/T/sbt_e8cecca7/mvn-local/project/}mvn-local-build...

What exists today

Running the incremental compiler

object Incremental (Incremental.scala)

  • Used by object IncrementalCompile
  • Delegates work to the incremental compilation strategy
  • A mean to run the incremental compiler

Helper class to run incremental compilation algorithm.

package sbt.incrementalcompiler
import org.specs2.Specification
class IncrementalTest extends Specification {
import IncrementalCompilerTest._
def is = s2"""
This is a specification for the incremental compiler.
package hijack
import sbt._
import Keys._
import sbt.complete.DefaultParsers._
object HijackShellPlugin extends AutoPlugin {
override def requires = sbt.plugins.JvmPlugin
override def trigger = allRequirements
@Duhemm
Duhemm / log.txt
Created May 10, 2016 12:47
sbt 1.0.0-M2
~ ❯ mv .ivy2 .ivy2-safe
~ ❯ mv .sbt .sbt-safe
~ ❯ cd -
simple ❯ /usr/local/Cellar/sbt/0.13.11/bin/sbt
Getting org.scala-sbt sbt 1.0.0-M2 ...
downloading https://repo1.maven.org/maven2/org/scala-sbt/sbt/1.0.0-M2/sbt-1.0.0-M2.jar ...
[SUCCESSFUL ] org.scala-sbt#sbt;1.0.0-M2!sbt.jar (113ms)
downloading https://repo1.maven.org/maven2/org/scala-lang/scala-library/2.11.8/scala-library-2.11.8.jar ...
[SUCCESSFUL ] org.scala-lang#scala-library;2.11.8!scala-library.jar (3014ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/main_2.11/1.0.0-M2/main_2.11-1.0.0-M2.jar ...

Keybase proof

I hereby claim:

  • I am Duhemm on github.
  • I am duhemm (https://keybase.io/duhemm) on keybase.
  • I have a public key whose fingerprint is 3597 849F E13A 796F 7B5C D5D2 CC9C E965 6E10 C555

To claim this, I am signing this object:

package lm
import java.io.File
import sbt.librarymanagement._
import sbt.librarymanagement.ivy._
object Main {
def main(args: Array[String]): Unit = {
val Array(org, name, version) = args
#!/bin/zsh
REPOS=("guardian/frontend" \
# "Duhemm/parsermacros" \
# "apache/spark" \
# "apache/incubator-predictionio" \
# "playframework/playframework" \
# "scala/scala" \
# "shadowsocks/shadowsocks-android" \
# "akka/akka"