@@ -7,37 +7,125 @@ import scala.collection.mutable.ListBuffer
7
7
8
8
object Keys {
9
9
10
- val userName = new Key .StringEntry (Seq (" publish" , " user" ), " name" )
11
- val userEmail = new Key .StringEntry (Seq (" publish" , " user" ), " email" )
12
- val userUrl = new Key .StringEntry (Seq (" publish" , " user" ), " url" )
10
+ val userName = new Key .StringEntry (
11
+ prefix = Seq (" publish" , " user" ),
12
+ name = " name" ,
13
+ description = " The 'name' user detail, used for publishing." ,
14
+ hidden = true
15
+ )
16
+ val userEmail = new Key .StringEntry (
17
+ prefix = Seq (" publish" , " user" ),
18
+ name = " email" ,
19
+ description = " The 'email' user detail, used for publishing." ,
20
+ hidden = true
21
+ )
22
+ val userUrl = new Key .StringEntry (
23
+ prefix = Seq (" publish" , " user" ),
24
+ name = " url" ,
25
+ description = " The 'url' user detail, used for publishing." ,
26
+ hidden = true
27
+ )
13
28
14
- val ghToken = new Key .PasswordEntry (Seq (" github" ), " token" )
29
+ val ghToken = new Key .PasswordEntry (
30
+ prefix = Seq (" github" ),
31
+ name = " token" ,
32
+ description = " GitHub token." ,
33
+ hidden = true
34
+ )
15
35
16
- val pgpSecretKey = new Key .PasswordEntry (Seq (" pgp" ), " secret-key" )
17
- val pgpSecretKeyPassword = new Key .PasswordEntry (Seq (" pgp" ), " secret-key-password" )
18
- val pgpPublicKey = new Key .PasswordEntry (Seq (" pgp" ), " public-key" )
36
+ val pgpSecretKey = new Key .PasswordEntry (
37
+ prefix = Seq (" pgp" ),
38
+ name = " secret-key" ,
39
+ description = " The PGP secret key, used for signing." ,
40
+ hidden = true
41
+ )
42
+ val pgpSecretKeyPassword = new Key .PasswordEntry (
43
+ prefix = Seq (" pgp" ),
44
+ name = " secret-key-password" ,
45
+ description = " The PGP secret key password, used for signing." ,
46
+ hidden = true
47
+ )
48
+ val pgpPublicKey = new Key .PasswordEntry (
49
+ prefix = Seq (" pgp" ),
50
+ name = " public-key" ,
51
+ description = " The PGP public key, used for signing." ,
52
+ hidden = true
53
+ )
19
54
20
- val actions = new Key .BooleanEntry (Seq .empty, " actions" )
21
- val interactive = new Key .BooleanEntry (Seq .empty, " interactive" )
22
- val power = new Key .BooleanEntry (Seq .empty, " power" )
55
+ val actions = new Key .BooleanEntry (
56
+ prefix = Seq .empty,
57
+ name = " actions" ,
58
+ description = " Globally enables actionable diagnostics. Enabled by default."
59
+ )
60
+ val interactive = new Key .BooleanEntry (
61
+ prefix = Seq .empty,
62
+ name = " interactive" ,
63
+ description = " Globally enables interactive mode (the '--interactive' flag)."
64
+ )
65
+ val power = new Key .BooleanEntry (
66
+ prefix = Seq .empty,
67
+ name = " power" ,
68
+ description = " Globally enables power mode (the '--power' launcher flag)."
69
+ )
23
70
24
71
val suppressDirectivesInMultipleFilesWarning =
25
- new Key .BooleanEntry (Seq (" suppress-warning" ), " directives-in-multiple-files" )
72
+ new Key .BooleanEntry (
73
+ prefix = Seq (" suppress-warning" ),
74
+ name = " directives-in-multiple-files" ,
75
+ description =
76
+ " Globally suppresses warnings about directives declared in multiple source files."
77
+ )
26
78
val suppressOutdatedDependenciessWarning =
27
- new Key .BooleanEntry (Seq (" suppress-warning" ), " outdated-dependencies-files" )
79
+ new Key .BooleanEntry (
80
+ prefix = Seq (" suppress-warning" ),
81
+ name = " outdated-dependencies-files" ,
82
+ description = " Globally suppresses warnings about outdated dependencies."
83
+ )
28
84
29
- val proxyAddress = new Key .StringEntry (Seq (" httpProxy" ), " address" )
30
- val proxyUser = new Key .PasswordEntry (Seq (" httpProxy" ), " user" )
31
- val proxyPassword = new Key .PasswordEntry (Seq (" httpProxy" ), " password" )
85
+ val proxyAddress = new Key .StringEntry (
86
+ prefix = Seq (" httpProxy" ),
87
+ name = " address" ,
88
+ description = " HTTP proxy address." ,
89
+ hidden = true
90
+ )
91
+ val proxyUser = new Key .PasswordEntry (
92
+ prefix = Seq (" httpProxy" ),
93
+ name = " user" ,
94
+ description = " HTTP proxy user (used for authentication)." ,
95
+ hidden = true
96
+ )
97
+ val proxyPassword = new Key .PasswordEntry (
98
+ prefix = Seq (" httpProxy" ),
99
+ name = " password" ,
100
+ description = " HTTP proxy password (used for authentication)." ,
101
+ hidden = true
102
+ )
32
103
33
- val repositoryMirrors = new Key .StringListEntry (Seq (" repositories" ), " mirrors" )
34
- val defaultRepositories = new Key .StringListEntry (Seq (" repositories" ), " default" )
104
+ val repositoryMirrors = new Key .StringListEntry (
105
+ prefix = Seq (" repositories" ),
106
+ name = " mirrors" ,
107
+ description =
108
+ s " Repository mirrors, syntax: repositories.mirrors maven:*=https://repository.company.com/maven " ,
109
+ hidden = true
110
+ )
111
+ val defaultRepositories = new Key .StringListEntry (
112
+ prefix = Seq (" repositories" ),
113
+ name = " default" ,
114
+ description =
115
+ " Default repository, syntax: https://first-repo.company.com https://second-repo.company.com" ,
116
+ hidden = true
117
+ )
35
118
36
119
// Kept for binary compatibility
37
120
val repositoriesMirrors = repositoryMirrors
38
121
39
122
// setting indicating if the global interactive mode was suggested
40
- val globalInteractiveWasSuggested = new Key .BooleanEntry (Seq .empty, " interactive-was-suggested" )
123
+ val globalInteractiveWasSuggested = new Key .BooleanEntry (
124
+ prefix = Seq .empty,
125
+ name = " interactive-was-suggested" ,
126
+ description = " Setting indicating if the global interactive mode was already suggested." ,
127
+ hidden = true
128
+ )
41
129
42
130
def all : Seq [Key [_]] = Seq [Key [_]](
43
131
actions,
@@ -46,6 +134,7 @@ object Keys {
46
134
globalInteractiveWasSuggested,
47
135
interactive,
48
136
suppressDirectivesInMultipleFilesWarning,
137
+ suppressOutdatedDependenciessWarning,
49
138
pgpPublicKey,
50
139
pgpSecretKey,
51
140
pgpSecretKeyPassword,
@@ -120,6 +209,8 @@ object Keys {
120
209
121
210
val repositoryCredentials : Key [List [RepositoryCredentials ]] =
122
211
new Key [List [RepositoryCredentials ]] {
212
+ override val description : String = " Repository credentials, syntax: value:user value:password"
213
+ override val hidden : Boolean = true
123
214
124
215
private def asJson (credentials : RepositoryCredentials ): RepositoryCredentialsAsJson =
125
216
RepositoryCredentialsAsJson (
@@ -242,6 +333,9 @@ object Keys {
242
333
}
243
334
244
335
val publishCredentials : Key [List [PublishCredentials ]] = new Key [List [PublishCredentials ]] {
336
+ override val description : String =
337
+ " Publishing credentials, syntax: s1.oss.sonatype.org value:user value:password"
338
+ override val hidden : Boolean = true
245
339
246
340
private def asJson (credentials : PublishCredentials ): PublishCredentialsAsJson =
247
341
PublishCredentialsAsJson (
0 commit comments