diff --git a/build.gradle b/build.gradle index 52ab75ac..b391750d 100644 --- a/build.gradle +++ b/build.gradle @@ -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 @@ -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" + } + } + } +} diff --git a/jitpack.yml b/jitpack.yml new file mode 100644 index 00000000..19c659dc --- /dev/null +++ b/jitpack.yml @@ -0,0 +1,4 @@ +jdk: + - openjdk8 +install: + - ./gradlew setupCiWorkspace publishToMavenLocal