Xia Kaixiang | d15331b | 2019-05-13 16:09:09 +0800 | [diff] [blame] | 1 | pluginManagement { |
| 2 | resolutionStrategy { |
| 3 | eachPlugin { |
| 4 | if (requested.id.namespace != null) { |
| 5 | if (requested.id.namespace.startsWith("org.jetbrains.kotlin")) { |
| 6 | println "Kotlin version $kotlinVersion" |
| 7 | useVersion kotlinVersion |
| 8 | } else if(requested.id.namespace.startsWith("org.springframework")) { |
| 9 | println "Springboot version $springbootVersion" |
| 10 | useVersion springbootVersion |
| 11 | } |
| 12 | } |
| 13 | } |
| 14 | } |
| 15 | repositories { |
| 16 | gradlePluginPortal() |
| 17 | } |
| 18 | } |
| 19 | rootProject.name = 'payapi' |
| 20 | |