Created
January 12, 2018 01:45
-
-
Save aruis/02b051ed2e9ac9ce295cbe70d95b4609 to your computer and use it in GitHub Desktop.
war dependencies
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildscript { | |
repositories { | |
maven { | |
url "http://maven.aliyun.com/nexus/content/groups/public" | |
} | |
jcenter() | |
} | |
dependencies { | |
classpath 'org.akhikhl.gretty:gretty:+' | |
} | |
} | |
apply plugin: 'war' | |
apply plugin: 'org.akhikhl.gretty' | |
configurations { | |
commonWebResources | |
} | |
gretty { | |
httpPort = 8080 | |
} | |
configurations { | |
war {} | |
} | |
artifacts { | |
war tasks.war | |
} | |
dependencies { | |
compile project(':platform-core') | |
commonWebResources(project(path: ':platform-web', configuration: 'war')) | |
} | |
war { | |
with copySpec { | |
from(zipTree(configurations.commonWebResources.singleFile)) { | |
exclude 'WEB-INF/web.xml' | |
exclude 'WEB-INF/classes/conf/*' | |
} | |
} | |
// from(zipTree(configurations.commonWebResources.singleFile)) { | |
// exclude '*web.xml' | |
// } | |
// into("/base") | |
dependencies { | |
// compile project(':platform-web') | |
providedRuntime project(path: ':platform-web', configuration: 'war') | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment