my English is bad
the question is : when i publish a artifact(com.one.module:test1:1.0.0) use maven-publish i write it’s dependencies in pom, like this
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>com.one.module</groupId>
<artifactId>test1</artifactId>
<version>1.0.0</version>
<packaging>aar</packaging>
<dependencies>
<dependency>
<groupId>com.android.support</groupId>
<artifactId>appcompat-v7</artifactId>
<version>26.1.0</version>
<scope>implementation</scope>
</dependency>
<dependency>
<groupId>com.two.module</groupId>
<artifactId>test2</artifactId>
<version>1.0.0</version>
<scope>compileOnly</scope>
</dependency>
</dependencies>
</project>
i use this artifact in testApp, like:
implementation ‘com.one.module:test1:1.0.0’
i want to known how to get transitive dependencies scope in custom plugin,eg:compileOnly