Skip to content

Instantly share code, notes, and snippets.

@aruis
Created January 12, 2018 01:45
Show Gist options
  • Save aruis/02b051ed2e9ac9ce295cbe70d95b4609 to your computer and use it in GitHub Desktop.
Save aruis/02b051ed2e9ac9ce295cbe70d95b4609 to your computer and use it in GitHub Desktop.
war dependencies
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