Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- project
- subproject1
- subproject2
- ....
- apply plugin: 'eclipse'
- apply plugin: 'java'
- allprojects {
- group = 'com.app.pmc'
- }
- subprojects {
- apply plugin: 'java'
- apply plugin: 'eclipse'
- repositories {
- mavenCentral()
- }
- dependencies {
- testCompile 'junit:junit:4.11'
- }
- }
- buildscript {
- repositories {
- mavenCentral()
- jcenter()
- }
- dependencies {
- classpath 'net.saliman:gradle-liquibase-plugin:1.0.0'
- classpath 'net.saliman:groovy-liquibase-dsl:1.0.0'
- classpath 'org.postgresql:postgresql:9.3-1102-jdbc41'
- classpath 'com.bmuschko:gradle-tomcat-plugin:2.0'
- }
- }
- apply plugin: 'war'
- apply plugin: 'com.bmuschko.tomcat'
- dependencies {
- compile project(':subproject-service')
- compile 'org.springframework:spring-core:4.1.1.RELEASE'
- compile 'org.springframework:spring-context:4.1.1.RELEASE'
- compile 'org.springframework:spring-webmvc:4.1.1.RELEASE'
- def tomcatVersion = '7.0.11'
- tomcat "org.apache.tomcat.embed:tomcat-embed-core:${tomcatVersion}"
- tomcat "org.apache.tomcat.embed:tomcat-embed-loggin-juli:${tomcatVersion}"
- tomcat("org.apache.tomcat.embed:tomcat-embed-jasper:${tomcatVersion}") {
- exclude group: 'org.eclipse.jdt.core.compiler', module: 'ecj'
- }
- tomcat {
- httpPort = 8080
- httpsPort = 8081
- }
- }
- FAILURE: Build failed with an exception.
- * Where:
- Build file 'D:projectsubproject-webbuild.gradle' line: 2
- * What went wrong:
- A problem occurred evaluating project ':subproject-web'.
- > Could not create task of type 'TomcatRun'.
- * Try:
- Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
- BUILD FAILED
- tomcat "org.apache.tomcat.embed:tomcat-embed-logging-juli:${tomcatVersion}"
- buildscript {
- repositories {
- mavenCentral()
- jcenter()
- }
- dependencies {
- classpath 'com.bmuschko:gradle-tomcat-plugin:2.0'
- }
- }
- apply plugin: 'war'
- apply plugin: 'com.bmuschko.tomcat'
- repositories {
- mavenCentral()
- jcenter()
- }
- dependencies {
- compile 'org.springframework:spring-core:4.1.1.RELEASE'
- compile 'org.springframework:spring-context:4.1.1.RELEASE'
- compile 'org.springframework:spring-webmvc:4.1.1.RELEASE'
- def tomcatVersion = '7.0.11'
- tomcat "org.apache.tomcat.embed:tomcat-embed-core:${tomcatVersion}"
- tomcat "org.apache.tomcat.embed:tomcat-embed-logging-juli:${tomcatVersion}"
- tomcat("org.apache.tomcat.embed:tomcat-embed-jasper:${tomcatVersion}") {
- exclude group: 'org.eclipse.jdt.core.compiler', module: 'ecj'
- }
- }
- tomcat {
- httpPort = 8080
- httpsPort = 8081
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement