How to add gradle project dependency into another gradle project

Viewed 19

I have one Monorepo of Gradle Project and have the below structure with 1 gradle application archive-api and 1 gradle library transcript-xml-parser.

project structure

I want to add transcript-xml-parser library dependency into archive-api application. Can anyone suggest how to do that?

Below is my build.gradle file for transcript-xml-parser gradle library:

 plugins {
    id("java")
}

dependencies {
    implementation("javax.xml.bind:jaxb-api:2.3.1")
    implementation("org.codehaus.woodstox:stax2-api:4.2.1")
}

repositories {
    gradlePluginPortal()
    maven {
        name "<artifactory-name>"
        url "<jfrog-repository-url>"
        credentials {
            username = username
            password = password
        }
    }
}
0 Answers
Related