Merge pull request #8 from XDjackieXD/master

add maven publish target
This commit is contained in:
Ellpeck 2018-11-14 22:48:00 +01:00 committed by GitHub
commit 59ecaf969f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 0 deletions

View file

@ -15,6 +15,10 @@ version = "b2"
group = "de.ellpeck.naturesaura" group = "de.ellpeck.naturesaura"
archivesBaseName = "NaturesAura" archivesBaseName = "NaturesAura"
if(hasProperty('buildnumber')){
version = "${version}-${this.properties['buildnumber']}"
}
sourceCompatibility = targetCompatibility = '1.8' sourceCompatibility = targetCompatibility = '1.8'
compileJava { compileJava {
sourceCompatibility = targetCompatibility = '1.8' sourceCompatibility = targetCompatibility = '1.8'
@ -66,3 +70,23 @@ processResources {
exclude 'mcmod.info' exclude 'mcmod.info'
} }
} }
apply plugin: 'maven-publish'
jar {
}
publishing {
publications {
mavenJava(MavenPublication) {
artifact jar
}
}
repositories {
maven {
// url "file:///srv/nginx/maven"
url "file:///tmp/maven"
}
}
}

0
gradlew vendored Normal file → Executable file
View file