-
-
Notifications
You must be signed in to change notification settings - Fork 970
Expand file tree
/
Copy pathbuild.gradle
More file actions
144 lines (131 loc) · 6.1 KB
/
build.gradle
File metadata and controls
144 lines (131 loc) · 6.1 KB
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
plugins {
id 'groovy'
id 'java-gradle-plugin'
id 'org.apache.grails.buildsrc.properties'
id 'org.apache.grails.buildsrc.compile'
id 'org.apache.grails.buildsrc.publish'
id 'org.apache.grails.buildsrc.sbom'
id 'org.apache.grails.gradle.grails-code-style'
}
version = projectVersion
group = 'org.apache.grails'
ext {
pomTitle = 'Grails Gradle Plugins'
pomDescription = 'Various bundled Gradle plugins for Grails'
pomMavenPublicationName = 'pluginMaven'
}
dependencies {
implementation platform(project(':grails-gradle-bom'))
// compile grails-gradle-plugin with the Groovy version provided by Gradle
// to ensure build compatibility with Gradle, currently Groovy 3.0.x
// see: https://docs.gradle.org/current/userguide/compatibility.html#groovy
compileOnly "org.codehaus.groovy:groovy"
implementation project(':grails-gradle-common')
implementation project(':grails-gradle-tasks')
// spock is leaking from the grails-gradle-bom through grails-gradle-model
implementation project(':grails-gradle-model'), {
exclude group: 'org.spockframework'
}
implementation "${gradleBomDependencies['grails-publish-plugin']}"
implementation 'org.springframework.boot:spring-boot-gradle-plugin'
implementation 'org.springframework.boot:spring-boot-loader-tools'
// Testing - Gradle TestKit is auto-added by java-gradle-plugin
testImplementation('org.spockframework:spock-core') { transitive = false }
testImplementation 'org.codehaus.groovy:groovy-test-junit5'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
}
configurations {
testCompileClasspath.exclude group: 'org.apache.groovy', module: 'groovy'
testRuntimeClasspath.exclude group: 'org.apache.groovy', module: 'groovy'
}
gradlePlugin {
plugins {
grailsCore {
displayName = 'Grails Core Gradle Plugin'
description = 'The main Grails gradle plugin implementation'
id = 'org.apache.grails.gradle.grails-app'
implementationClass = 'org.grails.gradle.plugin.core.GrailsGradlePlugin'
}
grailsGsp {
displayName = 'Grails GSP Gradle Plugin'
description = 'A plugin that adds support for compiling Groovy Server Pages (GSP)'
id = 'org.apache.grails.gradle.grails-gsp'
implementationClass = 'org.grails.gradle.plugin.views.gsp.GroovyPagePlugin'
}
grailsGson {
displayName = 'Grails GSON Gradle Plugin'
description = 'A plugin that adds support for compiling Groovy Json Views (GSON)'
id = 'org.apache.grails.gradle.grails-gson'
implementationClass = 'org.grails.gradle.plugin.views.json.GrailsGsonViewsPlugin'
}
grailsMarkup {
displayName = 'Grails Markup Gradle Plugin'
description = 'A plugin that adds support for compiling Markup Views'
id = 'org.apache.grails.gradle.grails-markup'
implementationClass = 'org.grails.gradle.plugin.views.markup.GrailsMarkupViewsPlugin'
}
grailsPlugin {
displayName = 'Grails-Plugin Gradle Plugin'
description = 'A Gradle plugin for Grails plugins'
id = 'org.apache.grails.gradle.grails-plugin'
implementationClass = 'org.grails.gradle.plugin.core.GrailsPluginGradlePlugin'
}
grailsProfile {
displayName = 'Grails Profile Gradle Plugin'
description = 'A plugin that is capable of compiling a Grails profile into a JAR file for distribution'
id = 'org.apache.grails.gradle.grails-profile'
implementationClass = 'org.grails.gradle.plugin.profiles.GrailsProfileGradlePlugin'
}
grailsWeb {
displayName = 'Grails Web Gradle Plugin'
description = 'Adds web specific extensions'
id = 'org.apache.grails.gradle.grails-web'
implementationClass = 'org.grails.gradle.plugin.web.GrailsWebGradlePlugin'
}
grailsProfilePublish {
displayName = 'Grails Profile Publish Plugin'
description = 'A plugin for publishing profiles'
id = 'org.apache.grails.gradle.grails-publish-profile'
implementationClass = 'org.grails.gradle.plugin.profiles.GrailsProfilePublishGradlePlugin'
}
grailsExploded {
displayName = 'Grails Exploded Plugin'
description = 'A plugin that configures a Grails Plugin so that its classes and resources are exploded when running bootRun from a dependent Application'
id = 'org.apache.grails.gradle.grails-exploded'
implementationClass = 'org.grails.gradle.plugin.exploded.GrailsExplodedPlugin'
}
grailsIntegrationTest {
displayName = 'Grails Integration Test Plugin'
description = 'A plugin that adds support for the Grails `integration` test phase.'
id = 'org.apache.grails.gradle.grails-integration-test'
implementationClass = 'org.grails.gradle.plugin.core.IntegrationTestGradlePlugin'
}
}
}
tasks.withType(Copy) {
configure {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}
}
apply {
from rootProject.layout.projectDirectory.file('gradle/docs-config.gradle')
from rootProject.layout.projectDirectory.file('gradle/test-config.gradle')
}