Ladysnake/Automatone

Cant import automatone to my project

Closed this issue · 1 comments

d4annn commented

Im trying to import automatone to my minecraft mod but i cant find any way to do it.
modImplementation urlFile("src/lib/automatone-0.9.1", 'automatone-0.9.1', "1.20.1") <-- i implement it in this way

this is the method:
def urlFile = { url, name, version -> File file = new File("$rootDir/lib/${name}-${version}.jar") file.parentFile.mkdirs() if (!file.exists()) { new URL(url).withInputStream { downloadStream -> file.withOutputStream { fileOut -> fileOut << downloadStream } } } return [name: name, version: version] }
image

Uuuh, yeah I guess that's on me for not giving instructions. You should first add our repository to your repositories section in build.gradle (create it if it does not exist) :

repositories {
        maven { repo ->
            repo.name = "Ladysnake Mods"
            repo.setUrl("https://maven.ladysnake.org/releases")
        }
}

then add it to your dependencies :

modImplementation("io.github.ladysnake:automatone:0.9.1")

However, note that the latest version is not for 1.20.1 yet.