Skip to content
This repository was archived by the owner on Dec 2, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
dist: trusty
language: java
jdk:
- oraclejdk8
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ buildscript {
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:2.0.0.RELEASE")
classpath("com.github.ben-manes:gradle-versions-plugin:0.27.0")
}
}


group = 'opacapi'
version = '1.0-SNAPSHOT'

apply from: 'gradle/gradle-versions.gradle'
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'application'
Expand Down
19 changes: 19 additions & 0 deletions gradle/gradle-versions.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// Gradle Versions Plugin

apply plugin: "com.github.ben-manes.versions"

dependencyUpdates {

def isNonStable = { String version ->
def stableKeyword = ["RELEASE", "FINAL", "GA"].any {
qualifier -> version.toUpperCase().contains(qualifier)
}
def regex = /^[0-9,.v-]+(-r)?$/
return !stableKeyword && !(version ==~ regex)
}

rejectVersionIf {
isNonStable(it.candidate.version)
}

}