-
Notifications
You must be signed in to change notification settings - Fork 0
/
customized.gradle
executable file
·69 lines (58 loc) · 2.12 KB
/
customized.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
println "Using the TwilightCity Gradle distro"
allprojects {
def repositoryReadCredentials = null
if (hasReadCredentials(project)) {
repositoryReadCredentials = {
username repositoryReadUsername
password repositoryReadPassword
}
}
buildscript {
ext {
if (project.hasProperty("repositoryPublicUrl") == false) {
repositoryPublicUrl = "http://nexus.twilightcity.net:8081/repository/public"
}
}
repositories {
mavenLocal()
mavenCentral()
maven {
if (repositoryReadCredentials != null) {
credentials repositoryReadCredentials
}
url repositoryPublicUrl
}
}
dependencies {
if (project.name != "gradle-core" && project.name != "gradle-templates") {
classpath "org.dreamscale:gradle-core:1.+"
classpath "org.dreamscale:gradle-templates:1.+"
}
if (project.hasProperty("springBootVersion")) {
classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}"
}
}
}
repositories {
mavenLocal()
mavenCentral()
maven {
if (repositoryReadCredentials != null) {
credentials repositoryReadCredentials
}
url repositoryPublicUrl
}
}
ext["dreamscale.printCorePluginVersion"] = ""
ext["organization.repo.url"] = "https://github.com/twilightcity-net"
ext["organization.repo.connection"] = "scm:git:git@github.com:twilightcity-net"
ext["bintray.repo"] = "maven-public"
ext["bintray.userOrg"] = "twilightcity-net"
ext["maven.pom.packaging"] = "jar"
ext["maven.pom.developer.id"] = "twilightcity"
ext["maven.pom.developer.name"] = "TwilightCity Open Source Development"
ext["maven.pom.developer.email"] = "opensource@twilightcity.net"
}
def hasReadCredentials(project) {
return project.hasProperty("repositoryReadUsername") && project.hasProperty("repositoryReadPassword")
}