Skip to content

Commit

Permalink
publish to jitpack
Browse files Browse the repository at this point in the history
  • Loading branch information
DaMatrix committed Dec 20, 2020
1 parent ffe547e commit 9af4b52
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
20 changes: 20 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ buildscript {
apply plugin: "net.minecraftforge.gradle.forge"
//Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.
apply plugin: "com.github.johnrengelman.shadow"
apply plugin: "maven-publish"

version = "0.1"
group = "io.github.terra121" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
Expand Down Expand Up @@ -91,3 +92,22 @@ task relocateShadowJar(type: com.github.jengelman.gradle.plugins.shadow.tasks.Co
}
shadowJar.dependsOn relocateShadowJar

publishing {
publications {
maven(MavenPublication) {
groupId = "net.buildtheearth"
artifactId = "terraplusplus"
version = project.version

from components.java

artifacts.clear()
artifact(shadowJar) {
classifier = ""
}
artifact sourceJar {
classifier "sources"
}
}
}
}
4 changes: 4 additions & 0 deletions jitpack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
jdk:
- openjdk8
install:
- ./gradlew setupCiWorkspace publishToMavenLocal

0 comments on commit 9af4b52

Please sign in to comment.