I am working on developing a plugin that
-
Adds a sourceset,
-
Compiles this sourceset,
-
Adds the compiled classes to a jar 4. Specifies the jar file as the artifact of a custom configuration
In a project I am using to try this plugin out my main configuration depends on the artifact in my custom configuration, like this :
compile project(path: ':',
configuration: 'service')
But now when I run gradle javadoc, I get the following error :
Circular dependency between tasks. Cycle includes [task ‘:javadoc’, task ‘:javadoc’]
Does anyone have any idea why this happens ?
The plugin source can be viewed at : https://github.com/jelmerk/liferay-gradle-plugin/blob/master/src/main/java/nl/orange11/liferay/ServiceBuilderPlugin.java
My full test script looks like this :
buildscript {
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
classpath group: 'nl.orange11.liferay', name: 'liferay-plugin', version: '0.0.1-SNAPSHOT'
}
}
buildscript {
configurations.classpath.resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
apply plugin: 'liferay-portlet'
apply plugin: 'liferay-servicebuilder'
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
providedCompile 'javax.servlet:servlet-api:2.5'
providedCompile 'javax.servlet.jsp:jsp-api:2.1'
providedCompile 'com.liferay.portal:portal-service:6.1.0'
providedCompile 'com.liferay.portal:util-java:6.1.0'
providedCompile 'com.liferay.portal:util-bridges:6.1.0'
providedCompile 'com.liferay.portal:util-taglib:6.1.0'
compile project(path: ':',
configuration: 'service')
serviceCompile 'com.liferay.portal:portal-service:6.1.0'
}
liferay {
appServerDirName = '/Users/jkuperus/Development/Projects/liferay_6_1_ga1/build/portal/apache-tomcat/'
}
servicebuilder {
jalopyInputFileName = file('jalopy.xml')
}