Skip to content

Commit

Permalink
Store sass in a "$rootProject/.gradle/sass" subdirectory per subproje…
Browse files Browse the repository at this point in the history
…ct (#23)
  • Loading branch information
EtienneMiret committed Jun 30, 2023
1 parent 1a3b456 commit 60d5bfe
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import org.gradle.api.Project;

import java.io.File;
import java.nio.file.Path;

@Getter
@Setter
Expand All @@ -19,10 +20,14 @@ public class SassGradlePluginExtension {
private boolean autoCopy;

public SassGradlePluginExtension (Project project) {
Path projectPath = project.getRootDir()
.toPath()
.relativize(project.getProjectDir().toPath());
this.version = "1.54.0";
this.directory = project.getProjectDir ()
this.directory = project.getRootDir()
.toPath ()
.resolve (".gradle/sass")
.resolve(projectPath)
.toFile ();
this.baseUrl = "https://github.com/sass/dart-sass/releases/download";
this.autoCopy = true;
Expand Down

0 comments on commit 60d5bfe

Please sign in to comment.