I want to publish a maven artifact from a project which includes all the classes from the submodules (like a fatJar) instead of having them as dependencies in the pom file in the published artifact.
Assuming I have a gradle project setup…
I have a very simple Gradle project which generates a jar file, and I am applying the maven-publish plugin and calling the publish task to publish artifacts to Artifactory:
build.gradle:
apply plugin: 'maven-publish'
command:
./gradlew…
I am trying to get the Gradle Maven Publish Plugin to publish a snapshot version of my Java library to my local Maven repo such that:
The version of the jar is 1.0.0.SNAPSHOT-, where is the current system time in millis…
After adding Square's Wire library for Protobuf support in an Android project, I'm getting the following D8 exception during compilation:
D8: Program type already present:…
I have two projects as part of my multi- project build, ProjectA and ProjectB.
ProjectA has a compile dependency on ProjectB. I also have automatic build number increments, whereby each project contains a versions.json file containing the latest…
I have a gradle project in IntelliJ IDE in java.
my dependencies is like this:
apply plugin: 'maven-publish'
dependencies {
compile fileTree(dir: 'libs', include: '*.jar')
testCompile group: 'junit', name: 'junit', version: '4.12'
compile…
I have project which using Gradle to publish our SNAPSHOT artifact's to remote Maven Repository.
When I publish to Maven, time stamp and build number is getting appended to Jar name. And I am trying to download the latest version ie…
I have a Java project that build and publish many jars (a.jar, b.jar, ...) using :
publishing {
publications {
a (MavenPublication) {
artifactId 'a'
artifact aJar
}
b (MavenPublication) {
…
I use maven-publish plugin for deploying android library(.aar).
My library has another dependencies, which are also .aar
How can I import all dependencies from build.gradle, dependencies section:
dependencies {
compile fileTree(dir: 'libs',…
I have a static xml file that I want to publish to a Maven repository (my local Maven repo for now) from Gradle using the maven-publish plugin.
build.gradle looks like this:
apply plugin: 'maven-publish'
group 'com.example.gradletest'
version…
I am struggling with uploading two files to Nexus repository using maven-publish plugin. The problem is that I want to set my own name for one of the files. The task source code is:
publications {
nexus(MavenPublication) {
artifact…
I've recently migrated a project from Maven to Gradle (IE: replaced the pom.xml file with a build.gradle file). Since my company still has several downstream Maven projects that depend on it we must continue to publish a pom file along with class,…
When publishing with the use of maven-publish (incubating, I know), compile dependencies are added to the generate POM (in the runtime scope), but testCompile dependencies are ignored.
How to get the testCompile dependencies into the generated POM…
I have a Kotlin JVM library, which I distribute using as a .jar artifact via maven repository. I would like to provide some Kdocs for it, so that it can be used via IntelliJ Idea's quick docs tool (ctrl+q). I use dokka gradle plugin to generate html…