Skip to content

Commit

Permalink
Ease migration to embedded sass 3.x
Browse files Browse the repository at this point in the history
see #915
  • Loading branch information
larsgrefer committed Oct 10, 2023
1 parent 3297ab4 commit b0898b7
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
package sass.embedded_protocol.EmbeddedSass;

import lombok.experimental.UtilityClass;

/**
* Delegate for the old OutputStyle FQN.
* <p>
* This should help builds to migrate to the new package.
*
* @author Lars Grefer
* @deprecated Migrate to {@link com.sass_lang.embedded_protocol.OutputStyle}
*/
@Deprecated
@UtilityClass
public final class OutputStyle {

/**
* @see com.sass_lang.embedded_protocol.OutputStyle#EXPANDED
* @deprecated Migrate to {@link com.sass_lang.embedded_protocol.OutputStyle#EXPANDED}
*/
@Deprecated
public static final com.sass_lang.embedded_protocol.OutputStyle EXPANDED = com.sass_lang.embedded_protocol.OutputStyle.EXPANDED;

/**
* @see com.sass_lang.embedded_protocol.OutputStyle#COMPRESSED
* @deprecated Migrate to {@link com.sass_lang.embedded_protocol.OutputStyle#COMPRESSED}
*/
@Deprecated
public static final com.sass_lang.embedded_protocol.OutputStyle COMPRESSED = com.sass_lang.embedded_protocol.OutputStyle.COMPRESSED;
}
4 changes: 3 additions & 1 deletion examples/embedded-sass/webjars/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import com.sass_lang.embedded_protocol.OutputStyle

apply plugin: "java"
apply plugin: "io.freefair.sass-java"

Expand All @@ -8,5 +10,5 @@ dependencies {
compileSass {
sourceMapEnabled = true
sourceMapEmbed = true
outputStyle = EXPANDED
outputStyle = OutputStyle.EXPANDED
}

0 comments on commit b0898b7

Please sign in to comment.