Skip to content

Commit

Permalink
Fixed(?) gradle.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vatuu committed Sep 14, 2019
1 parent c8e1a34 commit 10d83d5
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ group = project.maven_group
repositories {
mavenCentral()
maven { url "https://minecraft.curseforge.com/api/maven/" }
maven { url 'http://maven.sargunv.s3-website-us-west-2.amazonaws.com/' }
}
minecraft {}

Expand All @@ -42,18 +41,17 @@ processResources {

tasks.withType(JavaCompile) { options.encoding = "UTF-8" }
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = "sources"
classifier "sources"
from sourceSets.main.allSource
}
task apiJar(type: Jar, dependsOn: classes){
classifier = "api-dev"
classifier "api"
from(sourceSets.main.output){
include "dev/vatuu/tesseract/api/**"
}
}
task remapApiJar(type: RemapJarTask, dependsOn: apiJar){
input = apiJar.archivePath
output = file("build/libs/tesseract-" + version + "-api.jar")
}
jar {
from "LICENSE"
Expand All @@ -63,20 +61,17 @@ jar {
publishing {
publications {
mavenJava(MavenPublication) {
artifact(remapJar.output) {
artifact(remapJar) {
builtBy remapJar
}
artifact(sourcesJar) {
builtBy remapSourcesJar
}
artifact(remapApiJar.output){
classifier = "api"
artifact(apiJar){
builtBy remapApiJar
}
}
}

repositories {
mavenLocal()
}
repositories { mavenLocal() }
}

0 comments on commit 10d83d5

Please sign in to comment.