-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
52 lines (42 loc) · 1.45 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
plugins {
// this plugin gets applied only to this project
id 'groovy-gradle-plugin'
// publishing to gradle plugin portal
id "com.gradle.plugin-publish" version "0.15.0"
}
repositories {
gradlePluginPortal()
}
dependencies {
// the dependency coordinates for "com.gradle.plugin-publish"
implementation "com.gradle.publish:plugin-publish-plugin:0.15.0"
testImplementation gradleTestKit()
testImplementation 'org.spockframework:spock-core:2.0-groovy-3.0', {
exclude group: 'org.codehaus.groovy'
}
testImplementation 'org.junit.jupiter:junit-jupiter-api'
}
tasks.withType(Test).configureEach {// Lazy config
useJUnitPlatform()
}
group = "com.medly"
description = "A Gradle Plugin to Build Gradle Plugins"
pluginBundle {
website = 'https://github.com/medly/inception'
vcsUrl = 'https://github.com/medly/inception'
description = project.description
tags = ['gradle', 'plugin', 'convention']
mavenCoordinates {
groupId = project.group.toString()
artifactId = project.name
version = project.version.toString()
}
}
project.afterEvaluate { // after project is evaluated
pluginDescriptors { // we are configuring task here, this is not an extension block
declarations.get().each { PluginDeclaration declaration ->
declaration.setDisplayName(declaration.id) // set it to id for now
declaration.setDescription(project.description)
}
}
}