Я пытаюсь создать многофункциональный проект Gradle аналогичного эту структуруНедопустимая публикация/экспорт зависимости/уайт-контракта. Записи проекта не поддерживаются
ouat-services
- ouat-contract
- ouat-servicesImpl (web project)
Я последовал пример затмения и определить мою OUAT-услугу settings.gradle в
include "ouat-contract", "ouat-servicesImpl"
В моем Ouat -servicesImpl строить-Gradle определяю
dependencies {
compile project(':ouat-contract')
}
Моя проблема начинается, когда я пытаюсь применить войны плагин в OUAT-servicesImpl, I г eceive следующее сообщение в затмение зрения проблема:
Invalid classpath publish/ export dependency /ouat-contract. Project entries not supported
Мои OUAT-услуги build.gradle
configure(subprojects) {
apply plugin: 'com.github.ben-manes.versions'
apply plugin: 'eclipse'
apply plugin: 'java'
version = '1.0'
sourceCompatibility = 1.8
targetCompatibility = 1.8
def defaultEncoding = 'UTF-8'
[compileJava, compileTestJava]*.options*.encoding = defaultEncoding
repositories {
jcenter()
mavenLocal()
mavenCentral()
}
jar {
manifest.attributes provider: 'Company'
}
}
configure(project(':ouat-servicesImpl')) {
apply plugin: 'checkstyle'
apply plugin: 'eclipse-wtp'
apply plugin: 'findbugs'
apply plugin: 'jacoco'
//apply plugin: 'jetty'
apply plugin: 'pmd'
apply plugin: 'war'
}
buildscript {
repositories {
jcenter()
mavenCentral()
mavenLocal()
}
dependencies {
classpath 'com.github.ben-manes:gradle-versions-plugin:0.10.1'
}
}
Мой OUAT-servicesImpl построить Gradle было изменено на:
dependencies {
compile project(':ouat-contract')
cxfArtifacts.each { artifact ->
compile "org.apache.cxf:$artifact:$cxfVersion"
}
springArtifacts.each { artifact ->
compile "org.springframework:$artifact:$springVersion"
}
testCompile "org.testng:testng:$testNGVersion"
testCompile "org.hamcrest:hamcrest-all:$hamcrestVersion"
testCompile "org.springframework:spring-test:$springVersion"
//WAR PLUGIN
providedCompile "javax.servlet:javax.servlet-api:$servletAPIVersion"
runtime "javax.servlet:jstl:$jstlVersion"
}
Является ли это eclipse plug-in или я что-то делаю неправильно?
Так что вы говорите, что на самом деле это не будет работать для проектов eclipse. Решение заключалось бы в том, чтобы вручную добавлять проекты как зависимости каждый раз, когда файлы eclipse обновлялись. Правильно? – ATrubka