Skip to content

Commit 05a03a8

Browse files
authoredJul 1, 2022
Revert: Add gradle-versions-plugin (#782)
Since we're using dependantbot.
1 parent ba5080e commit 05a03a8

File tree

2 files changed

+0
-92
lines changed

2 files changed

+0
-92
lines changed
 

Diff for: ‎CONTRIBUTING.md

-64
Original file line numberDiff line numberDiff line change
@@ -13,67 +13,3 @@ source projects you are aware of. It will be amazing if you could help us by doi
1313
When you are sending a pull request and it's a non-trivial change beyond fixing typos, please make sure to sign
1414
[the ICLA (individual contributor license agreement)](https://cla-assistant.io/line/line-bot-sdk-java). Please
1515
[contact us](mailto:dl_oss_dev@linecorp.com) if you need the CCLA (corporate contributor license agreement).
16-
17-
# Detect outdated dependencies
18-
19-
Run `./gradlew dependencyUpdates -Drevision=release` checks dependency list
20-
and reports outdated dependencies excepts SpringManaged dependency.
21-
22-
## ./gradlew dependencyUpdates example
23-
```
24-
% ./gradlew dependencyUpdates -Drevision=release
25-
Download https://plugins.gradle.org/m2/org/springframework/boot/spring-boot-gradle-plugin/maven-metadata.xml
26-
27-
> Task :dependencyUpdates
28-
29-
------------------------------------------------------------
30-
: Project Dependency Updates (report to plain text file)
31-
------------------------------------------------------------
32-
33-
The following dependencies are using the latest release version:
34-
- com.github.ben-manes:gradle-versions-plugin:0.20.0
35-
- com.github.stefanbirkner:system-rules:1.18.0
36-
- com.squareup.okhttp3:logging-interceptor:3.11.0
37-
- com.squareup.okhttp3:mockwebserver:3.11.0
38-
- com.squareup.retrofit2:converter-jackson:2.4.0
39-
- com.squareup.retrofit2:retrofit:2.4.0
40-
- io.franzbecker:gradle-lombok:1.14
41-
- io.spring.gradle:dependency-management-plugin:1.0.6.RELEASE
42-
- org.projectlombok:lombok:1.18.2
43-
- org.slf4j:slf4j-api:1.7.25
44-
45-
The following dependencies have later release versions:
46-
- com.google.guava:guava [25.1-jre -> 26.0-jre]
47-
https://github.com/google/guava
48-
- gradle.plugin.com.github.spotbugs:spotbugs-gradle-plugin [1.6.2 -> 1.6.3]
49-
- gradle.plugin.com.gorylenko.gradle-git-properties:gradle-git-properties [1.4.17 -> 1.5.2]
50-
- io.spring.gradle:propdeps-plugin [0.0.9.RELEASE -> 0.0.10.RELEASE]
51-
- org.jetbrains.kotlin:kotlin-gradle-plugin [1.2.61 -> 1.2.70]
52-
https://kotlinlang.org/
53-
- org.jetbrains.kotlin:kotlin-scripting-compiler-embeddable [1.2.61 -> 1.2.70]
54-
https://kotlinlang.org/
55-
- org.jetbrains.kotlin:kotlin-stdlib-jdk8 [1.2.61 -> 1.2.70]
56-
https://kotlinlang.org/
57-
58-
Failed to determine the latest version for the following dependencies (use --info for details):
59-
- com.fasterxml.jackson.core:jackson-annotations
60-
- com.fasterxml.jackson.core:jackson-core
61-
- com.fasterxml.jackson.core:jackson-databind
62-
- com.fasterxml.jackson.datatype:jackson-datatype-jsr310
63-
- com.fasterxml.jackson.module:jackson-module-parameter-names
64-
- javax.servlet:javax.servlet-api
65-
- javax.validation:validation-api
66-
- org.hibernate:hibernate-validator
67-
- org.springframework.boot:spring-boot-autoconfigure
68-
- org.springframework.boot:spring-boot-configuration-processor
69-
- org.springframework.boot:spring-boot-gradle-plugin
70-
- org.springframework.boot:spring-boot-starter-logging
71-
- org.springframework.boot:spring-boot-starter-test
72-
- org.springframework.boot:spring-boot-starter-web
73-
74-
Gradle updates:
75-
- Gradle: [4.8 -> 4.10.1]
76-
77-
Generated report file build/dependencyUpdates/report.txt
78-
```
79-

Diff for: ‎build.gradle

-28
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ buildscript {
3232
maven { url 'https://repo.spring.io/plugins-release' }
3333
}
3434
dependencies {
35-
classpath 'com.github.ben-manes:gradle-versions-plugin:0.42.0'
3635
classpath 'com.puppycrawl.tools:checkstyle:10.3.1'
3736
classpath "com.github.spotbugs.snom:spotbugs-gradle-plugin:5.0.9"
3837
classpath 'io.franzbecker:gradle-lombok:5.0.0'
@@ -44,7 +43,6 @@ buildscript {
4443

4544
apply plugin: 'idea'
4645
apply plugin: 'jacoco'
47-
apply plugin: 'com.github.ben-manes.versions'
4846

4947
group = 'com.linecorp.bot'
5048
version = '4.10.0'
@@ -121,32 +119,6 @@ subprojects {
121119
compileJava.dependsOn(processResources)
122120
// http://docs.spring.io/spring-boot/docs/current/reference/html/configuration-metadata.html#configuration-metadata-annotation-processor
123121

124-
def springManagedModules = [
125-
'org.springframework',
126-
'com.fasterxml.jackson',
127-
'javax.validation',
128-
'org.hibernate',
129-
'javax.servlet'
130-
];
131-
dependencyUpdates.resolutionStrategy {
132-
componentSelection { rules ->
133-
rules.all { ComponentSelection selection ->
134-
boolean springManaged = springManagedModules.any { module ->
135-
selection.candidate.group.startsWith(module)
136-
}
137-
if (springManaged) {
138-
selection.reject('Spring Managed')
139-
}
140-
boolean rejected = ['alpha', 'beta', 'rc', 'cr', 'm'].any { qualifier ->
141-
selection.candidate.version ==~ /(?i).*[.-]${qualifier}\d*[.\d-]*/
142-
}
143-
if (rejected) {
144-
selection.reject('Release candidate')
145-
}
146-
}
147-
}
148-
}
149-
150122
jar {
151123
manifest {
152124
attributes 'Implementation-Title': project.name,

0 commit comments

Comments
 (0)
Please sign in to comment.