Package: simplyhtml / 0.17.3+dfsg1-1

01_build.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
Description: patch gradle build system for Debian:
  generate classpath for SimplyHTML.jar from gradle dependency information,
  generate POM for maven-repo-helper
Author: Felix Natter <fnatter@gmx.net>
Forwarded: not-needed
Last-Update: 2016-07-10
--- a/build.gradle
+++ b/build.gradle
@@ -1,10 +1,11 @@
-plugins {
-    id "com.jfrog.bintray" version "1.6"
-}
+//plugins {
+//    id "com.jfrog.bintray" version "1.6"
+//}
 
 apply plugin: 'java'
 apply plugin: 'eclipse'
-apply plugin: 'maven-publish'
+//apply plugin: 'maven-publish'
+apply plugin: 'maven'
 
 group 'com.lightdev.app.shtm.simplyhtml'
 version = '0.17.3'
@@ -13,24 +14,8 @@
 sourceCompatibility='1.7'
 
 repositories {
-    jcenter()
-	maven { url "http://dl.bintray.com/freeplane/freeplane" } 
-}
-
-bintray {
-    user = System.getenv('BINTRAY_USER')
-    key = System.getenv('BINTRAY_KEY')
-	publications = ['simplyhtml'] 
-	pkg {
-        repo = 'freeplane'
-        name = 'simplyhtml'
-        userOrg = 'freeplane'
-        licenses = ['GPL-3.0', 'GPL-2.0']
-        vcsUrl = 'https://github.com/dpolivaev/simplyhtml.git'
-		version {
-                name = project.version
-		}
-    }
+    //jcenter()
+    //	maven { url "http://dl.bintray.com/freeplane/freeplane" }
 }
 
 dependencies {
@@ -58,13 +43,22 @@
 
 // help.jar
 task helpJar(type: Jar) {
-	baseName = 'SimplyHTMLHelp'
+    baseName = 'SimplyHTMLHelp'
     from(sourceSets.main.output) {  
         include "com/lightdev/app/shtm/help/**" 
         project.ext.helpExcludes.addAll(includes)
     }  
 }
 
+def rename(String jarName) {
+    return jarName.replace('javahelp.jar', 'jhall.jar')
+}
+
+def removeVersionFrom(String jarName) {
+    final int lastMinus = jarName.lastIndexOf('-')
+    return jarName.substring(0, lastMinus) + '.jar'
+}
+
 // lib.jar
 task mainJar(type: Jar, dependsOn: classes) {  
 	baseName = 'SimplyHTML'
@@ -72,8 +66,8 @@
         exclude project.ext.helpExcludes
     }
 	manifest {
-	def classPath = (configurations.compile.collect { it.name } +
-                   helpJar.outputs.files.collect { it.name }).join(' ')
+	def classPath = (configurations.compile.collect { rename(removeVersionFrom(it.name)) } +
+                   helpJar.outputs.files.collect { removeVersionFrom(it.name) }).join(' ')
     attributes(
 		'Implementation-Title': project.name,
         'Implementation-Version': project.version,
@@ -89,9 +83,7 @@
     from sourceSets.main.allSource
 }
 
-build.dependsOn mainJar
-build.dependsOn javadoc
-
+/*
 publishing {
     publications {
         simplyhtml(MavenPublication) {
@@ -104,6 +96,26 @@
         }
     }
 }
+*/
+
+task createPom {
+    doLast {
+        pom {
+	        artifactId = 'SimplyHTML'
+            project {
+                inceptionYear '2011'
+                licenses {
+                    license {
+                        name 'GNU General Public License, Version 2'
+                        url 'http://www.gnu.org/licenses/gpl-2.0.html'
+                        distribution 'repo'
+                    }
+                }
+            }
+        }.writeTo("pom.xml")
+    }
+}
+
 
 javadoc {
     enabled = true
@@ -111,4 +123,9 @@
     failOnError = false
 }
 
+build.dependsOn mainJar
+build.dependsOn helpJar
+build.dependsOn javadoc
+build.dependsOn createPom
+
 apply from: './dist.gradle'
\ No newline at end of file