mirror of
https://github.com/status-im/ethereumj-personal.git
synced 2025-02-17 14:16:23 +00:00
Replaced spring framework with robospring. Changed ethereumj-core build to android-library. Disabled BlockStoreImpl until we make it android compatible( use InMemoryBlockstore ). Disabled antlr4 dependencies. Commented some dependencies(needs testing before enabling). Excluded dom4j and org.jboss.spec.javax.transaction dependencies (problems with android). Change to netty 4.0.18.Final (this seems to work with android; latest 4.1 and 5.0 presented some problems; needs additional testing).
145 lines
4.5 KiB
Groovy
145 lines
4.5 KiB
Groovy
apply plugin: 'com.android.library'
|
|
|
|
repositories {
|
|
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
|
|
mavenCentral()
|
|
maven { url 'http://repo.spring.io/plugins-release-local' }
|
|
|
|
flatDir {
|
|
dirs "libs"
|
|
}
|
|
}
|
|
|
|
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'
|
|
}
|
|
}
|
|
}
|
|
//ext.generatedSrcDir = file('src/gen/java')
|
|
|
|
//sourceSets.main.java.srcDirs += generatedSrcDir
|
|
|
|
//antlr4 {
|
|
// extraArgs = ['-package', 'org.ethereum.serpent']
|
|
// output = file("${generatedSrcDir}/org/ethereum/serpent")
|
|
//}
|
|
|
|
//compileJava.dependsOn antlr4
|
|
|
|
ext {
|
|
slf4jVersion = '1.7.7'
|
|
leveldbVersion = '0.7'
|
|
scastleVersion = '1.51.0.0'
|
|
log4jVersion = '1.2.17'
|
|
hibernateVersion = '4.3.7.Final'
|
|
junitVersion = '4.11'
|
|
}
|
|
|
|
dependencies {
|
|
//compile 'com.android.support:appcompat-v7:+'
|
|
compile fileTree(include: ['*.jar'], dir: 'libs')
|
|
compile 'com.j256.ormlite:ormlite-core:4.48'
|
|
compile('com.j256.ormlite:ormlite-android:4.48') {
|
|
exclude group: 'commons-logging', module: 'commons-logging'
|
|
}
|
|
compile('com.j256.ormlite:ormlite-jdbc:4.48') {
|
|
exclude group: 'commons-logging', module: 'commons-logging'
|
|
}
|
|
//compile(name:'android-leveldb', ext:'aar')
|
|
//compile 'com.snappydb:snappydb-lib:0.5.0'
|
|
//compile files('./libs/android.jar')
|
|
|
|
//compile files('./libs/commons-io-2.4.jar')
|
|
|
|
//compile files('./libs/robospring-1.0.7.jar')
|
|
|
|
//compile "com.octo.android.robospice:robospice-spring-android:1.4.14"
|
|
|
|
//compile 'com.octo.android.robospice:robospice-ormlite:1.4.14'
|
|
compile('io.netty:netty-all:4.0.18.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 "im.amomo.leveldb:leveldb:1.0.1"
|
|
//compile 'com.google.guava:guava:18.0'
|
|
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'
|
|
|
|
// for serpent compilation
|
|
|
|
//compile 'com.yuvalshavit:antlr-denter:1.1'
|
|
|
|
//compile 'org.javassist:javassist:3.15.0-GA'
|
|
compile 'org.slf4j:slf4j-android:1.6.1-RC1'
|
|
//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.2.0'
|
|
compile 'org.apache.commons:commons-collections4:4.0'
|
|
//compile 'commons-codec:commons-codec:1.10'
|
|
|
|
// compile "org.springframework:spring-context:${springVersion}"
|
|
|
|
//compile "org.springframework:spring-tx:${springVersion}"
|
|
|
|
//compile "org.springframework:spring-orm:${springVersion}"
|
|
compile 'org.hsqldb:hsqldb:1.8.0.10'
|
|
// best performance - do not upgrade!
|
|
compile 'javax.el:javax.el-api:2.2.4'
|
|
compile 'org.glassfish.web:javax.el:2.2.4'
|
|
compile("org.hibernate:hibernate-core:${hibernateVersion}") {
|
|
exclude group: 'dom4j', module: 'dom4j'
|
|
exclude group: 'org.jboss.spec.javax.transaction', module: 'jboss-transaction-api_1.2_spec'
|
|
}
|
|
compile("org.hibernate:hibernate-entitymanager:${hibernateVersion}") {
|
|
exclude group: 'dom4j', module: 'dom4j'
|
|
exclude group: 'org.jboss.spec.javax.transaction', module: 'jboss-transaction-api_1.2_spec'
|
|
}
|
|
//compile ('commons-dbcp:commons-dbcp:1.4') {
|
|
|
|
// exclude group: 'commons-logging', module: 'commons-logging'
|
|
|
|
// }
|
|
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'
|
|
}
|
|
//optional "org.slf4j:jcl-over-slf4j:${slf4jVersion}"
|
|
|
|
//optional "de.mindpipe.android:android-logging-log4j:1.0.2"
|
|
|
|
//optional "log4j:apache-log4j-extras:${log4jVersion}"
|
|
testCompile "junit:junit:${junitVersion}"
|
|
//testCompile "org.springframework:spring-test:${springVersion}"
|
|
|
|
}
|