ComputerCraft icon indicating copy to clipboard operation
ComputerCraft copied to clipboard

Publish the API to a Maven repo

Open josephcsible opened this issue 7 years ago • 3 comments

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

josephcsible avatar Sep 26 '17 03:09 josephcsible

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
}

thiakil avatar Sep 26 '17 03:09 thiakil

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.

SquidDev avatar Sep 26 '17 06:09 SquidDev

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

thiakil avatar Sep 26 '17 06:09 thiakil