forked from grails/grails-async
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
64 lines (54 loc) · 1.69 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
buildscript {
repositories {
mavenLocal()
maven { url "https://repo.grails.org/grails/core" }
}
dependencies {
classpath "org.grails:grails-gradle-plugin:$grailsVersion"
classpath "org.grails:grails-docs:$grailsVersion"
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
classpath 'com.bmuschko:gradle-nexus-plugin:2.3.1'
classpath 'io.github.groovylang.groovydoc:groovydoc-gradle-plugin:1.0.1'
}
}
repositories {
mavenLocal()
maven { url "https://repo.grails.org/grails/core" }
}
version project.projectVersion
ext {
commonBuild = 'https://raw.githubusercontent.com/grails/grails-common-build/1549696f8d1a6bce3d84db9c4c1bfde61eddf175'
}
subprojects {
version project.projectVersion
ext {
userOrg = "grails"
isGrailsPlugin = name.startsWith('grails-plugin')
isBuildSnapshot = version.toString().endsWith("-SNAPSHOT")
}
if(isGrailsPlugin) {
group "org.grails.plugins"
}
else {
group "org.grails"
}
repositories {
mavenLocal()
maven { url "https://repo.grails.org/grails/core" }
}
if(it.projectDir.path.endsWith("examples/${it.name}".toString())) {
apply plugin:"org.grails.grails-web"
}
else if(isGrailsPlugin) {
apply from:"${commonBuild}/common-project.gradle"
apply from:"${commonBuild}/common-publishing.gradle"
}
else {
apply from:"${commonBuild}/common-project.gradle"
apply from:"${commonBuild}/common-publishing.gradle"
}
dependencies {
compile 'javax.annotation:javax.annotation-api:1.3.2'
}
}
apply from:"${commonBuild}/common-docs.gradle"