forked from CadixDev/licenser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
93 lines (73 loc) · 1.87 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
plugins {
id 'java-gradle-plugin'
id 'groovy'
id 'com.gradle.plugin-publish' version '0.14.0'
id 'org.cadixdev.licenser' version '0.5.1'
}
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
group = 'org.cadixdev.gradle'
version = '0.7.0-SNAPSHOT'
description = 'A simple license header manager for Gradle'
repositories {
gradlePluginPortal()
}
sourceSets {
functionalTest {
}
}
configurations {
functionalTestImplementation.extendsFrom(testImplementation)
functionalTestRuntimeOnly.extendsFrom(testRuntimeOnly)
}
gradlePlugin.testSourceSets(sourceSets.functionalTest)
tasks.register('functionalTest', Test) {
description = 'Runs the functional tests.'
group = 'verification'
testClassesDirs = sourceSets.functionalTest.output.classesDirs
classpath = sourceSets.functionalTest.runtimeClasspath
mustRunAfter test
}
dependencies {
implementation gradleApi()
testImplementation 'org.spockframework:spock-core:1.3-groovy-2.5'
functionalTestImplementation gradleTestKit()
}
test {
useJUnit()
}
tasks.named('check') {
dependsOn(functionalTest)
}
license {
include '**/*.java'
include '**/*.groovy'
}
task sourceJar(type: Jar) {
archiveClassifier = 'sources'
from sourceSets.main.allSource
}
task groovydocJar(type: Jar, dependsOn: groovydoc) {
archiveClassifier = 'groovydoc'
from groovydoc.destinationDir
}
gradlePlugin {
plugins {
licenserPlugin {
id = 'org.cadixdev.licenser'
implementationClass = 'org.cadixdev.gradle.licenser.Licenser'
}
}
}
pluginBundle {
website = 'https://www.cadixdev.org/'
vcsUrl = 'https://github.com/CadixDev/licenser'
description = project.description
tags = ['license']
plugins {
licenserPlugin {
id = 'org.cadixdev.licenser'
displayName = 'licenser'
}
}
}