Skip to content

Instantly share code, notes, and snippets.

View stringbean's full-sized avatar

Michael Stringer stringbean

View GitHub Profile
@stringbean
stringbean / Info.java
Last active November 1, 2019 11:40
Scala annotation target issue
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target({ElementType.ANNOTATION_TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
public @interface Info { }
@stringbean
stringbean / sbt-docs-structure.md
Last active September 27, 2017 16:39
sbt docs restructuring
  1. Getting started
    1. Installing sbt
    2. Hello, World!
    3. Directory structure
    4. Running sbt
    5. Common Terminology
      • Task
      • Command
  • Setting
@stringbean
stringbean / SettingsPlugin.scala
Created August 15, 2017 15:12
SBT 1.0.0 multi-project plugin scalaVersion issue
import sbt._
import sbt.Keys._
import sbt.plugins.JvmPlugin
object SettingsPlugin extends AutoPlugin {
override def trigger: PluginTrigger = AllRequirements
override def requires: Plugins = JvmPlugin
override def projectSettings: Seq[Setting[_]] = Seq