Commit 9988c847 authored by brizental's avatar brizental
Browse files

fixup! Do not download nimbusFml from the internet

parent 99009efb
Loading
Loading
Loading
Loading
+2 −10
Original line number Diff line number Diff line
@@ -89,16 +89,8 @@ abstract class NimbusAssembleToolsTask extends DefaultTask {

    @TaskAction
    void assembleTools() {
        if (!project.gradle.startParameter.isNetworkAllowed()) {
            String nimbusFmlPath = System.getenv("NIMBUS_FML")
            Path source
            if (nimbusFmlPath == null) {
                nimbusFmlPath = System.getProperty("nimbusFml")
                if (nimbusFmlPath == null) {
                    throw new GradleException("NIMBUS_FML and property nimbusFml are not defined.")
                }
            }
            source = Paths.get(nimbusFmlPath)
        if (project.gradle.startParameter.isOffline()) {
            Path source = System.getenv("NIMBUS_FML")
            Path dest = fmlBinary.get().asFile.toPath()
            Files.copy(source, dest, StandardCopyOption.REPLACE_EXISTING)