Skip to content

Commit

Permalink
Attempt on adding maven
Browse files Browse the repository at this point in the history
  • Loading branch information
GirafiStudios committed Sep 20, 2016
1 parent ad6b931 commit a49f222
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions build.gradle
Expand Up @@ -11,6 +11,7 @@ buildscript {
}
}
apply plugin: 'net.minecraftforge.gradle.forge'
apply plugin: 'maven-publish'

ext.buildnumber=""
if (System.getenv().BUILD_NUMBER) {
Expand Down Expand Up @@ -46,6 +47,23 @@ processResources {
}
}

publishing {
tasks.publish.dependsOn 'build'
publications {
mavenJava(MavenPublication) {
artifactId 'BetterTitleScreen'
artifact jar
}
}
repositories {
if (project.hasProperty('maven_repo')) {
maven { url maven_repo }
} else {
mavenLocal()
}
}
}

task deobfJar(type: Jar) {
from sourceSets.main.output
classifier = 'dev'
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
@@ -1,4 +1,4 @@
minecraft_version=1.10.2
forge_version=12.18.0.2002-1.10.0
forge_version=12.18.1.2092
mappings_version=snapshot_20160518
mod_version=1.2e

0 comments on commit a49f222

Please sign in to comment.