ext.moduleName = 'aion.base'

test.dependsOn copyNativeLibsForModuleTests
unitTest.dependsOn copyNativeLibsForModuleTests
clean.dependsOn deleteNativeLibs

dependencies {
    compile files("${rootProject.projectDir}/lib/fastvm-c7d37c5.jar")
    compile files("${rootProject.projectDir}/lib/aion-types-22a3be9.jar")
    compile project(':modUtil')
    compile project(':modLogger')
    compile project(':modRlp')
    compile project(':modCrypto')
    compile 'org.slf4j:slf4j-api:1.7.25'
    compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.4'

    testCompile 'junit:junit:4.12'
}

sourceSets {
    unitTest {
        resources {
            srcDirs = ['test']
        }
        java {
            srcDirs = ['test']
            compileClasspath += main.output + test.output
            runtimeClasspath += main.output + test.output
        }
    }
}

configurations {
    unitTestCompile.extendsFrom testCompile
    unitTestRuntime.extendsFrom testRuntime
}


// Skip unit tests when doing build task; unit tests are all mixed up with
// long-running integration tests in this module,so doing this to avoid
// build taking too long.
build.dependsOn.remove("check")
