For AI agents: the documentation index is at
https://docs.gradle.org/llms.txt
. Request any page with the header
Accept: text/markdown
to get Markdown. User manual pages are also available as Markdown by replacing
.html
with
.md
in the URL.
gradle
Toggle table of contents
9.9.1
API
Target filter
API
Switch theme
Search in API
Skip to content
gradle
gradle
/
org.gradle.api.java.archives
/
Attributes
Attributes
API
interface
Attributes
:
Map
<
String
,
Any
>
(
source
)
Represent the attributes of a manifest section.
Since
0.9
Members
Functions
clear
Link copied to clipboard
API
abstract
fun
clear
(
)
compute
Link copied to clipboard
API
open
fun
compute
(
key
:
K
,
remappingFunction
:
BiFunction
<
in
K
,
in
V
,
out
V
>
)
:
V
compute
If
Absent
Link copied to clipboard
API
open
fun
computeIfAbsent
(
key
:
K
,
mappingFunction
:
(
in
K
)
->
out
V
)
:
V
compute
If
Present
Link copied to clipboard
API
open
fun
computeIfPresent
(
key
:
K
,
remappingFunction
:
BiFunction
<
in
K
,
in
V
,
out
V
>
)
:
V
contains
Key
Link copied to clipboard
API
abstract
fun
containsKey
(
p
:
Any
)
:
Boolean
contains
Value
Link copied to clipboard
API
abstract
fun
containsValue
(
p
:
Any
)
:
Boolean
copy
Of
Link copied to clipboard
API
open
fun
<
K
,
V
>
copyOf
(
map
:
Map
<
out
K
,
out
V
>
)
:
Map
<
K
,
V
>
entry
Link copied to clipboard
API
open
fun
<
K
,
V
>
entry
(
k
:
K
,
v
:
V
)
:
Map.Entry
<
K
,
V
>
entry
Set
Link copied to clipboard
API
abstract
fun
entrySet
(
)
:
Set
<
Map.Entry
<
K
,
V
>
>
equals
Link copied to clipboard
API
abstract
fun
equals
(
p
:
Any
)
:
Boolean
for
Each
Link copied to clipboard
API
open
fun
forEach
(
action
:
BiConsumer
<
in
K
,
in
V
>
)
get
Link copied to clipboard
API
abstract
fun
get
(
p
:
Any
)
:
V
get
Or
Default
Link copied to clipboard
API
open
fun
getOrDefault
(
key
:
Any
,
defaultValue
:
V
)
:
V
hash
Code
Link copied to clipboard
API
abstract
fun
hashCode
(
)
:
Int
is
Empty
Link copied to clipboard
API
abstract
fun
isEmpty
(
)
:
Boolean
key
Set
Link copied to clipboard
API
abstract
fun
keySet
(
)
:
Set
<
K
>
merge
Link copied to clipboard
API
open
fun
merge
(
key
:
K
,
value
:
V
,
remappingFunction
:
BiFunction
<
in
V
,
in
V
,
out
V
>
)
:
V
of
Link copied to clipboard
API
open
fun
<
K
,
V
>
of
(
)
:
Map
<
K
,
V
>
of
Entries
Link copied to clipboard
API
open
fun
<
K
,
V
>
ofEntries
(
entries
:
Array
<
Map.Entry
<
out
K
,
out
V
>
>
)
:
Map
<
K
,
V
>
put
Link copied to clipboard
API
abstract
fun
put
(
p
:
K
,
p1
:
V
)
:
V
put
All
Link copied to clipboard
API
abstract
fun
putAll
(
p
:
Map
<
out
K
,
out
V
>
)
put
If
Absent
Link copied to clipboard
API
open
fun
putIfAbsent
(
key
:
K
,
value
:
V
)
:
V
remove
Link copied to clipboard
API
abstract
fun
remove
(
p
:
Any
)
:
V
open
fun
remove
(
key
:
Any
,
value
:
Any
)
:
Boolean
replace
Link copied to clipboard
API
open
fun
replace
(
key
:
K
,
value
:
V
)
:
V
open
fun
replace
(
key
:
K
,
oldValue
:
V
,
newValue
:
V
)
:
Boolean
replace
All
Link copied to clipboard
API
open
fun
replaceAll
(
function
:
BiFunction
<
in
K
,
in
V
,
out
V
>
)
size
Link copied to clipboard
API
abstract
fun
size
(
)
:
Int
values
Link copied to clipboard
API
abstract
fun
values
(
)
:
Collection
<
V
>