138 lines
3.4 KiB
Groovy
Raw Normal View History

2015-05-22 21:19:38 +02:00
apply plugin: 'com.android.library'
apply plugin: 'com.neenbedankt.android-apt'
2015-05-06 19:26:56 +02:00
buildscript {
repositories {
maven {
name 'JFrog OSS snapshot repo'
url 'https://oss.jfrog.org/oss-snapshot-local/'
}
jcenter()
}
dependencies {
classpath 'me.champeau.gradle:antlr4-gradle-plugin:0.1'
2015-05-22 21:19:38 +02:00
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.4'
2015-05-06 19:26:56 +02:00
}
}
apply plugin: 'me.champeau.gradle.antlr4'
2015-05-22 21:19:38 +02:00
repositories {
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
mavenCentral()
maven { url 'http://repo.spring.io/plugins-release-local' }
2014-12-26 14:23:44 +01:00
flatDir {
dirs "libs"
}
2014-12-26 14:23:44 +01:00
}
2015-05-06 19:26:56 +02:00
ext.generatedSrcDir = file('src/gen/java')
android {
compileSdkVersion 21
buildToolsVersion "21.1.2"
defaultConfig {
minSdkVersion 14
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
2015-05-06 19:26:56 +02:00
sourceSets {
main {
java {
exclude '**/BlockStoreImpl.java'
exclude '**/CommonConfig.java'
exclude '**/DefaultConfig.java'
exclude '**/RemoteConfig.java'
exclude '**/EthereumFactory.java'
exclude '**/Start.java'
2015-05-06 19:26:56 +02:00
srcDirs += generatedSrcDir
2015-05-06 19:26:56 +02:00
}
}
}
}
2015-05-06 19:26:56 +02:00
antlr4 {
extraArgs = ['-package', 'org.ethereum.serpent']
output = file("${generatedSrcDir}/org/ethereum/serpent")
}
//compileJava.dependsOn antlr4
2015-05-06 19:26:56 +02:00
configurations {
compile.extendsFrom antlr4
}
2014-12-26 14:23:44 +01:00
ext {
slf4jVersion = '1.7.7'
leveldbVersion = '0.7'
scastleVersion = '1.51.0.0'
log4jVersion = '1.2.17'
hibernateVersion = '4.3.10.Final'
2014-12-26 14:23:44 +01:00
junitVersion = '4.11'
}
dependencies {
2015-05-22 21:19:38 +02:00
apt 'com.google.dagger:dagger-compiler:2.0'
compile 'com.google.dagger:dagger:2.0'
compile fileTree(include: ['*.jar'], dir: 'libs')
2015-05-26 15:23:26 +02:00
provided 'javax.annotation:javax.annotation-api:1.2'
compile('io.netty:netty-all:4.0.28.Final') {
exclude group: 'commons-logging', module: 'commons-logging'
}
compile "com.madgag.spongycastle:core:${scastleVersion}"
// for SHA3 and SECP256K1
compile "com.madgag.spongycastle:prov:${scastleVersion}"
// for SHA3 and SECP256K1
compile "org.iq80.leveldb:leveldb:${leveldbVersion}"
compile('com.cedarsoftware:java-util:1.8.0') {
exclude group: 'commons-logging', module: 'commons-logging'
}
// for deep equals
//compile 'org.antlr:antlr4-runtime:4.5'
2015-05-27 16:59:14 +02:00
// for serpent compilation
2015-05-06 19:26:56 +02:00
compile 'com.yuvalshavit:antlr-denter:1.1'
2015-05-27 16:59:14 +02:00
compile 'org.slf4j:slf4j-android:1.7.12'
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.2.0'
compile 'org.apache.commons:commons-collections4:4.0'
2015-05-27 16:59:14 +02:00
compile 'org.hsqldb:hsqldb:1.8.0.10' // best performance - do not upgrade!
compile 'javax.persistence:persistence-api:1.0.2'
compile('redis.clients:jedis:2.6.0') {
exclude group: 'org.apache.commons', module: 'commons-pool2'
}
compile('com.googlecode.json-simple:json-simple:1.1.1') {
exclude group: 'junit', module: 'junit'
exclude group: 'xml-apis', module: 'xml-apis'
}
testCompile "junit:junit:${junitVersion}"
}