diff --git a/build.gradle b/build.gradle index 957c7bb7..77aeaa43 100644 --- a/build.gradle +++ b/build.gradle @@ -89,6 +89,14 @@ task deobfJar(type: Jar) { classifier = 'deobf' } +// Create API jar with sources and compiled files +task apiJar(type: Jar) { + from sourceSets.main.allSource + from sourceSets.main.output + include 'com/cricketcraft/chisel/api/**/*' + classifier = 'api' +} + // Create source attachment for dev jar task sourcesJar(type: Jar) { from sourceSets.main.allJava @@ -98,6 +106,7 @@ task sourcesJar(type: Jar) { artifacts { archives deobfJar archives sourcesJar + archives apiJar } String getChangelogText() { @@ -130,5 +139,5 @@ curse { projectId = project.projectId changelog = System.getenv("CHANGELOG").equals("none") ? getChangelogText() : System.getenv("CHANGELOG") releaseType = 'release' - additionalArtifact deobfJar, sourcesJar + additionalArtifact deobfJar, sourcesJar, apiJar } diff --git a/src/main/java/com/cricketcraft/chisel/api/carving/package-info.java b/src/main/java/com/cricketcraft/chisel/api/carving/package-info.java new file mode 100644 index 00000000..4276c3bd --- /dev/null +++ b/src/main/java/com/cricketcraft/chisel/api/carving/package-info.java @@ -0,0 +1,7 @@ +@API(apiVersion = ChiselAPIProps.VERSION, owner = "Chisel", provides = "ChiselAPI|Carving") +package com.cricketcraft.chisel.api.carving; + +import com.cricketcraft.chisel.api.ChiselAPIProps; + +import cpw.mods.fml.common.API; +