Skip to content
David Liu edited this page Jun 12, 2024 · 5 revisions

build.gradle

plugins{ id 'java' }

  • The Java plugin adds Java compilation, testing and bundling capabilities to a project.
  • It serves as the basis for many of the other JVM language Gradle plugins.

plugins{ id 'java-library' }

  • required if you want use api dependency type

plugins{ id 'maven-publish' }

  • required if you want to publish build artifacts to any Apache Maven repository.
  • The Maven Publish Plugin adds task group publishing
Clone this wiki locally