-
Notifications
You must be signed in to change notification settings - Fork 16
/
build.gradle
52 lines (43 loc) · 1.7 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
/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Java Library project to get you started.
* For more details take a look at the Java Libraries chapter in the Gradle
* User Manual available at https://docs.gradle.org/5.6.2/userguide/java_library_plugin.html
*/
plugins {
id 'io.github.gradle-nexus.publish-plugin' version '1.1.0'
id "com.dorongold.task-tree" version "2.1.0"
}
ext {
defaultVersion = '1.27.1'
}
def defaultGroupId = 'com.appland'
def publishGroupId = findProperty('publishGroupId') ?: defaultGroupId
group = publishGroupId
version = defaultVersion
nexusPublishing {
repositories {
sonatype {
// this is evaluated even when task itself is not invoked
// so we use fault-tolerant `findProperty` instead of strict `getProperty`
// solely in order to allow building artifacts
// without runtime configuration (e.g. in context of Docker build)
// see https://central.sonatype.org/pages/gradle.html
def default_base = "https://s01.oss.sonatype.org"
def url_base = findProperty("mavenRepoURL") ?: default_base
nexusUrl = uri( url_base + "/service/local/")
snapshotRepositoryUrl = uri( url_base + "/content/repositories/snapshots" )
username = project.findProperty('ossrhUsername')
password = project.findProperty('ossrhPassword')
}
}
}
subprojects {
apply plugin: 'java-library'
apply plugin: 'checkstyle'
checkstyle {
toolVersion = "9.3"
configFile = rootProject.file("config/checkstyle/checkstyle.xml")
}
}