apply plugin: 'eclipse-wtp'
apply plugin: 'idea'

archivesBaseName = "spark-common"

apply plugin: "io.spring.dependency-management"
ext['hibernate.version'] = '5.2.17.Final'


dependencies {
    compile('org.springframework.boot:spring-boot-starter-data-jpa')
    // compile('org.flywaydb:flyway-core')
    compile('org.mybatis.spring.boot:mybatis-spring-boot-starter:1.3.0')
    // compile('org.springframework.boot:spring-boot-starter-security')
    compile('org.springframework.boot:spring-boot-starter-web')
    compile('org.springframework.boot:spring-boot-starter-activemq')
    compile('org.apache.activemq:activemq-pool')
    compile('org.springframework.boot:spring-boot-starter-thymeleaf')
    compile('org.springframework.boot:spring-boot-starter-data-redis')
    compile('org.springframework.boot:spring-boot-starter-data-mongodb')
    compile('org.springframework.session:spring-session:1.3.0.RELEASE')
    compile('com.fasterxml.jackson.datatype:jackson-datatype-hibernate5:2.8.11')
    // compile('javax.servlet:jstl')
    compile('joda-time:joda-time:2.9.9')
    compile('org.apache.commons:commons-lang3:3.5')
    compile('org.apache.ant:ant:1.9.8')
    compile 'commons-io:commons-io:2.5'
	compile 'org.apache.httpcomponents:httpclient:4.5.4'
    
    // 定时任务
    compile('org.quartz-scheduler:quartz:2.2.3')
    // 日期社交化显示
    compile 'org.ocpsoft.prettytime:prettytime:4.0.1.Final'
    // 客户端检查工具
    compile 'nl.basjes.parse.useragent:yauaa:2.0'
    
    //poi
//    compile 'org.apache.poi:poi:3.14'
//    compile 'org.apache.poi:poi-scratchpad:3.14'
//    compile 'org.apache.poi:poi-ooxml:3.14'
    compile 'org.apache.poi:poi:4.1.0'
    compile 'org.apache.poi:poi-scratchpad:4.1.0'
    compile 'org.apache.poi:poi-ooxml:4.1.0'
    
    compile("com.google.guava:guava:22.0")
    
    // Api viewer, TODO: 定制UI和文档注释方式 ，换用javadoc注释方式，而不用 swagger annotation
    compile("io.springfox:springfox-swagger2:2.7.0")
    compile("io.springfox:springfox-swagger-ui:2.7.0")
    
    // https://mvnrepository.com/artifact/com.alibaba/fastjson
    compile ('com.alibaba:fastjson:1.2.31')
    compile ('javax.interceptor:javax.interceptor-api:1.2')
    
    // Dto util
    compile 'org.modelmapper:modelmapper:2.0.0'
    // resolve weblogic deploy error
    compile group: 'com.querydsl', name: 'querydsl-jpa', version: '4.1.4'
    
    // https://mvnrepository.com/artifact/commons-beanutils/commons-beanutils
    compile group: 'commons-beanutils', name: 'commons-beanutils', version: '1.9.3'
    // html parser
    compile('org.jsoup:jsoup:1.10.2')
    compile group: 'com.alibaba', name: 'druid-spring-boot-starter', version: '1.1.10'
    // https://mvnrepository.com/artifact/org.apache.commons/commons-dbcp2
    compile group: 'org.apache.commons', name: 'commons-dbcp2', version: '2.8.0'

    // image handler
	compile (
		'org.imgscalr:imgscalr-lib:4.2',
		'net.coobird:thumbnailator:0.4.8',
		// animated-gif-lib
		'com.madgag:animated-gif-lib:1.2',
        'com.twelvemonkeys.imageio:imageio-jpeg:3.6'

    )
    
    // runtime('com.h2database:h2')
    runtime('mysql:mysql-connector-java')
    // https://mvnrepository.com/artifact/com.oracle/ojdbc6
    runtime 'com.oracle:ojdbc6:12.1.0.1-atlassian-hosted'
    runtime 'de.codecentric:spring-boot-admin-starter-client:1.5.6'
	// for hibernate auditing
	compile group: 'org.hibernate', name: 'hibernate-envers', version: '5.0.1.Final'
	
    testCompile('org.springframework.boot:spring-boot-starter-test')
    compile('org.springframework.boot:spring-boot-starter-tomcat')
    compile('javax.servlet:javax.servlet-api')
    compile('org.apache.tomcat.embed:tomcat-embed-jasper')
    // https://mvnrepository.com/artifact/com.google.zxing/javase
    compile group: 'com.google.zxing', name: 'javase', version: '3.2.1'
    // https://mvnrepository.com/artifact/com.google.zxing/core
	compile group: 'com.google.zxing', name: 'core', version: '3.2.1'



}

processResources {
    excludes = ['**/application.properties']
}
