Skip to content
Snippets Groups Projects

Change sass compiler

Merged
Cédric Willekensrequested to merge
update-sass-compiler into development
All threads resolved!
1 file
+ 15
20
Compare changes
  • Side-by-side
  • Inline
+ 15
20
@@ -60,8 +60,7 @@ plugins {
id("com.diffplug.gradle.spotless").version("3.27.2")
// Sass stylesheet plugins
id("com.github.salomonbrys.gradle.sass").version("1.2.0")
id("com.unclezs.gradle.sass").version("1.0.10")
}
sourceSets {
@@ -141,24 +140,22 @@ springBoot {
}
sass {
download {
version = "1.26.3"
downloadBaseUrl = "https://github.com/sass/dart-sass/releases/download"
}
cssPath = "static/css"
sassPath = "scss"
}
sassCompile {
outputDir = file("$rootDir/public/css")
style = com.github.salomonbrys.gradle.sass.SassTask.Style.COMPRESSED
exclude {
!it.path.endsWith(".scss")
}
}
tasks.named("sassCompile") {
dependsOn("copyBootstrap")
}
//sassCompile {
// outputDir = file("$rootDir/public/css")
// style = com.github.salomonbrys.gradle.sass.SassTask.Style.COMPRESSED
//
// exclude {
// !it.path.endsWith(".scss")
// }
//}
//
//tasks.named("sassCompile") {
// dependsOn("copyBootstrap")
//}
/////// TASKS ///////
val jacocoTestReport by tasks.getting(JacocoReport::class) {
@@ -269,12 +266,10 @@ tasks.withType<Test>().configureEach {
}
tasks.named("processResources") {
dependsOn("sassCompile")
dependsOn("copyLogo")
}
tasks.withType<org.springframework.boot.gradle.tasks.bundling.BootJar>().configureEach {
dependsOn("sassCompile")
dependsOn("copyLogo")
bootInf {
into("classes/static/css") {
Loading