I’m developping gradle plugin and my build.gradle is like
apply plugin: 'eclipse'
apply plugin: 'maven-publish'
apply plugin: 'java-gradle-plugin'
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
}
when I run gradlew eclipse build publish… I correctly get all the gradleApi dependencies in my eclipse classpath, so they are correctly added in the compile configuration BUT when how can I add them in the generated maven POM ? Basically I’m using some guava classes in my plugin, and I’d like to add them in the generated jar.