Skip to content

Commit 3518224

Browse files
spring-buildsartembilan
authored andcommitted
Update Copyright to -present instead of current year
* Remove unnecessary anymore Gradle `updateCopyrights`
1 parent ceddb51 commit 3518224

File tree

543 files changed

+542
-572
lines changed

Some content is hidden

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

543 files changed

+542
-572
lines changed

build.gradle

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -244,36 +244,6 @@ configure(javaProjects) { subproject ->
244244
}
245245
}
246246

247-
tasks.register('updateCopyrights') {
248-
onlyIf { !isCI }
249-
inputs.files(modifiedFiles.filter { f -> f.path.contains(subproject.name) })
250-
251-
doLast {
252-
def now = Calendar.instance.get(Calendar.YEAR) as String
253-
inputs.files.each { file ->
254-
def line
255-
file.withReader { reader ->
256-
while (line = reader.readLine()) {
257-
def matcher = line =~ /Copyright (20\d\d)-?(20\d\d)?/
258-
if (matcher.count) {
259-
def beginningYear = matcher[0][1]
260-
if (now != beginningYear && now != matcher[0][2]) {
261-
def years = "$beginningYear-$now"
262-
def sourceCode = file.getText('UTF-8')
263-
sourceCode = sourceCode.replaceFirst(/20\d\d(-20\d\d)?/, years)
264-
file.text = sourceCode
265-
println "Copyright updated for file: $file"
266-
}
267-
break
268-
}
269-
}
270-
}
271-
}
272-
}
273-
}
274-
275-
compileKotlin.dependsOn updateCopyrights
276-
277247
tasks.withType(JavaForkOptions) {
278248
jvmArgs '--add-opens', 'java.base/java.util.zip=ALL-UNNAMED'
279249
}

spring-amqp/src/main/java/org/springframework/amqp/AmqpApplicationContextClosedException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016-2019 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.

spring-amqp/src/main/java/org/springframework/amqp/AmqpAuthenticationException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2013-2019 the original author or authors.
2+
* Copyright 2013-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.

spring-amqp/src/main/java/org/springframework/amqp/AmqpConnectException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2019 the original author or authors.
2+
* Copyright 2002-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.

spring-amqp/src/main/java/org/springframework/amqp/AmqpException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2019 the original author or authors.
2+
* Copyright 2002-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.

spring-amqp/src/main/java/org/springframework/amqp/AmqpIOException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2019 the original author or authors.
2+
* Copyright 2002-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.

spring-amqp/src/main/java/org/springframework/amqp/AmqpIllegalStateException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2019 the original author or authors.
2+
* Copyright 2002-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.

spring-amqp/src/main/java/org/springframework/amqp/AmqpRejectAndDontRequeueException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2019 the original author or authors.
2+
* Copyright 2002-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.

spring-amqp/src/main/java/org/springframework/amqp/AmqpRemoteException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016-2019 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.

spring-amqp/src/main/java/org/springframework/amqp/AmqpResourceNotAvailableException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2018-2019 the original author or authors.
2+
* Copyright 2018-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)