-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
executable file
·47 lines (37 loc) · 1.32 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
plugins {
id "com.github.ben-manes.versions" version "0.36.0"
id 'se.patrikerdes.use-latest-versions' version '0.2.15'
}
ext {
versionSuffix = project.findProperty('snapshot') == 'true' ? '-SNAPSHOT' : ''
}
dependencyUpdates {
gradleReleaseChannel = "current"
}
subprojects { subproject ->
apply plugin: 'java-gradle-plugin'
apply plugin: 'groovy'
apply plugin: 'maven-publish'
apply plugin: 'com.github.ben-manes.versions'
apply plugin: 'se.patrikerdes.use-latest-versions'
group = 'de.interactive_instruments'
version = '5.2.6' + versionSuffix
sourceCompatibility = JavaVersion.VERSION_11
repositories {
mavenCentral()
}
subproject.tasks.check.finalizedBy rootProject.tasks.dependencyUpdates
publishing {
repositories {
maven {
def releasesRepoUrl = "https://dl.interactive-instruments.de/repository/maven-releases/"
def snapshotsRepoUrl = "https://dl.interactive-instruments.de/repository/maven-snapshots/"
url version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
credentials {
username project.findProperty('deployUser') ?: ''
password project.findProperty('deployPassword') ?: ''
}
}
}
}
}