ext {
projectHome = '../../..'
}
sourceSets.main.java.srcDirs = ["$projectHome/src/app/src/main/java"]

//println '---------------------------'
//println 'src dirs:'
//println '---------------------------'
//sourceSets.main.java.srcDirs.each { File file -> println file.absolutePath }
//println '---------------------------'


dependencies {
    compile project(':wrapper')
}

dependencies {
    compile group: 'commons-collections', name: 'commons-collections', 			version: "$commons_collections_version"
    compile group: 'commons-configuration2', name: 'commons-configuration2', 	version: "$commons_configuration_version"
    compile group: 'commons-text', name: 'commons-text', 	version: "$commons_text_version"
    compile group: 'commons-io', 					name: 'commons-io', 							version: "$commons_io_version"
    compile group: 'commons-lang3', 				name: 'commons-lang3', 						version: "$commons_lang_version"
    compile group: 'commons-logging', 		name: 'commons-logging', 					version: "$commons_logging_version"
    compile group: 'netty', 							name: 'netty-codec', 										version: "$netty_version"
    compile group: 'netty', 							name: 'netty-handler', 										version: "$netty_version"
    compile group: 'netty', 							name: 'netty-transport', 										version: "$netty_version"
    compile group: 'netty', 							name: 'netty-buffer', 										version: "$netty_version"
    compile group: 'netty', 							name: 'netty-common', 										version: "$netty_version"
    compile group: 'permit-reflect', 				name: 'permit-reflect', 					version: "$permit_version"
}

//println '---------------------------'
//println 'dependency jars:'
//println '---------------------------'
//configurations.compile.each { File file -> println file.absolutePath }
//println '---------------------------'

// name of jar file
jar.baseName = 'wrapperApp'

// TODO generate manifest
jar {
    manifest {
        from '../../MANIFEST.MF'
    }
}
