-
-
Notifications
You must be signed in to change notification settings - Fork 973
Expand file tree
/
Copy pathbuild.gradle
More file actions
95 lines (87 loc) · 3.81 KB
/
Copy pathbuild.gradle
File metadata and controls
95 lines (87 loc) · 3.81 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
/*
* 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-gradle-plugin'
}
version = '0.0.1'
group = 'org.apache.grails.buildsrc'
apply {
from project.layout.projectDirectory.file('../../dependencies.gradle')
}
project.layout.projectDirectory.file('../../gradle.properties').asFile.withInputStream {
Properties props = new Properties()
props.load(it)
project.ext.gradleProperties = props
}
dependencies {
implementation "${gradleBomDependencies['grails-publish-plugin']}"
implementation "org.gradle.crypto.checksum:org.gradle.crypto.checksum.gradle.plugin:${gradleProperties.gradleChecksumPluginVersion}"
implementation "org.cyclonedx.bom:org.cyclonedx.bom.gradle.plugin:${gradleProperties.gradleCycloneDxPluginVersion}"
implementation "com.diffplug.spotless:spotless-plugin-gradle:${gradleProperties.spotlessVersion}"
implementation "com.github.spotbugs.snom:spotbugs-gradle-plugin:${gradleProperties.spotbugsPluginVersion}"
testImplementation "org.spockframework:spock-core:${gradleBomDependencyVersions['gradle-spock.version']}"
testImplementation gradleTestKit()
}
tasks.named('test') {
useJUnitPlatform()
}
gradlePlugin {
plugins {
register('compilePlugin') {
id = 'org.apache.grails.buildsrc.compile'
implementationClass = 'org.apache.grails.buildsrc.CompilePlugin'
}
register('publishPlugin') {
id = 'org.apache.grails.buildsrc.publish'
implementationClass = 'org.apache.grails.buildsrc.PublishPlugin'
}
register('sbomPlugin') {
id = 'org.apache.grails.buildsrc.sbom'
implementationClass = 'org.apache.grails.buildsrc.SbomPlugin'
}
register('sharedPropertyPlugin') {
id = 'org.apache.grails.buildsrc.properties'
implementationClass = 'org.apache.grails.buildsrc.SharedPropertyPlugin'
}
register('grailsCodeStyle') {
id = 'org.apache.grails.gradle.grails-code-style'
implementationClass = 'org.apache.grails.buildsrc.GrailsCodeStylePlugin'
}
register('groovydocEnhancer') {
id = 'org.apache.grails.buildsrc.groovydoc-enhancer'
implementationClass = 'org.apache.grails.buildsrc.GroovydocEnhancerPlugin'
}
register('grailsGroovydoc') {
id = 'org.apache.grails.buildsrc.groovydoc'
implementationClass = 'org.apache.grails.buildsrc.GrailsGroovydocPlugin'
}
register('grailsRepoSettings') {
id = 'org.apache.grails.buildsrc.repo'
implementationClass = 'org.apache.grails.buildsrc.GrailsRepoSettingsPlugin'
}
register('grailsDependencyValidator') {
id = 'org.apache.grails.buildsrc.dependency-validator'
implementationClass = 'org.apache.grails.buildsrc.GrailsDependencyValidatorPlugin'
}
register('grailsTestAggregation') {
id = 'org.apache.grails.gradle.test-aggregation'
implementationClass = 'org.apache.grails.buildsrc.GrailsTestPlugin'
}
}
}