-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
61 lines (43 loc) · 1.29 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
classpath 'org.ajoberstar:grgit:1.6.0'
classpath 'org.ajoberstar:gradle-git:1.6.0'
}
}
apply plugin: 'org.ajoberstar.grgit'
apply plugin: 'org.ajoberstar.release-opinion'
import org.ajoberstar.gradle.git.release.opinion.Strategies
release {
grgit = org.ajoberstar.grgit.Grgit.open(project.rootDir)
defaultVersionStrategy = Strategies.SNAPSHOT
}
tasks.release.dependsOn ':springboot-dropwizard-metrics:bintrayUpload'
ext {
def grgit = org.ajoberstar.grgit.Grgit.open(project.rootDir)
tag = (grgit.tag.list().size() > 0) ? grgit.tag.list().last().name : project.version.toString()
revision = grgit.head().id
shortMessage = grgit.head().shortMessage
}
allprojects {
group 'smartthings.springboot.metrics'
repositories {
mavenCentral()
jcenter()
mavenLocal()
}
}
subprojects {
apply plugin: 'java'
apply from: file("${project.rootDir}/gradle/convention.gradle")
apply from: file("${project.rootDir}/gradle/publish.gradle")
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
if (!JavaVersion.current().java8Compatible) {
throw new IllegalStateException("Must be built with Java 8 or higher")
}