Skip to content

Commit 66f89b2

Browse files
spring-buildsartembilan
authored andcommitted
Update Copyright to -present instead of current year
* Remove `updateCopyrights` Gradle task since we don't need it anymore
1 parent f9db4ae commit 66f89b2

File tree

65 files changed

+62
-124
lines changed

Some content is hidden

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

65 files changed

+62
-124
lines changed

build.gradle

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -183,36 +183,6 @@ test {
183183

184184
check.dependsOn javadoc
185185

186-
task updateCopyrights {
187-
onlyIf { !isCI }
188-
inputs.files(modifiedFiles)
189-
190-
doLast {
191-
def now = Calendar.instance.get(Calendar.YEAR) as String
192-
inputs.files.each { file ->
193-
def line
194-
file.withReader { reader ->
195-
while (line = reader.readLine()) {
196-
def matcher = line =~ /Copyright (20\d\d)-?(20\d\d)?/
197-
if (matcher.count) {
198-
def beginningYear = matcher[0][1]
199-
if (now != beginningYear && now != matcher[0][2]) {
200-
def years = "$beginningYear-$now"
201-
def sourceCode = file.text
202-
sourceCode = sourceCode.replaceFirst(/20\d\d(-20\d\d)?/, years)
203-
file.text = sourceCode
204-
println "Copyright updated for file: $file"
205-
}
206-
break
207-
}
208-
}
209-
}
210-
}
211-
}
212-
}
213-
214-
compileJava.dependsOn updateCopyrights
215-
216186
task docsZip(type: Zip) {
217187
group = 'Distribution'
218188
archiveClassifier = 'docs'

src/main/java/org/springframework/integration/aws/event/AwsIntegrationEvent.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019 the original author or authors.
2+
* Copyright 2019-present the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/org/springframework/integration/aws/event/KinesisIntegrationEvent.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019 the original author or authors.
2+
* Copyright 2019-present the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/org/springframework/integration/aws/event/KinesisShardEndedEvent.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019 the original author or authors.
2+
* Copyright 2019-present the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/org/springframework/integration/aws/event/package-info.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,3 @@
1-
/*
2-
* Copyright 2019 the original author or authors.
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* https://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
15-
*/
16-
171
/**
182
* Provides events for AWS Channel Adapters.
193
*/

src/main/java/org/springframework/integration/aws/inbound/S3InboundFileSynchronizer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016-2025 the original author or authors.
2+
* Copyright 2016-present the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/org/springframework/integration/aws/inbound/S3InboundFileSynchronizingMessageSource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016-2023 the original author or authors.
2+
* Copyright 2016-present the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/org/springframework/integration/aws/inbound/S3StreamingMessageSource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016-2025 the original author or authors.
2+
* Copyright 2016-present the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/org/springframework/integration/aws/inbound/SnsInboundChannelAdapter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016-2024 the original author or authors.
2+
* Copyright 2016-present the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/org/springframework/integration/aws/inbound/SqsMessageDrivenChannelAdapter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016-2023 the original author or authors.
2+
* Copyright 2016-present the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)