Skip to content

Commit da84956

Browse files
authored
Merge pull request #46 from thc202/normalise-license-header
Normalise license header
2 parents 1330b34 + 510741a commit da84956

File tree

78 files changed

+367
-297
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+367
-297
lines changed

build.gradle

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
plugins {
2+
id "com.diffplug.gradle.spotless" version "3.10.0" apply false
3+
}
4+
15
task wrapper(type: Wrapper) {
26
gradleVersion = '4.6'
37
}
@@ -6,6 +10,8 @@ apply from: "gradle/compile.gradle"
610

711
subprojects {
812
apply plugin: 'java'
13+
apply plugin: 'com.diffplug.gradle.spotless'
14+
915
group = 'org.zaproxy'
1016

1117
version '1.6.0-SNAPSHOT'
@@ -18,4 +24,10 @@ subprojects {
1824

1925
sourceCompatibility = JavaVersion.VERSION_1_7
2026
targetCompatibility = JavaVersion.VERSION_1_7
27+
28+
spotless {
29+
java {
30+
licenseHeaderFile "$rootDir/gradle/spotless/license.java"
31+
}
32+
}
2133
}

gradle/spotless/license.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
* Zed Attack Proxy (ZAP) and its related class files.
3+
*
4+
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
5+
*
6+
* Copyright $YEAR The ZAP Development Team
7+
*
8+
* Licensed under the Apache License, Version 2.0 (the "License");
9+
* you may not use this file except in compliance with the License.
10+
* You may obtain a copy of the License at
11+
*
12+
* http://www.apache.org/licenses/LICENSE-2.0
13+
*
14+
* Unless required by applicable law or agreed to in writing, software
15+
* distributed under the License is distributed on an "AS IS" BASIS,
16+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
* See the License for the specific language governing permissions and
18+
* limitations under the License.
19+
*/

subprojects/zap-clientapi-ant/src/main/java/org/zaproxy/clientapi/ant/AbstractActiveScanTask.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*
22
* Zed Attack Proxy (ZAP) and its related class files.
3-
*
3+
*
44
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
5-
*
5+
*
66
* Copyright 2017 The ZAP Development Team
7-
*
7+
*
88
* Licensed under the Apache License, Version 2.0 (the "License");
99
* you may not use this file except in compliance with the License.
1010
* You may obtain a copy of the License at

subprojects/zap-clientapi-ant/src/main/java/org/zaproxy/clientapi/ant/AccessUrlTask.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
*
44
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
55
*
6-
* Copyright 2011 The Zed Attack Proxy Team
6+
* Copyright 2011 The ZAP Development Team
77
*
88
* Licensed under the Apache License, Version 2.0 (the "License");
99
* you may not use this file except in compliance with the License.
1010
* You may obtain a copy of the License at
1111
*
12-
* http://www.apache.org/licenses/LICENSE-2.0
12+
* http://www.apache.org/licenses/LICENSE-2.0
1313
*
1414
* Unless required by applicable law or agreed to in writing, software
1515
* distributed under the License is distributed on an "AS IS" BASIS,

subprojects/zap-clientapi-ant/src/main/java/org/zaproxy/clientapi/ant/ActiveScanSubtreeTask.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
*
44
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
55
*
6-
* Copyright 2011 The Zed Attack Proxy Team
6+
* Copyright 2011 The ZAP Development Team
77
*
88
* Licensed under the Apache License, Version 2.0 (the "License");
99
* you may not use this file except in compliance with the License.
1010
* You may obtain a copy of the License at
1111
*
12-
* http://www.apache.org/licenses/LICENSE-2.0
12+
* http://www.apache.org/licenses/LICENSE-2.0
1313
*
1414
* Unless required by applicable law or agreed to in writing, software
1515
* distributed under the License is distributed on an "AS IS" BASIS,

subprojects/zap-clientapi-ant/src/main/java/org/zaproxy/clientapi/ant/ActiveScanUrlTask.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
*
44
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
55
*
6-
* Copyright 2011 The Zed Attack Proxy Team
6+
* Copyright 2011 The ZAP Development Team
77
*
88
* Licensed under the Apache License, Version 2.0 (the "License");
99
* you may not use this file except in compliance with the License.
1010
* You may obtain a copy of the License at
1111
*
12-
* http://www.apache.org/licenses/LICENSE-2.0
12+
* http://www.apache.org/licenses/LICENSE-2.0
1313
*
1414
* Unless required by applicable law or agreed to in writing, software
1515
* distributed under the License is distributed on an "AS IS" BASIS,

subprojects/zap-clientapi-ant/src/main/java/org/zaproxy/clientapi/ant/AlertCheckTask.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
*
44
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
55
*
6-
* Copyright 2011 The Zed Attack Proxy Team
6+
* Copyright 2011 The ZAP Development Team
77
*
88
* Licensed under the Apache License, Version 2.0 (the "License");
99
* you may not use this file except in compliance with the License.
1010
* You may obtain a copy of the License at
1111
*
12-
* http://www.apache.org/licenses/LICENSE-2.0
12+
* http://www.apache.org/licenses/LICENSE-2.0
1313
*
1414
* Unless required by applicable law or agreed to in writing, software
1515
* distributed under the License is distributed on an "AS IS" BASIS,

subprojects/zap-clientapi-ant/src/main/java/org/zaproxy/clientapi/ant/AlertTask.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
*
44
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
55
*
6-
* Copyright 2011 The Zed Attack Proxy Team
6+
* Copyright 2011 The ZAP Development Team
77
*
88
* Licensed under the Apache License, Version 2.0 (the "License");
99
* you may not use this file except in compliance with the License.
1010
* You may obtain a copy of the License at
1111
*
12-
* http://www.apache.org/licenses/LICENSE-2.0
12+
* http://www.apache.org/licenses/LICENSE-2.0
1313
*
1414
* Unless required by applicable law or agreed to in writing, software
1515
* distributed under the License is distributed on an "AS IS" BASIS,

subprojects/zap-clientapi-ant/src/main/java/org/zaproxy/clientapi/ant/LoadSessionTask.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
*
44
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
55
*
6-
* Copyright 2011 The Zed Attack Proxy Team
6+
* Copyright 2011 The ZAP Development Team
77
*
88
* Licensed under the Apache License, Version 2.0 (the "License");
99
* you may not use this file except in compliance with the License.
1010
* You may obtain a copy of the License at
1111
*
12-
* http://www.apache.org/licenses/LICENSE-2.0
12+
* http://www.apache.org/licenses/LICENSE-2.0
1313
*
1414
* Unless required by applicable law or agreed to in writing, software
1515
* distributed under the License is distributed on an "AS IS" BASIS,

subprojects/zap-clientapi-ant/src/main/java/org/zaproxy/clientapi/ant/NewSessionTask.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
*
44
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
55
*
6-
* Copyright 2011 The Zed Attack Proxy Team
6+
* Copyright 2011 The ZAP Development Team
77
*
88
* Licensed under the Apache License, Version 2.0 (the "License");
99
* you may not use this file except in compliance with the License.
1010
* You may obtain a copy of the License at
1111
*
12-
* http://www.apache.org/licenses/LICENSE-2.0
12+
* http://www.apache.org/licenses/LICENSE-2.0
1313
*
1414
* Unless required by applicable law or agreed to in writing, software
1515
* distributed under the License is distributed on an "AS IS" BASIS,

0 commit comments

Comments
 (0)