diff --git a/.gitignore b/.gitignore index ddb2c5f..9837865 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,8 @@ +.gradle/ +build/ +gradle/ +gradlew +gradlew.bat *.iml .idea infer-out diff --git a/build.gradle b/build.gradle new file mode 100644 index 0000000..1c1b7de --- /dev/null +++ b/build.gradle @@ -0,0 +1,91 @@ +// gradle wrapper +// ./gradlew clean generateLock saveLock +// ./gradlew compileJava +// ./gradlew run +// ./gradlew run --debug-jvm +// ./gradlew publishToMavenLocal + + +buildscript { + ext {} + repositories { + jcenter() + mavenLocal() + mavenCentral() + maven { url "https://clojars.org/repo" } + maven { url "https://plugins.gradle.org/m2/" } + } + dependencies { + classpath 'com.netflix.nebula:gradle-dependency-lock-plugin:4.+' + classpath 'com.uber:okbuck:0.19.0' + } +} + +apply plugin: 'java' +apply plugin: 'idea' +apply plugin: 'eclipse' +apply plugin: 'java-library' +apply plugin: 'maven-publish' +apply plugin: 'com.uber.okbuck' +apply plugin: 'nebula.dependency-lock' + +task wrapper(type: Wrapper) { + gradleVersion = '4.0.2' +} + +jar { + baseName = 'helenus' + group = 'net.helenus' + version = '2.0.17-SNAPSHOT' +} + +description = """helenus""" + +sourceCompatibility = 1.8 +targetCompatibility = 1.8 +tasks.withType(JavaCompile) { + options.encoding = 'UTF-8' +} + +configurations.all { +} + +repositories { + jcenter() + mavenLocal() + mavenCentral() + maven { url "file:///Users/gburd/ws/helenus/lib" } + maven { url "https://oss.sonatype.org/content/repositories/snapshots" } + maven { url "http://repo.maven.apache.org/maven2" } +} +dependencies { + compile group: 'com.datastax.cassandra', name: 'cassandra-driver-core', version: '3.3.0' + compile group: 'org.aspectj', name: 'aspectjrt', version: '1.8.10' + compile group: 'org.aspectj', name: 'aspectjweaver', version: '1.8.10' + compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.6' + compile group: 'org.springframework', name: 'spring-core', version: '4.3.10.RELEASE' + + compile group: 'com.google.guava', name: 'guava', version: '20.0' + compile group: 'com.diffplug.durian', name: 'durian', version: '3.+' + compile group: 'io.zipkin.java', name: 'zipkin', version: '1.29.2' + compile group: 'io.zipkin.brave', name: 'brave', version: '4.0.6' + compile group: 'io.dropwizard.metrics', name: 'metrics-core', version: '3.2.2' + compile group: 'javax.validation', name: 'validation-api', version: '2.0.0.CR3' + compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.1' + + runtime group: 'org.slf4j', name: 'jcl-over-slf4j', version: '1.7.1' + + testCompile group: 'org.codehaus.jackson', name: 'jackson-mapper-asl', version: '1.9.13' + testCompile group: 'com.anthemengineering.mojo', name: 'infer-maven-plugin', version: '0.1.0' + testCompile group: 'org.codehaus.jackson', name: 'jackson-core-asl', version: '1.9.13' + testCompile(group: 'org.cassandraunit', name: 'cassandra-unit', version: '3.1.4.0-SNAPSHOT') { + exclude(module: 'cassandra-driver-core') + } + testCompile group: 'org.apache.cassandra', name: 'cassandra-all', version: '3.11.0' + testCompile group: 'commons-io', name: 'commons-io', version: '2.5' + testCompile group: 'junit', name: 'junit', version: '4.12' + testCompile group: 'com.github.stephenc', name: 'jamm', version: '0.2.5' + testCompile group: 'org.hamcrest', name: 'hamcrest-library', version: '1.3' + testCompile group: 'org.hamcrest', name: 'hamcrest-core', version: '1.3' + testCompile group: 'org.mockito', name: 'mockito-core', version: '2.8.47' +} diff --git a/dependencies.lock b/dependencies.lock new file mode 100644 index 0000000..8222106 --- /dev/null +++ b/dependencies.lock @@ -0,0 +1,648 @@ +{ + "compile": { + "com.datastax.cassandra:cassandra-driver-core": { + "locked": "3.3.0", + "requested": "3.3.0" + }, + "com.diffplug.durian:durian": { + "locked": "3.5.0-SNAPSHOT", + "requested": "3.+" + }, + "com.google.guava:guava": { + "locked": "20.0", + "requested": "20.0" + }, + "io.dropwizard.metrics:metrics-core": { + "locked": "3.2.2", + "requested": "3.2.2" + }, + "io.zipkin.brave:brave": { + "locked": "4.0.6", + "requested": "4.0.6" + }, + "io.zipkin.java:zipkin": { + "locked": "1.29.2", + "requested": "1.29.2" + }, + "javax.validation:validation-api": { + "locked": "2.0.0.CR3", + "requested": "2.0.0.CR3" + }, + "org.apache.commons:commons-lang3": { + "locked": "3.6", + "requested": "3.6" + }, + "org.aspectj:aspectjrt": { + "locked": "1.8.10", + "requested": "1.8.10" + }, + "org.aspectj:aspectjweaver": { + "locked": "1.8.10", + "requested": "1.8.10" + }, + "org.slf4j:slf4j-api": { + "locked": "1.7.25", + "requested": "1.7.1" + }, + "org.springframework:spring-core": { + "locked": "4.3.10.RELEASE", + "requested": "4.3.10.RELEASE" + } + }, + "compileClasspath": { + "com.datastax.cassandra:cassandra-driver-core": { + "locked": "3.3.0", + "requested": "3.3.0" + }, + "com.diffplug.durian:durian": { + "locked": "3.5.0-SNAPSHOT", + "requested": "3.+" + }, + "com.google.guava:guava": { + "locked": "20.0", + "requested": "20.0" + }, + "io.dropwizard.metrics:metrics-core": { + "locked": "3.2.2", + "requested": "3.2.2" + }, + "io.zipkin.brave:brave": { + "locked": "4.0.6", + "requested": "4.0.6" + }, + "io.zipkin.java:zipkin": { + "locked": "1.29.2", + "requested": "1.29.2" + }, + "javax.validation:validation-api": { + "locked": "2.0.0.CR3", + "requested": "2.0.0.CR3" + }, + "org.apache.commons:commons-lang3": { + "locked": "3.6", + "requested": "3.6" + }, + "org.aspectj:aspectjrt": { + "locked": "1.8.10", + "requested": "1.8.10" + }, + "org.aspectj:aspectjweaver": { + "locked": "1.8.10", + "requested": "1.8.10" + }, + "org.slf4j:slf4j-api": { + "locked": "1.7.25", + "requested": "1.7.1" + }, + "org.springframework:spring-core": { + "locked": "4.3.10.RELEASE", + "requested": "4.3.10.RELEASE" + } + }, + "default": { + "com.datastax.cassandra:cassandra-driver-core": { + "locked": "3.3.0", + "requested": "3.3.0" + }, + "com.diffplug.durian:durian": { + "locked": "3.5.0-SNAPSHOT", + "requested": "3.+" + }, + "com.google.guava:guava": { + "locked": "20.0", + "requested": "20.0" + }, + "io.dropwizard.metrics:metrics-core": { + "locked": "3.2.2", + "requested": "3.2.2" + }, + "io.zipkin.brave:brave": { + "locked": "4.0.6", + "requested": "4.0.6" + }, + "io.zipkin.java:zipkin": { + "locked": "1.29.2", + "requested": "1.29.2" + }, + "javax.validation:validation-api": { + "locked": "2.0.0.CR3", + "requested": "2.0.0.CR3" + }, + "org.apache.commons:commons-lang3": { + "locked": "3.6", + "requested": "3.6" + }, + "org.aspectj:aspectjrt": { + "locked": "1.8.10", + "requested": "1.8.10" + }, + "org.aspectj:aspectjweaver": { + "locked": "1.8.10", + "requested": "1.8.10" + }, + "org.slf4j:jcl-over-slf4j": { + "locked": "1.7.1", + "requested": "1.7.1" + }, + "org.slf4j:slf4j-api": { + "locked": "1.7.25", + "requested": "1.7.1" + }, + "org.springframework:spring-core": { + "locked": "4.3.10.RELEASE", + "requested": "4.3.10.RELEASE" + } + }, + "runtime": { + "com.datastax.cassandra:cassandra-driver-core": { + "locked": "3.3.0", + "requested": "3.3.0" + }, + "com.diffplug.durian:durian": { + "locked": "3.5.0-SNAPSHOT", + "requested": "3.+" + }, + "com.google.guava:guava": { + "locked": "20.0", + "requested": "20.0" + }, + "io.dropwizard.metrics:metrics-core": { + "locked": "3.2.2", + "requested": "3.2.2" + }, + "io.zipkin.brave:brave": { + "locked": "4.0.6", + "requested": "4.0.6" + }, + "io.zipkin.java:zipkin": { + "locked": "1.29.2", + "requested": "1.29.2" + }, + "javax.validation:validation-api": { + "locked": "2.0.0.CR3", + "requested": "2.0.0.CR3" + }, + "org.apache.commons:commons-lang3": { + "locked": "3.6", + "requested": "3.6" + }, + "org.aspectj:aspectjrt": { + "locked": "1.8.10", + "requested": "1.8.10" + }, + "org.aspectj:aspectjweaver": { + "locked": "1.8.10", + "requested": "1.8.10" + }, + "org.slf4j:jcl-over-slf4j": { + "locked": "1.7.1", + "requested": "1.7.1" + }, + "org.slf4j:slf4j-api": { + "locked": "1.7.25", + "requested": "1.7.1" + }, + "org.springframework:spring-core": { + "locked": "4.3.10.RELEASE", + "requested": "4.3.10.RELEASE" + } + }, + "runtimeClasspath": { + "com.datastax.cassandra:cassandra-driver-core": { + "locked": "3.3.0", + "requested": "3.3.0" + }, + "com.diffplug.durian:durian": { + "locked": "3.5.0-SNAPSHOT", + "requested": "3.+" + }, + "com.google.guava:guava": { + "locked": "20.0", + "requested": "20.0" + }, + "io.dropwizard.metrics:metrics-core": { + "locked": "3.2.2", + "requested": "3.2.2" + }, + "io.zipkin.brave:brave": { + "locked": "4.0.6", + "requested": "4.0.6" + }, + "io.zipkin.java:zipkin": { + "locked": "1.29.2", + "requested": "1.29.2" + }, + "javax.validation:validation-api": { + "locked": "2.0.0.CR3", + "requested": "2.0.0.CR3" + }, + "org.apache.commons:commons-lang3": { + "locked": "3.6", + "requested": "3.6" + }, + "org.aspectj:aspectjrt": { + "locked": "1.8.10", + "requested": "1.8.10" + }, + "org.aspectj:aspectjweaver": { + "locked": "1.8.10", + "requested": "1.8.10" + }, + "org.slf4j:jcl-over-slf4j": { + "locked": "1.7.1", + "requested": "1.7.1" + }, + "org.slf4j:slf4j-api": { + "locked": "1.7.25", + "requested": "1.7.1" + }, + "org.springframework:spring-core": { + "locked": "4.3.10.RELEASE", + "requested": "4.3.10.RELEASE" + } + }, + "testCompile": { + "com.anthemengineering.mojo:infer-maven-plugin": { + "locked": "0.1.0", + "requested": "0.1.0" + }, + "com.datastax.cassandra:cassandra-driver-core": { + "locked": "3.3.0", + "requested": "3.3.0" + }, + "com.diffplug.durian:durian": { + "locked": "3.5.0-SNAPSHOT", + "requested": "3.+" + }, + "com.github.stephenc:jamm": { + "locked": "0.2.5", + "requested": "0.2.5" + }, + "com.google.guava:guava": { + "locked": "21.0", + "requested": "20.0" + }, + "commons-io:commons-io": { + "locked": "2.5", + "requested": "2.5" + }, + "io.dropwizard.metrics:metrics-core": { + "locked": "3.2.2", + "requested": "3.2.2" + }, + "io.zipkin.brave:brave": { + "locked": "4.0.6", + "requested": "4.0.6" + }, + "io.zipkin.java:zipkin": { + "locked": "1.29.2", + "requested": "1.29.2" + }, + "javax.validation:validation-api": { + "locked": "2.0.0.CR3", + "requested": "2.0.0.CR3" + }, + "junit:junit": { + "locked": "4.12", + "requested": "4.12" + }, + "org.apache.cassandra:cassandra-all": { + "locked": "3.11.0", + "requested": "3.11.0" + }, + "org.apache.commons:commons-lang3": { + "locked": "3.6", + "requested": "3.6" + }, + "org.aspectj:aspectjrt": { + "locked": "1.8.10", + "requested": "1.8.10" + }, + "org.aspectj:aspectjweaver": { + "locked": "1.8.10", + "requested": "1.8.10" + }, + "org.cassandraunit:cassandra-unit": { + "locked": "3.1.4.0-SNAPSHOT", + "requested": "3.1.4.0-SNAPSHOT" + }, + "org.codehaus.jackson:jackson-core-asl": { + "locked": "1.9.13", + "requested": "1.9.13" + }, + "org.codehaus.jackson:jackson-mapper-asl": { + "locked": "1.9.13", + "requested": "1.9.13" + }, + "org.hamcrest:hamcrest-core": { + "locked": "1.3", + "requested": "1.3" + }, + "org.hamcrest:hamcrest-library": { + "locked": "1.3", + "requested": "1.3" + }, + "org.mockito:mockito-core": { + "locked": "2.8.47", + "requested": "2.8.47" + }, + "org.slf4j:slf4j-api": { + "locked": "1.7.25", + "requested": "1.7.1" + }, + "org.springframework:spring-core": { + "locked": "4.3.10.RELEASE", + "requested": "4.3.10.RELEASE" + } + }, + "testCompileClasspath": { + "com.anthemengineering.mojo:infer-maven-plugin": { + "locked": "0.1.0", + "requested": "0.1.0" + }, + "com.datastax.cassandra:cassandra-driver-core": { + "locked": "3.3.0", + "requested": "3.3.0" + }, + "com.diffplug.durian:durian": { + "locked": "3.5.0-SNAPSHOT", + "requested": "3.+" + }, + "com.github.stephenc:jamm": { + "locked": "0.2.5", + "requested": "0.2.5" + }, + "com.google.guava:guava": { + "locked": "21.0", + "requested": "20.0" + }, + "commons-io:commons-io": { + "locked": "2.5", + "requested": "2.5" + }, + "io.dropwizard.metrics:metrics-core": { + "locked": "3.2.2", + "requested": "3.2.2" + }, + "io.zipkin.brave:brave": { + "locked": "4.0.6", + "requested": "4.0.6" + }, + "io.zipkin.java:zipkin": { + "locked": "1.29.2", + "requested": "1.29.2" + }, + "javax.validation:validation-api": { + "locked": "2.0.0.CR3", + "requested": "2.0.0.CR3" + }, + "junit:junit": { + "locked": "4.12", + "requested": "4.12" + }, + "org.apache.cassandra:cassandra-all": { + "locked": "3.11.0", + "requested": "3.11.0" + }, + "org.apache.commons:commons-lang3": { + "locked": "3.6", + "requested": "3.6" + }, + "org.aspectj:aspectjrt": { + "locked": "1.8.10", + "requested": "1.8.10" + }, + "org.aspectj:aspectjweaver": { + "locked": "1.8.10", + "requested": "1.8.10" + }, + "org.cassandraunit:cassandra-unit": { + "locked": "3.1.4.0-SNAPSHOT", + "requested": "3.1.4.0-SNAPSHOT" + }, + "org.codehaus.jackson:jackson-core-asl": { + "locked": "1.9.13", + "requested": "1.9.13" + }, + "org.codehaus.jackson:jackson-mapper-asl": { + "locked": "1.9.13", + "requested": "1.9.13" + }, + "org.hamcrest:hamcrest-core": { + "locked": "1.3", + "requested": "1.3" + }, + "org.hamcrest:hamcrest-library": { + "locked": "1.3", + "requested": "1.3" + }, + "org.mockito:mockito-core": { + "locked": "2.8.47", + "requested": "2.8.47" + }, + "org.slf4j:slf4j-api": { + "locked": "1.7.25", + "requested": "1.7.1" + }, + "org.springframework:spring-core": { + "locked": "4.3.10.RELEASE", + "requested": "4.3.10.RELEASE" + } + }, + "testRuntime": { + "com.anthemengineering.mojo:infer-maven-plugin": { + "locked": "0.1.0", + "requested": "0.1.0" + }, + "com.datastax.cassandra:cassandra-driver-core": { + "locked": "3.3.0", + "requested": "3.3.0" + }, + "com.diffplug.durian:durian": { + "locked": "3.5.0-SNAPSHOT", + "requested": "3.+" + }, + "com.github.stephenc:jamm": { + "locked": "0.2.5", + "requested": "0.2.5" + }, + "com.google.guava:guava": { + "locked": "21.0", + "requested": "20.0" + }, + "commons-io:commons-io": { + "locked": "2.5", + "requested": "2.5" + }, + "io.dropwizard.metrics:metrics-core": { + "locked": "3.2.2", + "requested": "3.2.2" + }, + "io.zipkin.brave:brave": { + "locked": "4.0.6", + "requested": "4.0.6" + }, + "io.zipkin.java:zipkin": { + "locked": "1.29.2", + "requested": "1.29.2" + }, + "javax.validation:validation-api": { + "locked": "2.0.0.CR3", + "requested": "2.0.0.CR3" + }, + "junit:junit": { + "locked": "4.12", + "requested": "4.12" + }, + "org.apache.cassandra:cassandra-all": { + "locked": "3.11.0", + "requested": "3.11.0" + }, + "org.apache.commons:commons-lang3": { + "locked": "3.6", + "requested": "3.6" + }, + "org.aspectj:aspectjrt": { + "locked": "1.8.10", + "requested": "1.8.10" + }, + "org.aspectj:aspectjweaver": { + "locked": "1.8.10", + "requested": "1.8.10" + }, + "org.cassandraunit:cassandra-unit": { + "locked": "3.1.4.0-SNAPSHOT", + "requested": "3.1.4.0-SNAPSHOT" + }, + "org.codehaus.jackson:jackson-core-asl": { + "locked": "1.9.13", + "requested": "1.9.13" + }, + "org.codehaus.jackson:jackson-mapper-asl": { + "locked": "1.9.13", + "requested": "1.9.13" + }, + "org.hamcrest:hamcrest-core": { + "locked": "1.3", + "requested": "1.3" + }, + "org.hamcrest:hamcrest-library": { + "locked": "1.3", + "requested": "1.3" + }, + "org.mockito:mockito-core": { + "locked": "2.8.47", + "requested": "2.8.47" + }, + "org.slf4j:jcl-over-slf4j": { + "locked": "1.7.7", + "requested": "1.7.1" + }, + "org.slf4j:slf4j-api": { + "locked": "1.7.25", + "requested": "1.7.1" + }, + "org.springframework:spring-core": { + "locked": "4.3.10.RELEASE", + "requested": "4.3.10.RELEASE" + } + }, + "testRuntimeClasspath": { + "com.anthemengineering.mojo:infer-maven-plugin": { + "locked": "0.1.0", + "requested": "0.1.0" + }, + "com.datastax.cassandra:cassandra-driver-core": { + "locked": "3.3.0", + "requested": "3.3.0" + }, + "com.diffplug.durian:durian": { + "locked": "3.5.0-SNAPSHOT", + "requested": "3.+" + }, + "com.github.stephenc:jamm": { + "locked": "0.2.5", + "requested": "0.2.5" + }, + "com.google.guava:guava": { + "locked": "21.0", + "requested": "20.0" + }, + "commons-io:commons-io": { + "locked": "2.5", + "requested": "2.5" + }, + "io.dropwizard.metrics:metrics-core": { + "locked": "3.2.2", + "requested": "3.2.2" + }, + "io.zipkin.brave:brave": { + "locked": "4.0.6", + "requested": "4.0.6" + }, + "io.zipkin.java:zipkin": { + "locked": "1.29.2", + "requested": "1.29.2" + }, + "javax.validation:validation-api": { + "locked": "2.0.0.CR3", + "requested": "2.0.0.CR3" + }, + "junit:junit": { + "locked": "4.12", + "requested": "4.12" + }, + "org.apache.cassandra:cassandra-all": { + "locked": "3.11.0", + "requested": "3.11.0" + }, + "org.apache.commons:commons-lang3": { + "locked": "3.6", + "requested": "3.6" + }, + "org.aspectj:aspectjrt": { + "locked": "1.8.10", + "requested": "1.8.10" + }, + "org.aspectj:aspectjweaver": { + "locked": "1.8.10", + "requested": "1.8.10" + }, + "org.cassandraunit:cassandra-unit": { + "locked": "3.1.4.0-SNAPSHOT", + "requested": "3.1.4.0-SNAPSHOT" + }, + "org.codehaus.jackson:jackson-core-asl": { + "locked": "1.9.13", + "requested": "1.9.13" + }, + "org.codehaus.jackson:jackson-mapper-asl": { + "locked": "1.9.13", + "requested": "1.9.13" + }, + "org.hamcrest:hamcrest-core": { + "locked": "1.3", + "requested": "1.3" + }, + "org.hamcrest:hamcrest-library": { + "locked": "1.3", + "requested": "1.3" + }, + "org.mockito:mockito-core": { + "locked": "2.8.47", + "requested": "2.8.47" + }, + "org.slf4j:jcl-over-slf4j": { + "locked": "1.7.7", + "requested": "1.7.1" + }, + "org.slf4j:slf4j-api": { + "locked": "1.7.25", + "requested": "1.7.1" + }, + "org.springframework:spring-core": { + "locked": "4.3.10.RELEASE", + "requested": "4.3.10.RELEASE" + } + } +} \ No newline at end of file diff --git a/settings.gradle b/settings.gradle new file mode 100644 index 0000000..bad81ae --- /dev/null +++ b/settings.gradle @@ -0,0 +1 @@ +rootProject.name = 'helenus-core'