Description: change build system to disable maven upload, generate pom.xml
Author: Felix Natter <fnatter@gmx.net>
Forwarded: not-needed
Last-Update: 2016-04-07
--- a/build.gradle
+++ b/build.gradle
@@ -1,21 +1,22 @@
-plugins {
-    id "com.jfrog.bintray" version "1.6"
-}
+//plugins {
+//    id "com.jfrog.bintray" version "1.6"
+//}
 repositories {
     jcenter()
 }
 
 apply plugin: 'java'
 apply plugin: 'eclipse'
-apply plugin: 'maven-publish'
+apply plugin: 'maven'
 
 targetCompatibility='1.7'
 sourceCompatibility='1.7'
 
 group 'org.dpolivaev.mnemonicsetter'
 version='0.6'
+jar.baseName = 'mnemonicsetter'
 
-
+/*
 bintray {
     user = System.getenv('BINTRAY_USER')
     key = System.getenv('BINTRAY_KEY')
@@ -31,6 +32,7 @@ bintray {
 		}
     }
 }
+*/
 
 task sourceJar(type: Jar, dependsOn: classes) {
     classifier = 'sources'
@@ -42,6 +44,7 @@ task javadocJar(type: Jar, dependsOn: ja
     from javadoc.destinationDir
 }
 
+/*
 publishing {
     publications {
         mnemonicsetter(MavenPublication) {
@@ -59,6 +62,23 @@ publishing {
         maven { url "${project.gradle.gradleUserHomeDir}/local-artifacts" }
     }
 }
+*/
+
+task createPom << {
+    pom {
+        artifactId = 'mnemonicsetter'
+        project {
+            inceptionYear '2016'
+            licenses {
+                license {
+                    name 'The Apache Software License, Version 2.0'
+                    url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
+                    distribution 'repo'
+                }
+            }
+        }
+    }.writeTo("pom.xml")
+}
 
 dependencies {
 	testCompile 'junit:junit:4.12',
