2015-05-06 17:26:56 +00:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
2015-06-03 16:24:25 +00:00
|
|
|
jcenter()
|
2015-05-06 17:26:56 +00:00
|
|
|
maven {
|
|
|
|
name 'JFrog OSS snapshot repo'
|
|
|
|
url 'https://oss.jfrog.org/oss-snapshot-local/'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
dependencies {
|
|
|
|
classpath 'me.champeau.gradle:antlr4-gradle-plugin:0.1'
|
2015-05-29 22:42:03 +00:00
|
|
|
classpath 'org.jfrog.buildinfo:build-info-extractor-gradle:3.0.1'
|
2015-05-06 17:26:56 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-05-29 22:42:03 +00:00
|
|
|
plugins {
|
2015-06-03 14:23:01 +00:00
|
|
|
id 'java'
|
2015-05-29 22:42:03 +00:00
|
|
|
id 'application'
|
|
|
|
id 'jacoco'
|
2015-06-03 14:23:01 +00:00
|
|
|
id 'com.github.johnrengelman.shadow' version '1.2.1'
|
2015-05-29 22:42:03 +00:00
|
|
|
id 'com.github.kt3k.coveralls' version '2.0.1x'
|
|
|
|
id 'com.jfrog.bintray' version '1.0'
|
|
|
|
}
|
|
|
|
|
2015-04-28 18:08:04 +00:00
|
|
|
repositories {
|
2015-06-03 14:23:01 +00:00
|
|
|
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
|
2015-06-03 16:24:25 +00:00
|
|
|
jcenter()
|
2014-12-26 13:23:44 +00:00
|
|
|
}
|
|
|
|
|
2015-06-03 16:24:25 +00:00
|
|
|
sourceCompatibility = 1.7
|
|
|
|
|
|
|
|
mainClassName = 'org.ethereum.Start'
|
2015-07-02 20:04:25 +00:00
|
|
|
applicationDefaultJvmArgs = ["-server", "-Xss32m", "-Xms3500m"]
|
2015-06-03 16:24:25 +00:00
|
|
|
|
2015-05-06 17:26:56 +00:00
|
|
|
ext.generatedSrcDir = file('src/gen/java')
|
|
|
|
|
2015-06-03 16:24:25 +00:00
|
|
|
sourceSets {
|
|
|
|
main {
|
|
|
|
java {
|
|
|
|
exclude '**/CommonConfig.java'
|
|
|
|
exclude '**/DefaultConfig.java'
|
|
|
|
exclude '**/RemoteConfig.java'
|
|
|
|
srcDirs += generatedSrcDir
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-05-06 17:26:56 +00:00
|
|
|
|
|
|
|
|
2015-06-03 12:18:55 +00:00
|
|
|
|
2015-06-03 16:24:25 +00:00
|
|
|
tasks.withType(JavaCompile){
|
|
|
|
options.warnings = false
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This is TCK test command line option,
|
|
|
|
* to run the test:
|
|
|
|
* gradle tckRun -PfilePath=[ file path]
|
|
|
|
* e.g: gradle tckRun -PfilePath=E:\temp\test-case.json
|
|
|
|
*/
|
|
|
|
task tckRun(type:JavaExec){
|
|
|
|
|
|
|
|
if (project.hasProperty("filePath")) {
|
|
|
|
args = ["filerun", "$filePath"]
|
|
|
|
jvmArgs = ["-Xss32M"]
|
|
|
|
}
|
|
|
|
|
|
|
|
if (project.hasProperty("content")) {
|
|
|
|
args = ["content", "$content"]
|
|
|
|
jvmArgs = ["-Xss32M"]
|
|
|
|
}
|
|
|
|
|
|
|
|
main = "org.ethereum.tck.RunTck"
|
|
|
|
classpath = sourceSets.main.runtimeClasspath
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
test {
|
|
|
|
|
|
|
|
beforeTest { descriptor ->
|
|
|
|
logger.lifecycle("Running test: ${descriptor}")
|
|
|
|
}
|
|
|
|
|
2015-06-10 17:38:43 +00:00
|
|
|
jvmArgs += [ "-Xss32m", "-XX:MaxPermSize=256m" ]
|
2015-06-03 16:24:25 +00:00
|
|
|
|
|
|
|
testLogging {
|
|
|
|
events "failed"
|
|
|
|
exceptionFormat "short"
|
|
|
|
}
|
|
|
|
|
|
|
|
systemProperty "file.encoding", "UTF-8"
|
|
|
|
}
|
2015-04-28 18:08:04 +00:00
|
|
|
|
2014-12-26 13:23:44 +00:00
|
|
|
ext {
|
2015-06-17 12:57:07 +00:00
|
|
|
slf4jVersion = '1.7.12'
|
2014-12-26 13:23:44 +00:00
|
|
|
leveldbVersion = '0.7'
|
|
|
|
scastleVersion = '1.51.0.0'
|
|
|
|
log4jVersion = '1.2.17'
|
2015-05-27 18:05:59 +00:00
|
|
|
hibernateVersion = '4.3.10.Final'
|
2014-12-26 13:23:44 +00:00
|
|
|
junitVersion = '4.11'
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2015-06-03 15:14:12 +00:00
|
|
|
compile 'com.google.dagger:dagger:2.1-SNAPSHOT'
|
2015-06-03 14:23:01 +00:00
|
|
|
compile 'com.google.dagger:dagger-compiler:2.0'
|
|
|
|
|
2015-04-28 18:08:04 +00:00
|
|
|
compile fileTree(include: ['*.jar'], dir: 'libs')
|
2014-12-27 13:04:46 +00:00
|
|
|
|
2015-06-17 12:50:47 +00:00
|
|
|
compile('io.netty:netty-all:4.0.28.Final')
|
|
|
|
compile "com.madgag.spongycastle:core:${scastleVersion}" // for SHA3 and SECP256K1
|
|
|
|
compile "com.madgag.spongycastle:prov:${scastleVersion}" // for SHA3 and SECP256K1
|
2015-04-28 18:08:04 +00:00
|
|
|
|
2015-06-24 22:55:07 +00:00
|
|
|
compile "org.iq80.leveldb:leveldb:${leveldbVersion}"
|
2015-06-17 12:50:47 +00:00
|
|
|
|
2015-07-02 20:04:25 +00:00
|
|
|
compile "org.fusesource.leveldbjni:leveldbjni:1.8"
|
|
|
|
compile "org.fusesource.leveldbjni:leveldbjni-all:1.8"
|
|
|
|
|
2015-06-17 12:50:47 +00:00
|
|
|
compile "com.cedarsoftware:java-util:1.8.0" // for deep equals
|
|
|
|
compile "org.javassist:javassist:3.15.0-GA"
|
|
|
|
compile "org.slf4j:slf4j-api:${slf4jVersion}"
|
|
|
|
compile "log4j:log4j:${log4jVersion}"
|
|
|
|
compile "org.codehaus.jackson:jackson-mapper-asl:1.9.13"
|
|
|
|
compile "com.google.code.findbugs:jsr305:3.0.0"
|
|
|
|
compile "com.fasterxml.jackson.core:jackson-databind:2.5.1"
|
|
|
|
compile "org.apache.commons:commons-collections4:4.0"
|
2015-05-28 11:48:14 +00:00
|
|
|
compile "commons-codec:commons-codec:1.10"
|
2015-06-03 12:18:55 +00:00
|
|
|
compile "org.hibernate:hibernate-core:${hibernateVersion}"
|
2015-06-01 19:31:10 +00:00
|
|
|
compile "org.hibernate:hibernate-entitymanager:${hibernateVersion}"
|
2015-06-17 12:50:47 +00:00
|
|
|
compile "commons-dbcp:commons-dbcp:1.4"
|
2015-06-03 12:18:55 +00:00
|
|
|
compile "redis.clients:jedis:2.6.0"
|
2015-06-17 12:50:47 +00:00
|
|
|
compile "com.h2database:h2:1.4.187"
|
2015-07-02 20:04:25 +00:00
|
|
|
|
|
|
|
// compile "org.mapdb:mapdb:1.0.7"
|
|
|
|
compile "org.mapdb:mapdb:2.0-alpha3"
|
2015-06-17 12:50:47 +00:00
|
|
|
|
|
|
|
compile "org.slf4j:slf4j-log4j12:${slf4jVersion}"
|
|
|
|
compile "log4j:apache-log4j-extras:${log4jVersion}"
|
|
|
|
|
|
|
|
compile("com.googlecode.json-simple:json-simple:1.1.1") {
|
2015-04-28 18:08:04 +00:00
|
|
|
exclude group: 'junit', module: 'junit'
|
|
|
|
}
|
|
|
|
|
2015-06-17 12:50:47 +00:00
|
|
|
compile 'commons-io:commons-io:2.4'
|
|
|
|
|
2015-04-28 18:08:04 +00:00
|
|
|
testCompile "junit:junit:${junitVersion}"
|
2015-06-03 15:14:12 +00:00
|
|
|
testCompile 'com.google.dagger:dagger:2.1-SNAPSHOT'
|
2015-06-03 14:23:01 +00:00
|
|
|
testCompile 'com.google.dagger:dagger-compiler:2.0'
|
2015-06-17 12:50:47 +00:00
|
|
|
}
|
|
|
|
|