-
Notifications
You must be signed in to change notification settings - Fork 28
/
build.gradle
81 lines (72 loc) · 2.87 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/*
* This file was generated by the Gradle 'init' task.
*
* This is a general purpose Gradle build.
* Learn how to create Gradle builds at https://guides.gradle.org/creating-new-gradle-builds
*/
buildscript {
repositories {
mavenCentral()
google()
maven { url "https://plugins.gradle.org/m2/" }
maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots' }
}
dependencies {
classpath 'com.android.tools.build:gradle:4.0.2'
}
}
Properties properties = new Properties()
def propertiesFile = project.rootProject.file('local.properties')
if (propertiesFile.exists()) {
properties.load(propertiesFile.newDataInputStream())
}
ext.nexusUsername = properties.getProperty('nexusUsername') != null ? properties.getProperty('nexusUsername') : System.getenv('NEXUS_USERNAME');
ext.nexusPassword = properties.getProperty('nexusPassword') != null ? properties.getProperty('nexusPassword') : System.getenv('NEXUS_PASSWORD');
ext.signingKeyId = properties.getProperty('signingKeyId') != null ? properties.getProperty('signingKeyId') : System.getenv('SIGNING_KEY_ID');
ext.signingKey = properties.getProperty('signingKey') != null ? properties.getProperty('signingKey') : System.getenv('SIGNING_KEY');
ext.signingPassword = properties.getProperty('signingPassword') != null ? properties.getProperty('signingPassword') : System.getenv('SIGNING_PASSWORD');
ext.repoVcsUrl = 'https://github.com/kontent-ai/java-packages.git'
ext.repoUrl = 'https://github.com/kontent-ai/java-packages'
ext.pomConfig = {
developers {
developer {
id 'ondrejch'
name 'Ondrej Chrastina'
email 'ondrej.chrastina@kontent.ai'
}
}
licenses {
license {
name "MIT"
url "https://github.com/kontent-ai/java-packages/blob/master/LICENSE.md"
distribution "repo"
}
}
scm {
url "git@github.com:kontent-ai/java-packages.git"
connection 'scm:git:git://github.com/kontent-ai/java-packages.git'
developerConnection 'scm:git:ssh://git@github.com:kontent-ai/java-packages.git'
}
issueManagement {
system 'GitHub'
url 'https://github.com/kontent-ai/java-packages/issues'
}
organization {
name 'ai.kontent'
url 'https://kontent.ai'
}
}
allprojects {
repositories {
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots' }
}
}
def repoGroupIdVal = 'ai.kontent';
subprojects {
version = System.getenv('RELEASE_TAG') != null && !System.getenv('RELEASE_TAG').isEmpty() ? System.getenv('RELEASE_TAG') : '5.1.0-SNAPSHOT'
ext.repoGroupId = repoGroupIdVal
group = repoGroupIdVal
ext.repositoryHost = 'maven.org'
}