java - running gradle "war" doesn't include dependent intellij project -
i have intellij project 2 modules:
web-services
(my api), library-services
(business logic).
build.gradle of web-serivces:
apply plugin: 'java' apply plugin: 'war' apply plugin: 'maven-publish' apply from: ext.gradledir + '/common.gradle' apply from: ext.gradledir + '/integration_test.gradle' sourcecompatibility = 1.8 targetcompatibility = 1.8 project.version = '1.0.' + getbuildnumber() dependencies { compile project(':library-services') compile('com.waze.automation:common:1.0.80') compile('com.sun.jersey:jersey-bundle:1.19') compile('com.sun.jersey:jersey-json:1.19') compile group: 'org.codehaus.jackson', name:'jackson-jaxrs', version: '1.1.1' compile('com.google.guava:guava:18.0') testcompile group: 'junit', name: 'junit', version: '4.11' testcompile('org.hamcrest:hamcrest-all:1.3') testcompile('org.mockito:mockito-all:1.9.5') } war { 'src/main' // include source files in war }
i run gradle command:
~/workspaceqa/mobileautomationwebservice/web-services ⮀ ❯ ./gradlew war
but in created war don't see classes of library-services
and service throws classnofound
exception.
here part of log. how can fix this?
12:10:28.081 [info] [org.gradle.buildlogger] tasks executed: [task ':library-services:compilejava', task ':library-services:processresources', task ':library-services:verifydependencies', task ':library-services:classes', task ':library-services:setprojectversion', task ':library-services:jar', task ':web-services:compilejava', task ':web-services:processresources', task ':web-services:verifydependencies', task ':web-services:classes', task ':web-services:war']
after removed line problem solved:
gradle.properties file:
#org.gradle.parallel=true
Comments
Post a Comment