-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathbuild.gradle
110 lines (97 loc) · 3.49 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
buildscript {
repositories {
maven { url "https://repo.grails.org/grails/core" }
}
dependencies {
classpath "org.grails:grails-gradle-plugin:$grailsGradlePluginVersion"
classpath "org.asciidoctor:asciidoctor-gradle-plugin:$asciidoctorGradlePlugin"
}
}
group "org.grails.plugins"
version project.projectVersion
apply plugin:"eclipse"
apply plugin:"idea"
apply from:"./gradle/docs.gradle"
apply plugin:"org.grails.grails-plugin"
apply plugin:"org.grails.grails-publish"
repositories {
mavenCentral()
maven { url "https://repo.grails.org/grails/core" }
if (System.getenv("GITHUB_MAVEN_PASSWORD") && !grailsVersion.endsWith('-SNAPSHOT')) {
System.out.println("Adding Grails Core Repo")
maven {
url = 'https://maven.pkg.github.com/grails/grails-core'
credentials {
username = 'DOES_NOT_MATTER'
password = System.getenv("GITHUB_MAVEN_PASSWORD")
}
}
}
}
dependencies {
api "org.springframework.boot:spring-boot-starter-logging"
api "org.springframework.boot:spring-boot-autoconfigure"
api "org.grails:grails-core"
api "org.springframework.boot:spring-boot-starter-actuator"
api "org.springframework.boot:spring-boot-starter-tomcat"
api "org.grails:grails-web-boot"
api "org.grails:grails-logging"
api "org.grails:grails-plugin-rest"
api "org.grails:grails-plugin-databinding"
api "org.grails:grails-plugin-i18n"
api "org.grails:grails-plugin-services"
api "org.grails:grails-plugin-url-mappings"
api "org.grails:grails-plugin-interceptors"
api "org.grails.plugins:async"
api "org.grails.plugins:scaffolding"
api "org.codehaus.gpars:gpars:$gparsVersion"
api "org.grails.plugins:gsp"
runtimeOnly "org.grails.plugins:async"
console "org.grails:grails-console"
profile "org.grails.profiles:web-plugin"
compileOnly "org.grails:grails-plugin-services"
compileOnly "org.grails:grails-plugin-domain-class"
testImplementation "org.grails:grails-gorm-testing-support"
testImplementation "org.grails:grails-web-testing-support"
testImplementation "org.mockito:mockito-core"
integrationTestImplementation testFixtures("org.grails.plugins:geb")
api "com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:$concurrentlinkedhashmapLruVersion"
}
apply from: rootProject.file('gradle/testVerbose.gradle')
//tasks.withType(Test) {
// systemProperty 'grails.geb.recording.mode', 'RECORD_FAILING'
//}
bootRun {
jvmArgs(
'-Dspring.output.ansi.enabled=always',
'-noverify',
'-XX:TieredStopAtLevel=1',
'-Xmx1024m')
sourceResources sourceSets.main
String springProfilesActive = 'spring.profiles.active'
systemProperty springProfilesActive, System.getProperty(springProfilesActive)
}
grailsPublish {
githubSlug = project.githubSlug
license {
name = 'Apache-2.0'
}
title = project.title
desc = project.projectDesc
developers = [jeffbrown: "Jeff Scott Brown", "puneetbehl": "Puneet Behl"]
}
integrationTest {
testLogging {
exceptionFormat = 'full'
}
}
// exclude demo code from jar artifact
jar {
includeEmptyDirs = false
exclude 'com/demo/**'
}
tasks.named("publishGuide") {
it.dependsOn = ["compileAstGroovy", "copyAstClasses", "compileGroovy",
"compileAstJava", "compileJava", "compileAstJava",
"groovydoc", "processResources", "copyCommands", "copyLocalDocResources"]
}