-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
89 lines (75 loc) · 2.87 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/*
* Copyright 2024 the original author or authors.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see [https://www.gnu.org/licenses/]
*/
plugins {
id "java-gradle-plugin"
// id "com.gradle.plugin-publish" version "1.2.0"
}
description = "RESTful API document generation."
configurations {
compileOnly {
extendsFrom annotationProcessor
}
testAnnotationProcessor {
extendsFrom annotationProcessor
}
}
dependencies {
api(platform("cn.taketoday:infra-dependencies:$infraVersion"))
implementation "cn.taketoday:today-core"
implementation "cn.taketoday:today-web"
implementation 'com.thoughtworks.qdox:qdox:2.1.0'
implementation 'com.google.code.gson:gson:2.10.1'
implementation 'org.slf4j:slf4j-api:2.0.7'
implementation "io.swagger.core.v3:swagger-models:2.2.22"
implementation "com.fasterxml.jackson.core:jackson-databind"
testImplementation("org.junit.jupiter:junit-jupiter-api")
testImplementation("org.junit.jupiter:junit-jupiter-params")
testImplementation("org.junit.platform:junit-platform-suite-api")
testImplementation("org.mockito:mockito-core")
testImplementation("org.mockito:mockito-junit-jupiter")
testImplementation("org.assertj:assertj-core")
testImplementation 'org.projectlombok:lombok'
// testAnnotationProcessor("org.projectlombok:lombok")
// Pull in the latest JUnit 5 Launcher API to ensure proper support in IDEs.
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
testRuntimeOnly("org.junit.platform:junit-platform-suite-engine")
// JSR-305 only used for non-required meta-annotations
compileOnly("com.google.code.findbugs:jsr305")
testCompileOnly("com.google.code.findbugs:jsr305")
}
tasks.named('test') {
useJUnitPlatform()
}
repositories {
mavenLocal()
maven { url "https://maven.aliyun.com/repository/public" }
mavenCentral()
}
gradlePlugin {
website = "https://github.com/today-tech/today-web-docs"
vcsUrl = "https://github.com/today-tech/today-web-docs"
plugins {
webDocsPlugin {
id = 'cn.taketoday.web-docs'
tags.set(['web', 'application', 'docs'])
displayName = "TODAY Infrastructure Web Docs Gradle Plugin"
description = "TODAY Infrastructure Web Docs Gradle Plugin"
implementationClass = 'cn.taketoday.web.doc.gradle.WebDocPlugin'
}
}
}