Skip to content

Instantly share code, notes, and snippets.

View iNikem's full-sized avatar

Nikita Salnikov-Tarnovski iNikem

  • Splunk
  • Tartu, Estonia
View GitHub Profile
@iNikem
iNikem / build.gradle
Created June 4, 2015 05:33
The example or jitpack repo breaking gradle build
wrapper {
gradleVersion '2.4'
}
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.moowork.gradle:gradle-node-plugin:0.6'
public static List<String> parse(File file) throws Exception{
return file.readLines()
.collect {it.split('\\b')}
.flatten()
.groupBy {it}
.sort {-it.value.size()}
.take(20)*.key
}
./gradlew benchmarks
:compileJava UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:jar UP-TO-DATE
:compilePerfJava
warning: Supported source version 'RELEASE_6' from annotation processor 'org.openjdk.jmh.generators.GenerateMicroBenchmarkProcessor' less than -source '1.7'
/Users/Nikem/Documents/workspace/jpoint/src/perf/java/StockExchangeBenchmark.java:4: error: IOException
public class StockExchangeBenchmark {
^