搜索Gradle插件

org.asciidoctor.jvm.gems

拥有者: Andres Almiray

为将GEMs添加到AsciidoctorJ转换提供适当的任务和配置(如需要Gradle版本的AsciidoctorJ插件,请使用'org.asciidoctor.convert'的1.5.x版本而不是此插件)

https://github.com/asciidoctor/asciidoctor-gradle-plugin

源码: https://github.com/asciidoctor/asciidoctor-gradle-plugin.git

使用 插件DSL

plugins {
  id("org.asciidoctor.jvm.gems") version "4.0.3"
}

使用 旧版插件应用

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org.cn/m2/")
    }
  }
  dependencies {
    classpath("org.asciidoctor:asciidoctor-gradle-jvm-gems:4.0.3")
  }
}

apply(plugin = "org.asciidoctor.jvm.gems")

使用 插件DSL

plugins {
  id "org.asciidoctor.jvm.gems" version "4.0.3"
}

使用 旧版插件应用

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org.cn/m2/"
    }
  }
  dependencies {
    classpath "org.asciidoctor:asciidoctor-gradle-jvm-gems:4.0.3"
  }
}

apply plugin: "org.asciidoctor.jvm.gems"

了解如何将插件应用到子项目中