1 Star 1 Fork 1

smart-doc-team/smart-doc-gradle-plugin-demo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.gradle 2.08 KB
一键复制 编辑 原始数据 按行查看 历史
上官胡闹 提交于 2023-07-21 22:56 . update: upgrade smart-doc
buildscript {
ext {
smartDocVersion = '2.7.3'
}
repositories {
mavenCentral()
maven {
url 'https://maven.aliyun.com/repository/public'
}
maven {
url 'https://maven.aliyun.com/repository/gradle-plugin'
}
maven {
url "https://plugins.gradle.org/m2/"
}
}
}
plugins {
id 'org.springframework.boot' version '3.1.0'
id 'io.spring.dependency-management' version '1.1.0'
id 'java'
id "com.github.shalousun.smart-doc" version "2.7.0"
}
repositories {
maven {
url 'https://maven.aliyun.com/repository/public'
}
maven {
url 'https://maven.aliyun.com/repository/gradle-plugin'
}
maven {
url "https://plugins.gradle.org/m2/"
}
mavenCentral()
}
subprojects {
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'jacoco'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'com.github.shalousun.smart-doc'
group = 'com.example'
sourceCompatibility = 17
targetCompatibility = 17
// java编译的时候缺省状态下会因为中文字符而失败
[compileJava, compileTestJava, javadoc]*.options*.encoding = 'UTF-8'
bootJar {
enabled = false // 默认不需要打可执行jar包
}
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
maven {
url 'https://maven.aliyun.com/repository/public'
}
mavenCentral()
}
smartdoc {
//
configFile = file("src/main/resources/smart-doc.json")
}
dependencies {
implementation("com.github.shalousun:smart-doc-gradle-plugin:${smartDocVersion}")
implementation group: 'com.github.shalousun', name: 'common-util', version: '2.1.9'
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
testImplementation('org.springframework.boot:spring-boot-starter-test')
compileOnly 'org.projectlombok:lombok'
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/smart-doc-team/smart-doc-gradle-plugin-demo.git
[email protected]:smart-doc-team/smart-doc-gradle-plugin-demo.git
smart-doc-team
smart-doc-gradle-plugin-demo
smart-doc-gradle-plugin-demo
master

搜索帮助