ext.moduleName = 'aion.precompiled'
test.dependsOn copyNativeLibsForModuleTests
unitTest.dependsOn copyNativeLibsForModuleTests

clean.dependsOn deleteNativeLibs

dependencies {
    compile project(':modCrypto')

    compile 'com.google.guava:guava:25.1-jre'
    compile 'com.google.code.findbugs:jsr305:3.0.2'
    compile files("${rootProject.projectDir}/lib/aion-types-d6eb8f7.jar")
    
    testCompile 'junit:junit:4.12'
    testCompile group: 'com.googlecode.java-diff-utils', name: 'diffutils', version: '1.2'
    testCompile 'com.google.truth:truth:0.42'
}

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")
