gradle

group 'demo'
version '1.0-SNAPSHOT'

apply plugin: 'java'
apply plugin: 'war'

sourceCompatibility = 1.8

[compileJava, javadoc, compileTestJava]*.options*.encoding = 'UTF-8'

// In this section you declare where to find the dependencies of your project
repositories {
    jcenter()
}

// In this section you declare the dependencies for your production and test code
dependencies {
    //common library
    compile 'org.slf4j:slf4j-api:1.7.13'
    compile 'mysql:mysql-connector-java:5.1.38'
    compile 'org.apache.commons:commons-pool2:2.4.2'
    compile 'org.apache.commons:commons-dbcp2:2.1.1'
    compile 'org.apache.commons:commons-lang3:3.4'

    compile 'commons-io:commons-io:2.5'
    compile 'commons-beanutils:commons-beanutils:1.9.2'
    compile 'commons-validator:commons-validator:1.4.0'
    compile 'commons-fileupload:commons-fileupload:1.2.2'
    compile 'log4j:log4j:1.2.17'
    compile 'com.fasterxml.jackson.core:jackson-databind:2.7.4'
    compile 'com.fasterxml.jackson.core:jackson-core:2.7.4'
    compile 'com.fasterxml.jackson.core:jackson-annotations:2.7.4'
    compile 'net.sf.ezmorph:ezmorph:1.0.6'
    compile 'commons-collections:commons-collections:3.1'
    compile 'net.sf.json-lib:json-lib:2.4:jdk15'
    //qiniu library
    compile 'com.qiniu:qiniu-java-sdk:7.0.+'
    //quartz library
    compile group: 'org.quartz-scheduler', name: 'quartz', version: '2.1.1'
    //mybatis
    compile group: 'org.mybatis', name: 'mybatis', version: '3.4.0'

    // spring library
    compile group: 'org.springframework', name: 'spring-core', version: '4.2.3.RELEASE'
    compile group: 'org.springframework', name: 'spring-beans', version: '4.2.3.RELEASE'
    compile group: 'org.springframework', name: 'spring-context', version: '4.2.3.RELEASE'
    compile group: 'org.springframework', name: 'spring-context-support', version: '4.2.3.RELEASE'
    compile group: 'org.springframework', name: 'spring-web', version: '4.2.3.RELEASE'
    compile group: 'org.springframework', name: 'spring-webmvc', version: '4.2.3.RELEASE'
    compile group: 'org.springframework', name: 'spring-orm', version: '4.2.3.RELEASE'
    compile group: 'org.springframework', name: 'spring-oxm', version: '4.2.3.RELEASE'
    compile group: 'org.springframework', name: 'spring-tx', version: '4.2.3.RELEASE'
    compile group: 'org.springframework', name: 'spring-aop', version: '4.2.3.RELEASE'
    compile group: 'org.springframework', name: 'spring-aspects', version: '4.2.3.RELEASE'
    compile group: 'org.springframework', name: 'spring-jdbc', version: '4.2.3.RELEASE'
    compile group: 'org.springframework', name: 'spring-expression', version: '4.2.3.RELEASE'
    compile group: 'org.springframework', name: 'spring-instrument', version: '4.2.3.RELEASE'
    compile group: 'org.springframework', name: 'spring-instrument-tomcat', version: '4.2.3.RELEASE'
    compile group: 'org.springframework', name: 'spring-test', version: '4.2.3.RELEASE'

    // hibernate library
    compile group: 'org.hibernate', name: 'hibernate-core', version: '5.0.1.Final'
    compile group: 'org.hibernate', name: 'hibernate-entitymanager', version: '5.0.1.Final'
    compile group: 'org.hibernate', name: 'hibernate-osgi', version: '5.0.1.Final'
    compile group: 'org.hibernate', name: 'hibernate-envers', version: '5.0.1.Final'
    compile group: 'org.hibernate', name: 'hibernate-c3p0', version: '5.0.1.Final'
    compile group: 'org.hibernate', name: 'hibernate-proxool', version: '5.0.1.Final'
    compile group: 'org.hibernate', name: 'hibernate-infinispan', version: '5.0.1.Final'
    compile group: 'org.hibernate', name: 'hibernate-ehcache', version: '5.0.1.Final'
    compile group: 'org.hibernate', name: 'hibernate-validator', version: '5.0.1.Final'

    //httpclient
    compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5'

    //jackson library
    compile group: 'org.codehaus.jackson', name: 'jackson-core-asl', version: '1.9.13'
    compile group: 'org.codehaus.jackson', name: 'jackson-mapper-asl', version: '1.9.13'
    compile group: 'org.codehaus.jackson', name: 'jackson-core-lgpl', version: '1.9.13'
    compile group: 'org.codehaus.jackson', name: 'jackson-mapper-lgpl', version: '1.9.13'
    compile group: 'org.codehaus.jackson', name: 'jackson-smile', version: '1.9.13'
    compile group: 'org.codehaus.jackson', name: 'jackson-mrbean', version: '1.9.13'
    compile group: 'org.codehaus.jackson', name: 'jackson-jaxrs', version: '1.9.13'

    //jersey library
    compile group: 'com.sun.jersey', name: 'jersey-core', version: '1.19.1'
    compile group: 'com.sun.jersey', name: 'jersey-client', version: '1.19.1'
    compile group: 'com.sun.jersey', name: 'jersey-json', version: '1.19.1'
    //compile group: 'com.sun.jersey', name: 'jersey-spring', version: '1.0'

    //dubbo
    compile group: 'com.alibaba', name: 'dubbo', version: '2.5.3'
    //javassist
    compile group: 'org.javassist', name: 'javassist', version: '3.20.0-GA'
    //netty
    compile group: 'org.jboss.netty', name: 'netty', version: '3.2.10.Final'
    //zookeeper
    compile group: 'org.apache.zookeeper', name: 'zookeeper', version: '3.4.8', ext: 'pom'
    //hessian
    compile group: 'com.caucho', name: 'hessian', version: '4.0.38'
    //validation
    compile group: 'javax.validation', name: 'validation-api', version: '1.1.0.Final'

    //Shiro
    compile group: 'org.apache.shiro', name: 'shiro-core', version: '1.2.5'
    compile group: 'org.apache.shiro', name: 'shiro-web', version: '1.2.5'
    compile group: 'org.apache.shiro', name: 'shiro-ehcache', version: '1.2.5'
    compile group: 'org.apache.shiro', name: 'shiro-spring', version: '1.2.5'
    compile group: 'org.apache.shiro', name: 'shiro-guice', version: '1.2.5'
    compile group: 'org.apache.shiro', name: 'shiro-all', version: '1.2.5'
    compile group: 'org.apache.shiro', name: 'shiro-cas', version: '1.2.5'
    compile group: 'org.apache.shiro', name: 'shiro-aspectj', version: '1.2.5'
    compile group: 'org.apache.shiro', name: 'shiro-quartz', version: '1.2.5'
    compile group: 'org.apache.shiro', name: 'shiro-features', version: '1.2.5'
    compile group: 'org.apache.shiro', name: 'shiro-support', version: '1.2.5'
    compile group: 'org.apache.shiro', name: 'shiro-root', version: '1.2.5'
    compile group: 'org.apache.shiro', name: 'shiro-groovy', version: '1.1.0'



    providedCompile 'javax.servlet:javax.servlet-api:3.0.1' // 编译期
    providedRuntime 'javax.servlet:jstl:1.2'    // 运行时

    testCompile 'junit:junit:4.12'
}

//eclipse 配置
/*eclipse {
    wtp {
        component {
            resource sourcePath: 'src/main/java', deployPath: 'WebRoot/WEB-INF/classes'
            resource sourcePath: 'src/main/resources', deployPath: 'WebRoot//WEB-INF/classes'
            resource sourcePath: 'WebRoot', deployPath: 'WebRoot/'
        }
    }
}


uploadArchives {
    repositories {
        mavenDeployer {
            repository(url: "http://192.168.2.167:8888/nexus/content/repositories/snapshots/") {
                authentication(userName: "admin", password: "admin123")
                pom.groupId = "com.ff"
                pom.version = version
                pom.artifactId = projectName
            }
        }
    }
}*/

build.dependsOn uploadArchives
/*-----------发布编码 --------------- */
task publishCode << {
    copy {
        /*from configurations.compile
      into "WebRoot/WEB-INF/lib"*/
    }

}
/*-----------发布测试 --------------- */
task publishTest << {
}
/*-----------发布线上 --------------- */
task publishOnline << {
}

/*task copyJars(type: Copy) {
    from configurations.compile
    into 'WebRoot/WEB-INF/lib'
}*/
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值