Add missing package-info file, add API jar task

This commit is contained in:
tterrag1098 committed 2015-01-15 03:32:58 -05:00
1 parent b268ebeca0
commit 19d2c161e2
2 files changed
+17 -1

No files matched your search

+10 -1
View File
@@ -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
}
@@ -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;