-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
71 lines (60 loc) · 1.46 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
buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:8.1.1'
}
}
plugins {
id 'java'
id 'idea'
id 'eclipse'
}
System.setProperty("file.encoding", "UTF-8")
ext {
isPrivateBuild = false
}
subprojects {
repositories {
mavenCentral()
}
version = "1.16.4.0"
}
allprojects {
repositories {
google()
mavenCentral()
maven { url "https://repo.spring.io/snapshot" }
maven { url "https://repo.spring.io/milestone" }
gradlePluginPortal()
}
apply plugin: 'idea'
apply plugin: 'eclipse'
ext.getMavenPublishUrl = {
def releasesRepoUrl = ""
def snapshotsRepoUrl = ""
if (rootProject.isPrivateBuild) {
releasesRepoUrl = "https://nexus.anzo.host/repository/maven-releases/"
snapshotsRepoUrl = "https://nexus.anzo.host/repository/maven-snapshots/"
}
else {
releasesRepoUrl = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
snapshotsRepoUrl = "https://s01.oss.sonatype.org/content/repositories/snapshots"
}
return version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
}
ext.getMavenPublishUser = {
return rootProject.isPrivateBuild ? "$nexusUsername" : "$mavenCentralUsernameToken"
}
ext.getMavenPublishPassword = {
return rootProject.isPrivateBuild ? "$nexusPassword" : "$mavenCentralPasswordToken"
}
}
idea {
module {
excludeDirs += file('gradle')
excludeDirs += file('tools')
}
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}