0

I've built a Corda library which is published to a Maven repository in GitHub: https://github.com/onix-labs/onixlabs-corda-core

When I use this as a dependency in a CorDapp, I can only see the function or property signatures. I cannot debug into the underlying source or see the accompanying documentation.

The library is using the following dependendencies:

  • Kotlin 1.2.71
  • Gradle 5.2.1

I tried to include this:

plugins {
    id 'java'
    id 'maven-publish'
}

java {
    withSourcesJar()
    withJavadocJar()
}

Apparently withSourcesJar and withJavadocJar only apply to Gradle 6.0+ so it won't work with this project.

How can I deploy the additional artefacts using Gradle 5.2.1?

Matthew Layton
  • 35,375
  • 44
  • 163
  • 278
  • possibly a duplicate of https://stackoverflow.com/questions/11474729/how-to-build-sources-jar-with-gradle/11475089 (most of those answers appear to be for gradle <6) – somethingsomething Jul 29 '21 at 10:09

0 Answers0