Permalink
Browse files

add basic api jar support

  • Loading branch information...
thiakil committed Oct 1, 2017
1 parent 19e4c03 commit a60f4e3333546fb65de2868739d0043873f1dd38
Showing with 52 additions and 0 deletions.
  1. +52 −0 build.gradle
View
@@ -109,3 +109,55 @@ gradle.projectsEvaluated {
}
}
task apiJar(type: Jar) {
classifier "api"
dependsOn "sourceMainJava"
include 'dan200/computercraft/api/**'
from sourceSets.main.java.srcDirs
from sourceSets.main.output
}
artifacts {
archives apiJar
}
apply plugin: 'maven'
apply plugin: 'maven-publish'
uploadArchives {
if(System.getenv("LOCAL_MAVEN") != null) {
repositories {
mavenDeployer {
repository(url: "file://"+System.getenv("LOCAL_MAVEN"))
pom {
groupId = project.group
version = project.version
if (System.getenv("MAVEN_ARTIFACT") != null) {
artifactId = System.getenv("MAVEN_ARTIFACT")
} else {
artifactId = "ComputerCraft"
}
project {
name "ComputerCraft"
packaging 'jar'
description 'Programmable Computers for Minecraft'
url 'https://github.com/dan200/ComputerCraft'
scm {
url 'https://github.com/dan200/ComputerCraft.git'
}
issueManagement {
system 'github'
url 'https://github.com/dan200/ComputerCraft/issues'
}
licenses {
license {
name 'ComputerCraft Public License'
distribution 'repo'
}
}
}
}
}
}
}
}

0 comments on commit a60f4e3

Please sign in to comment.