-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
63 lines (58 loc) · 1.25 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
buildscript {
repositories {
mavenLocal()
maven {
url "https://plugins.gradle.org/m2/"
}
maven {
url "https://artifacts.fizzpod.com/public/mvn/"
}
}
dependencies {
classpath ('com.fizzpod:gradle-plugin-opinion:21.0.0') {
exclude group: 'com.fizzpod', module: 'gradle-sweeney-plugin'
}
}
}
apply plugin: 'com.fizzpod.pater-build'
apply from: 'buildSrc/build.gradle'
sourceSets {
main {
java {
srcDir 'buildSrc/src/main/java'
}
resources {
srcDir 'buildSrc/src/main/resources'
exclude 'META-INF/gradle-plugins/com.fizzpod.sweeney.properties'
}
groovy {
srcDir 'buildSrc/src/main/groovy'
}
}
test {
java {
srcDir 'buildSrc/src/test/java'
}
resources {
srcDir 'buildSrc/src/test/resources'
}
groovy {
srcDir 'buildSrc/src/test/groovy'
}
}
}
dependencies {
api gradleApi()
api localGroovy()
}
gradlePlugin {
plugins {
plugin {
description = 'Gradle plugin providing ability to enforce build rules.'
tags.set(['enforce', 'rules', 'sweeney'])
id = 'com.fizzpod.sweeney'
displayName = 'Gradle Sweeney plugin'
implementationClass = 'com.fizzpod.gradle.plugins.sweeney.SweeneyPlugin'
}
}
}