123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260 |
- apply plugin: 'java'
- apply plugin: 'idea'
- idea {
- module {
- inheritOutputDirs = true
- }
- }
- ext {
- env = System.getProperty("env") ?:"dev"
- split = ";"
- switch (System.getProperty("os.name")) {
- case "Linux":
- split = ":"
- break
- case "Mac OS X":
- split = ":"
- break
- default:
- split = ";"
- }
- println "使用环境配置为:$env,分隔符为:$split"
- project_jdk = '1.8'
- project_web = '3.0'
- }
- subprojects { subproj ->
- apply plugin: 'java'
- sourceSets {
- main {
- resources {
- srcDirs = ["src/main/resources", "src/main/resources-$env"]
- }
- }
- }
- [compileJava,compileTestJava]*.options*.encoding = 'UTF-8'
- [compileJava,compileTestJava]*.options*.debug = 'UTF-8'
- apply plugin: 'idea'
- version = '1.0'
- // sourceCompatibility = JavaVersion.VERSION_1_7
- // targetCompatibility = JavaVersion.VERSION_1_7
- repositories {
- maven {url "http://maven.aliyun.com/nexus/content/groups/public/"}
- // maven{ url 'http://c-wms.iask.in:7777/nexus/content/groups/public/'}
- }
- compileJava {
- options.compilerArgs << "-g:source,lines,vars"
- // options.bootstrapClasspath = "${System.properties['java.home']}/lib/rt.jar$split${System.properties['java.home']}/lib/jce.jar"
- }
- }
- version = '1.0'
- idea {
- module {
- // idea Module 的忽略列表加入下面这些目录
- excludeDirs += [file('bin'),file('out'), file('node_modules'), file('tools'), file('.gradle')]
- }
- }
- project(':common'){
- apply plugin: 'java'
- apply plugin: 'idea'
- // apply plugin: 'war'
- dependencies {
- compile fileTree(dir: '../lib', include: '*.jar')
- compile 'avalon-framework:avalon-framework:4.1.5-RC2'
- compile 'org.apache.struts:struts2-core:2.5.30'
- compile 'org.apache.struts:struts2-convention-plugin:2.5.30'
- compile('org.apache.struts:struts2-spring-plugin:2.5.30'){
- exclude module: 'spring-context'
- exclude module: 'spring-core'
- exclude module: 'spring-web'
- }
- compile ('org.apache.logging.log4j:log4j-api:2.17.2'){
- force = true
- }
- compile 'org.apache.logging.log4j:log4j-core:2.17.2'
- compile 'org.apache.logging.log4j:log4j-web:2.17.2'
- compile 'org.apache.logging.log4j:log4j-1.2-api:2.17.2'
- compile 'org.apache.logging.log4j:log4j-slf4j-impl:2.17.2'
- compile 'com.sun.xml.bind:jaxb-impl:3.0.2'
- compile ('org.apache.commons:commons-lang3:3.12.0'){
- force = true
- }
- // https://mvnrepository.com/artifact/ognl/ognl
- compile 'ognl:ognl:3.1.29'
- // https://mvnrepository.com/artifact/org.freemarker/freemarker
- compile ('org.freemarker:freemarker:2.3.23'){
- force = true
- }
- compileOnly "javax.servlet:javax.servlet-api:3.1.0"
- compileOnly "javax.servlet.jsp:jsp-api:2.2.1-b03"
- }
- configurations {
- compile.exclude module: 'servlet-api'
- compile.exclude module: 'log4j'
- compile.exclude module: 'slf4j-log4j12'
- compile.exclude module: 'commons-io'
- }
- configurations.compile.resolutionStrategy{
- failOnVersionConflict()
- force 'org.freemarker:freemarker:2.3.31'
- force 'ognl:ognl:3.1.29'
- }
- }
- project(':web-cluster'){
- apply plugin: 'java'
- apply plugin: 'idea'
- apply plugin: 'war'
- dependencies {
- compile (
- project(':common')
- )
- compile 'org.apache.struts:struts2-core:2.5.30'
- compile 'org.apache.struts:struts2-convention-plugin:2.5.30'
- compile('org.apache.struts:struts2-spring-plugin:2.5.30'){
- exclude module: 'spring-context'
- }
- compile 'org.apache.logging.log4j:log4j-api:2.17.2'
- compile 'org.apache.logging.log4j:log4j-core:2.17.2'
- compile 'org.apache.logging.log4j:log4j-web:2.17.2'
- compile 'org.apache.logging.log4j:log4j-1.2-api:2.17.2'
- compile 'org.apache.logging.log4j:log4j-slf4j-impl:2.17.2'
- compile 'com.sun.xml.bind:jaxb-impl:3.0.2'
- compile ('org.apache.commons:commons-lang3:3.12.0'){
- force = true
- }
- // https://mvnrepository.com/artifact/ognl/ognl
- compile 'ognl:ognl:3.1.29'
- // https://mvnrepository.com/artifact/org.freemarker/freemarker
- compile ('org.freemarker:freemarker:2.3.23'){
- force = true
- }
- compileOnly "javax.servlet:javax.servlet-api:3.1.0"
- providedCompile "javax.servlet.jsp:jsp-api:2.2.1-b03"
- }
- configurations {
- compile.exclude module: 'log4j'
- compile.exclude module: 'slf4j-log4j12'
- }
- war {
- archiveName 'BH_CLUSTER.war'
- }
- }
- project(':web-clis'){
- apply plugin: 'java'
- apply plugin: 'idea'
- apply plugin: 'war'
- dependencies {
- compile (
- project(':common')
- )
- compile 'org.apache.struts:struts2-core:2.5.30'
- compile 'org.apache.struts:struts2-convention-plugin:2.5.30'
- compile('org.apache.struts:struts2-spring-plugin:2.5.30'){
- exclude module: 'spring-context'
- }
- compile 'org.apache.logging.log4j:log4j-api:2.17.2'
- compile 'org.apache.logging.log4j:log4j-core:2.17.2'
- compile 'org.apache.logging.log4j:log4j-web:2.17.2'
- compile 'org.apache.logging.log4j:log4j-1.2-api:2.17.2'
- compile 'org.apache.logging.log4j:log4j-slf4j-impl:2.17.2'
- compile 'com.sun.xml.bind:jaxb-impl:3.0.2'
- compile ('org.apache.commons:commons-lang3:3.12.0'){
- force = true
- }
- // https://mvnrepository.com/artifact/ognl/ognl
- compile 'ognl:ognl:3.1.29'
- // https://mvnrepository.com/artifact/org.freemarker/freemarker
- compile ('org.freemarker:freemarker:2.3.23'){
- force = true
- }
- compileOnly "javax.servlet:javax.servlet-api:3.1.0"
- providedCompile "javax.servlet.jsp:jsp-api:2.2.1-b03"
- }
- configurations {
- compile.exclude module: 'log4j'
- compile.exclude module: 'slf4j-log4j12'
- }
- war {
- archiveName 'BH_CLIS.war'
- }
- }
- project(':web-edi'){
- apply plugin: 'java'
- apply plugin: 'idea'
- apply plugin: 'war'
- dependencies {
- compile (
- project(':common')
- )
- compile 'org.apache.struts:struts2-core:2.5.30'
- compile 'org.apache.struts:struts2-convention-plugin:2.5.30'
- compile('org.apache.struts:struts2-spring-plugin:2.5.30'){
- exclude module: 'spring-context'
- }
- compile 'org.apache.logging.log4j:log4j-api:2.17.2'
- compile 'org.apache.logging.log4j:log4j-core:2.17.2'
- compile 'org.apache.logging.log4j:log4j-web:2.17.2'
- compile 'org.apache.logging.log4j:log4j-1.2-api:2.17.2'
- compile 'org.apache.logging.log4j:log4j-slf4j-impl:2.17.2'
- compile 'com.sun.xml.bind:jaxb-impl:3.0.2'
- compile ('org.apache.commons:commons-lang3:3.12.0'){
- force = true
- }
- // https://mvnrepository.com/artifact/ognl/ognl
- compile 'ognl:ognl:3.1.29'
- // https://mvnrepository.com/artifact/org.freemarker/freemarker
- compile ('org.freemarker:freemarker:2.3.23'){
- force = true
- }
- compileOnly "javax.servlet:javax.servlet-api:3.1.0"
- providedCompile "javax.servlet.jsp:jsp-api:2.2.1-b03"
- }
- configurations {
- compile.exclude module: 'log4j'
- compile.exclude module: 'slf4j-log4j12'
- }
- war {
- archiveName 'BH_EDI.war'
- }
- }
|