Skip to content

Commit 8416c07

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

File tree

556 files changed

+555
-585
lines changed

Some content is hidden

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

556 files changed

+555
-585
lines changed

build.gradle

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -228,36 +228,6 @@ configure(javaProjects) { subproject ->
228228
}
229229
}
230230

231-
tasks.register('updateCopyrights') {
232-
onlyIf { !isCI }
233-
inputs.files(modifiedFiles.filter { f -> f.path.contains(subproject.name) })
234-
235-
doLast {
236-
def now = Calendar.instance.get(Calendar.YEAR) as String
237-
inputs.files.each { file ->
238-
def line
239-
file.withReader { reader ->
240-
while (line = reader.readLine()) {
241-
def matcher = line =~ /Copyright (20\d\d)-?(20\d\d)?/
242-
if (matcher.count) {
243-
def beginningYear = matcher[0][1]
244-
if (now != beginningYear && now != matcher[0][2]) {
245-
def years = "$beginningYear-$now"
246-
def sourceCode = file.getText('UTF-8')
247-
sourceCode = sourceCode.replaceFirst(/20\d\d(-20\d\d)?/, years)
248-
file.text = sourceCode
249-
println "Copyright updated for file: $file"
250-
}
251-
break
252-
}
253-
}
254-
}
255-
}
256-
}
257-
}
258-
259-
compileKotlin.dependsOn updateCopyrights
260-
261231
tasks.withType(JavaForkOptions) {
262232
jvmArgs '--add-opens', 'java.base/java.util.zip=ALL-UNNAMED'
263233
}

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-2025 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-2025 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)