diff --git a/.gitignore b/.gitignore index e6908c2..23086ec 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,7 @@ .gradle build -.idea \ No newline at end of file +.idea +/.settings +/.classpath +/.project diff --git a/build.gradle b/build.gradle index 95732fc..2ac85ce 100644 --- a/build.gradle +++ b/build.gradle @@ -1,9 +1,11 @@ plugins { id 'java-library' + id 'maven-publish' } repositories { + mavenLocal() mavenCentral() } @@ -15,5 +17,22 @@ dependencies { group = "com.github.dnault" version = "0.1.0-SNAPSHOT" +java { + withJavadocJar() + withSourcesJar() +} + +publishing { + publications { + maven(MavenPublication) { + groupId = 'com.github.dnault' + artifactId = 'libresample4j' + version = '0.1.0-SNAPSHOT' + + from components.java + } + } +} + targetCompatibility = '1.7' sourceCompatibility = '1.7' \ No newline at end of file