FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
spring-framework/framework-api/framework-api.gradle at main · codingkiddo/spring-framework · GitHub
codingkiddo
/
spring-framework
Public
forked from
spring-projects/spring-framework
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
spring-framework
/
framework-api
/
framework-api.gradle
Copy path
More file actions
More file actions
Latest commit
History
History
History
127 lines (114 loc) · 3.44 KB
Breadcrumbs
spring-framework
/
framework-api
/
framework-api.gradle
Copy path
File metadata and controls
127 lines (114 loc) · 3.44 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
plugins
{
id
'
java-platform
'
id
'
io.freefair.aggregate-javadoc
'
version
'
8.13.1
'
id
'
org.jetbrains.dokka
'
}
description
=
"
Spring Framework API Docs
"
apply
from
:
"
${
rootDir
}
/gradle/publications.gradle
"
repositories
{
maven {
url
=
"
https://repo.spring.io/release
"
}
}
dependencies
{
moduleProjects
.
each {
moduleProject
->
javadoc moduleProject
}
}
def
springAspectsOutput
=
project(
"
:spring-aspects
"
)
.
sourceSets
.
main
.
output
javadoc
{
javadocTool
.
set(javaToolchains
.
javadocToolFor({
languageVersion
=
JavaLanguageVersion
.
of(
25
)
}))
title
=
"
${
rootProject.description
}
${
version
}
API
"
failOnError
=
true
options {
encoding
=
"
UTF-8
"
memberLevel
=
JavadocMemberLevel
.
PROTECTED
author
=
true
header
=
rootProject
.
description
use
=
true
overview
=
project
.
relativePath(
"
$r
ootProject
.
rootDir
/framework-docs/src/docs/api/overview.html
"
)
destinationDir
=
project
.
java
.
docsDir
.
dir(
"
javadoc-api
"
)
.
get()
.
asFile
splitIndex
=
true
links(rootProject
.
ext
.
javadocLinks)
//
Check for 'syntax' and 'reference' during linting.
addBooleanOption(
'
Xdoclint:syntax,reference
'
,
true
)
//
Change modularity mismatch from warn to info.
//
See https://github.com/spring-projects/spring-framework/issues/27497
addStringOption(
"
-link-modularity-mismatch
"
,
"
info
"
)
//
Fail build on Javadoc warnings.
addBooleanOption(
'
Werror
'
,
true
)
}
maxMemory
=
"
1024m
"
doFirst {
classpath
+
=
files(
//
ensure the javadoc process can resolve types compiled from .aj sources
springAspectsOutput
)
classpath
+
=
files(moduleProjects
.
collect { it
.
sourceSets
.
main
.
compileClasspath })
}
}
dokka
{
moduleName
=
"
spring-framework
"
dokkaPublications
.
html {
outputDirectory
=
project
.
java
.
docsDir
.
dir(
"
kdoc-api
"
)
includes
.
from(
"
$r
ootProject
.
rootDir
/framework-docs/src/docs/api/dokka-overview.md
"
)
}
}
/**
* Zip all Java docs (javadoc & kdoc) into a single archive
*/
tasks
.
register(
'
docsZip
'
,
Zip
) {
dependsOn
=
[
'
javadoc
'
,
'
dokkaGenerate
'
]
group
=
"
distribution
"
description
=
"
Builds -
${
archiveClassifier
}
archive containing api and reference
"
+
"
for deployment at https://docs.spring.io/spring-framework/docs/.
"
archiveBaseName
.
set(
"
spring-framework
"
)
archiveClassifier
.
set(
"
docs
"
)
from(
"
src/dist
"
) {
include
"
changelog.txt
"
}
from(javadoc) {
into
"
javadoc-api
"
}
from(project
.
java
.
docsDir
.
dir(
"
kdoc-api
"
)) {
into
"
kdoc-api
"
}
}
/**
* Zip all Spring Framework schemas into a single archive
*/
tasks
.
register(
'
schemaZip
'
,
Zip
) {
group
=
"
distribution
"
archiveBaseName
.
set(
"
spring-framework
"
)
archiveClassifier
.
set(
"
schema
"
)
description
=
"
Builds -
${
archiveClassifier
}
archive containing all
"
+
"
XSDs for deployment at https://springframework.org/schema.
"
duplicatesStrategy
=
DuplicatesStrategy
.
EXCLUDE
moduleProjects
.
each {
module
->
def
Properties
schemas
=
new
Properties
();
module
.
sourceSets
.
main
.
resources
.
find {
(it
.
path
.
endsWith(
"
META-INF/spring.schemas
"
)
||
it
.
path
.
endsWith(
"
META-INF
\\
spring.schemas
"
))
}
?.
withInputStream { schemas
.
load(it) }
for
(
def
key
: schemas
.
keySet()) {
def
shortName
=
key
.
replaceAll(
/
http.*schema.(.*).spring-.*
/
,
'
$1
'
)
assert
shortName
!=
key
File
xsdFile
=
module
.
sourceSets
.
main
.
resources
.
find {
(it
.
path
.
endsWith(schemas
.
get(key))
||
it
.
path
.
endsWith(schemas
.
get(key)
.
replaceAll(
'
\\
/
'
,
'
\\\\
'
)))
}
assert
xsdFile
!=
null
into(shortName) {
from xsdFile
.
path
}
}
}
}
publishing
{
publications {
mavenJava(
MavenPublication
) {
artifact docsZip
artifact schemaZip
}
}
}
Back
|
FazBrowse Home
|
New Git URL