diff options
Diffstat (limited to 'buildscript/forge-1.7-mixin.gradle')
-rw-r--r-- | buildscript/forge-1.7-mixin.gradle | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/buildscript/forge-1.7-mixin.gradle b/buildscript/forge-1.7-mixin.gradle index fddc15b..9612084 100644 --- a/buildscript/forge-1.7-mixin.gradle +++ b/buildscript/forge-1.7-mixin.gradle @@ -7,9 +7,21 @@ repositories { } } +def embedMixin = !project.hasProperty("nomixin"); + +if(!embedMixin){ + project.version += "+nomixin" +} + dependencies { - embed('org.spongepowered:mixin:0.7.11-SNAPSHOT'){ - setTransitive false + if(embedMixin){ + embed('org.spongepowered:mixin:0.7.11-SNAPSHOT'){ + setTransitive false + } + } else { + compile('org.spongepowered:mixin:0.7.11-SNAPSHOT'){ + setTransitive false + } } } @@ -39,4 +51,4 @@ afterEvaluate { reobf { addExtraSrgFile outSrgFile -}
\ No newline at end of file +} |