forked from etiennestuder/gradle-rocker-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
62 lines (53 loc) · 1.65 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
plugins {
id 'nu.studer.plugindev' version '2.0'
id 'nu.studer.credentials' version '2.1'
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-M4-groovy-2.5'
testImplementation 'org.spockframework:spock-junit4:2.0-M4-groovy-2.5'
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
plugindev {
pluginDescription 'Gradle plugin that integrates the Rocker template engine.'
pluginImplementationClass 'nu.studer.gradle.rocker.RockerPlugin'
pluginLicenses 'Apache-2.0'
pluginTags 'gradle', 'plugin', 'rocker'
authorId 'etiennestuder'
authorName 'Etienne Studer'
authorEmail 'etienne@studer.nu'
projectUrl 'https://github.com/etiennestuder/gradle-rocker-plugin'
projectInceptionYear '2018'
done()
}
bintray {
user = credentials.BINTRAY_USER
key = credentials.BINTRAY_API_KEY
pkg.repo = 'gradle-plugins'
dryRun = false
}
def testAll = tasks.create('testAll') {
description = 'Runs the Gradle cross-version tests.'
group = 'Verification'
}
List<String> testedGradleVersions = []
testedGradleVersions << "7.1"
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)
}
}
tasks.withType(Test).configureEach {
maxParallelForks = 2
useJUnitPlatform()
}