ComputerCraft

ComputerCraft

21M Downloads

Publish the API to a Maven repo

josephcsible opened this issue ยท 3 comments

commented

We should publish the ComputerCraft API to a Maven repository to make it easier for other mods to use it.

commented

For reference, to make an api jar, you can use something like this (just need to change the include line)

task apiJar(type: Jar) {
    classifier "api"
    dependsOn "sourceMainJava"
    include 'path/to/api/**'
    from sourceSets.main.java.srcDirs
    from sourceSets.main.output
}

artifacts {
    archives apiJar
}
commented

It's worth noting that https://cc.crzd.me has a sort-of-Maven repository running, which one is free to depend on. That's what OpenComputers and Plethora do:

repositories {
  maven { url "https://cc.crzd.me/maven/" }
}
dependencies {
  compile "dan200.computercraft:ComputerCraft:1.81-build3"
}

Obviously having an official repository would be better, but this is a start.

commented

Even just having the api artifact in the build.gradle would help; I have no issues hosting a copy of it for projects I'm a part of