-
Notifications
You must be signed in to change notification settings - Fork 14
/
typings.d.ts
83 lines (77 loc) · 3.15 KB
/
typings.d.ts
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
/*
* Copyright (C) 2015-2016 Benjamin P. Jung.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* Options to be used when creating new Maven wrapper instances.
*/
export type MavenOptions = {
/** Working directory (Default is: <code>process.cwd()</code>) */
cwd?: string,
/** Maven executable relative to <code>cwd</code>. Default is './mvnw' if the mvnw executable is in your project root.
* Otherwise, default is 'mvn' or 'mvn.bat' when using Windows. */
cmd?: string,
/** Filename of the POM. (Results in <code>-f ${file}</code>) */
file?: string,
/** Filename of settings.xml to be used (Results in <code>-s ${setings}</code>) */
settings?: string,
/** List of profiles to be enabled or disabled. */
profiles?: string[],
/** Quiet output - only show errors if set to <code>true</code>. */
quiet?: boolean,
/** Produce execution debug output if set to <code>true</code>. */
debug?: boolean,
/** Forces a check for missing releases and updated snapshots on remote repositories. Defaults to <code>false</code>. */
updateSnapshots?: boolean,
/** Produce execution offline if set to <code>true</code>. */
offline?: boolean,
/** Prevents Maven from building submodules if set to <code>true</code>. */
nonRecursive?: boolean,
/** Thread count, for instance 2.0C where C is core multiplied */
threads?: number
/** Suppress the transfer progress when downloading/uploading in interactive mode if set to <code>true</code> */
noTransferProgress?: boolean,
/** Builds the specific list of projects and any that depend on them, if set to <code>true</code>. */
alsoMake?: boolean
/** Run in non-interactive (batch) mode (disables output color) if set to <code>true</code> */
batchMode?: boolean
/** Log file where all build output will go (disables output color) (Results in <code>-l ${file}</code>) */
logFile?: string
};
/**
* Maven wrapper.
*/
interface Maven {
/**
* Creates a new Maven wrapper instance.
* @param options
* Configuration options.
* @returns
* A new Maven wrapper instance.
*/
create(opts?: MavenOptions): Maven;
/**
* Executes one or more Maven commands.
* @param commands
* A list of commands to be executed or a single command.
* @param defines
* List of defines that will be passed to the Java VM via
* <code>-Dkey=value</code>
* @param projects
* List of projects to be build.
*/
execute(commands: string | string[], defines?: { [name: string]: string }, projects?: string[]): Promise<void>;
}
declare const maven: Maven
export default maven;