-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle
82 lines (65 loc) · 2 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
plugins {
id 'java-gradle-plugin'
id 'com.gradle.plugin-publish' version '0.20.0'
}
repositories {
mavenCentral()
}
def javaVersion = JavaVersion.VERSION_1_8
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
configurations {
functionalTestImplementation.extendsFrom testImplementation
functionalTestRuntimeOnly.extendsFrom testRuntimeOnly
}
dependencies {
implementation 'de.undercouch:gradle-download-task:5.0.1'
compileOnly 'org.projectlombok:lombok:1.18.22'
annotationProcessor 'org.projectlombok:lombok:1.18.22'
testImplementation 'org.assertj:assertj-core:3.22.0'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
functionalTestImplementation 'com.github.tomakehurst:wiremock-jre8:2.32.0'
functionalTestImplementation 'org.apache.commons:commons-compress:1.21'
}
test {
useJUnitPlatform()
}
version '1.5.2-SNAPSHOT'
group 'io.miret.etienne.gradle'
pluginBundle {
website = 'https://github.com/EtienneMiret/sass-gradle-plugin'
vcsUrl = 'https://github.com/EtienneMiret/sass-gradle-plugin'
tags = ['sass', 'scss']
}
gradlePlugin {
plugins {
sass {
id = 'io.miret.etienne.sass'
displayName = 'Sass Compile'
description = 'A Gradle plugin to compile scss files using the official Dart Sass compiler.'
implementationClass = 'io.miret.etienne.gradle.sass.SassGradlePlugin'
}
}
}
sourceSets {
functionalTest {
}
}
gradlePlugin.testSourceSets(sourceSets.functionalTest)
task functionalTest(type: Test) {
testClassesDirs = sourceSets.functionalTest.output.classesDirs
classpath = sourceSets.functionalTest.runtimeClasspath
useJUnitPlatform()
}
check {
dependsOn(tasks.functionalTest)
}
javadoc {
failOnError false
}
publishPlugins {
if (JavaVersion.current() != javaVersion) {
throw new GradleException ("This build must be ran with Java ${javaVersion}.")
}
}