Does java-library plugin fully cover java plugin functionality?
NickName:Nolequen Ask DateTime:2019-07-22T19:05:40

Does java-library plugin fully cover java plugin functionality?

According to API and implementation separation doc the java-library plugin should be used to declare dependencies as api:

apply plugin: 'java-library'

Is java-library full replacement for java plugin? or there are cases when both of them should be used?

Copyright Notice:Content Author:「Nolequen」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/57144704/does-java-library-plugin-fully-cover-java-plugin-functionality

More about “Does java-library plugin fully cover java plugin functionality?” related questions

Does java-library plugin fully cover java plugin functionality?

According to API and implementation separation doc the java-library plugin should be used to declare dependencies as api: apply plugin: 'java-library' Is java-library full replacement for java pl...

Show Detail

Gradle java-library plugin compared to java plugin

In the Gradle documentation for the java-library plugin it states: The Java Library plugin expands the capabilities of the Java plugin by providing specific knowledge about Java libraries. In

Show Detail

Use Gradle Witness plugin with java-library

For a long time I was using Gradle with the java plugin, and Gradle Witness to verify Maven dependencies. e.g.: apply plugin: 'java' apply plugin: 'witness' dependencies { compile "io.netty:n...

Show Detail

android gradle: plugin id java-library not found

The following works fine for a war project: configure([project(':foo'), project(':bar')]) { apply plugin: 'java-library' .... } But for android, plugin id 'java-library&

Show Detail

java-library plugin leaking dependencies

My project has two modules data(com.android.library) and domain(java-library), data module depends on domain. build.gradle(data) implementation(project(":domain")) In build.gradle of domain ...

Show Detail

Copy all dependencies in a gradle project using java-library plugin

Is there a way to copy all (including transitive) dependencies (jars) of a gradle project that uses java-library plugin to some folder, using a gradle task? I can list all jars from the

Show Detail

api configuration of java-library plugin is not recognized

I am new to Gradle and i am using Gradle 6.1. I am writing small application to understand the concepts of multi project Application and Java-Library plugin of Gradle. My Question is : How App.ja...

Show Detail

spring-boot with the gradle java java-plugin

I use gradle with the new java-library plugin. With this plugin we can use new configurations for dependencies instead of 'compile', 'runtime', 'test' etc. see java-library plugin documentation Bu...

Show Detail

Using Jackson annotations in java-library (not application)

I am writing a java-library that will be included included as a dependency in other projects. I want some of the library's classes to de/serializable with Jackson's ObjectMapper. Out of habit, I have

Show Detail

Gradle >=4.6: using java-library & java plugins simultaneously in multi-module build

Since Gradle 4.6: https://docs.gradle.org/4.6/userguide/java_library_plugin.html#sec:java_library_separation https://docs.gradle.org/4.6/release-notes.html#compile/runtime-scope-separation-in-pom-

Show Detail