Advertisement
Guest User

Untitled

a guest
Apr 3rd, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 1.66 KB | None | 0 0
  1. buildscript {
  2.     repositories {
  3.         maven {
  4.             url 'https://repos.internal/maven/'
  5.         }
  6.     }
  7.     dependencies {
  8.         classpath 'external.common.script:common-gradle:4.+'
  9.         classpath 'org.asciidoctor:asciidoctor-gradle-plugin:1.5.11'
  10.         classpath 'com.netflix.nebula:nebula-project-plugin:6.0.2'
  11.         classpath 'gradle.plugin.org.jetbrains.gradle.plugin.idea-ext:gradle-idea-ext:0.5'
  12.     }
  13.     dependencies {
  14.         delete "build/gradle"
  15.         ant.unjar src: configurations.classpath.files.find { it.name.matches '.*common-gradle.*' }, dest: 'build/gradle'
  16.     }
  17. }
  18.  
  19.  
  20. apply plugin: "application"
  21. apply from: "build/gradle/service.gradle"
  22. // plugin ids cannot be used due to https://github.com/gradle/gradle/issues/1262
  23. apply plugin: nebula.plugin.responsible.NebulaFacetPlugin // apply plugin: 'nebula.facet'
  24. apply plugin: org.asciidoctor.gradle.AsciidoctorPlugin // apply plugin: 'org.asciidoctor.convert'
  25. apply plugin: org.jetbrains.gradle.ext.IdeaExtPlugin // apply plugin: 'org.jetbrains.gradle.plugin.idea-ext'
  26.  
  27. // ...
  28.  
  29. dependencyUpdates {
  30.     revision = "release"
  31.     resolutionStrategy = {
  32.         componentSelection { rules ->
  33.             rules.all { ComponentSelection selection ->
  34.                 boolean rejected = ['alpha', 'beta', 'rc', 'cr', 'm', 'preview', 'b', 'ea'].any { qualifier ->
  35.                     selection.candidate.version ==~ /(?i).*[.-]${qualifier}[.\d-+]*/
  36.                 }
  37.                 if (rejected) {
  38.                     selection.reject('Release candidate')
  39.                 }
  40.             }
  41.         }
  42.     }
  43.     checkForGradleUpdate = true
  44.     gradleReleaseChannel = "current"
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement