forked from etiennestuder/gradle-rocker-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
70 lines (59 loc) · 1.75 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
plugins {
id 'nu.studer.plugindev' version '4.0'
id 'com.gradle.plugin-publish' version '0.15.0'
id 'org.nosphere.gradle.github.actions' version '1.2.0'
id 'groovy'
}
group = 'nu.studer'
version = '3.0.3-DEV'
dependencies {
testImplementation 'org.spockframework:spock-core:2.0-groovy-3.0'
}
tasks.withType(AbstractCompile).configureEach {
options.compilerArgs <<
"-Werror" <<
"-Xlint:all" <<
"-Xlint:-deprecation" // do not fail on deprecations introduced very lately in Gradle 7.1
}
tasks.withType(Test).configureEach {
maxParallelForks = 2
useJUnitPlatform()
}
def testAll = tasks.create('testAll') {
description = 'Runs the Gradle cross-version tests.'
group = 'Verification'
}
List<String> testedGradleVersions = []
testedGradleVersions << '7.2'
testedGradleVersions << '7.0.2'
testedGradleVersions << '6.9'
testedGradleVersions << '6.1.1'
testedGradleVersions.each { version ->
project.tasks.create("test_" + version.replaceAll("[^a-zA-Z0-9]", "_"), Test).with {
systemProperty 'testContext.gradleVersion', version
testAll.dependsOn(it)
}
}
gradlePlugin {
plugins {
pluginDevPlugin {
id = 'nu.studer.rocker'
implementationClass = 'nu.studer.gradle.rocker.RockerPlugin'
}
}
}
pluginBundle {
website = 'https://github.com/etiennestuder/gradle-rocker-plugin'
vcsUrl = 'https://github.com/etiennestuder/gradle-rocker-plugin'
description = 'Gradle plugin that integrates the Rocker template engine.'
tags = ['rocker']
plugins {
pluginDevPlugin {
displayName = 'gradle-rocker-plugin'
}
}
mavenCoordinates {
groupId = 'nu.studer'
artifactId = 'gradle-rocker-plugin'
}
}