Package: picard-tools / 2.8.1+dfsg-1

10-build.xml.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
Description: Modifies the upstream build system.
Author: Vincent Danjean <Vincent.Danjean@ens-lyon.org>
Forwarded: not-needed
Last-Updated: 2016-07-07
--- a/build.gradle
+++ b/build.gradle
@@ -12,13 +12,7 @@ plugins {
     id "java"
     id 'maven'
     id 'signing'
-    id 'jacoco'
     id 'application'
-    id 'com.palantir.git-version' version '0.5.1'
-    id 'com.github.johnrengelman.shadow' version '1.2.3'
-    id "com.github.kt3k.coveralls" version '2.6.3'
-    id 'org.ajoberstar.grgit' version '1.4.2'
-    id 'org.ajoberstar.github-pages' version '1.4.2'
 }
 
 mainClassName = "picard.cmdline.PicardCommandLine"
@@ -31,22 +25,6 @@ repositories {
     }
 }
 
-jacocoTestReport {
-    dependsOn test
-    group = "Reporting"
-    description = "Generate Jacoco coverage reports after running tests."
-    additionalSourceDirs = files(sourceSets.main.allJava.srcDirs)
-
-    reports {
-        xml.enabled = true // coveralls plugin depends on xml format report
-        html.enabled = true
-    }
-}
-
-jacoco {
-    toolVersion = "0.7.5.201505241946"
-}
-
 final htsjdkVersion = System.getProperty('htsjdk.version', '2.8.0')
 
 dependencies {
@@ -60,9 +38,18 @@ dependencies {
 sourceCompatibility = 1.8
 targetCompatibility = 1.8
 
+def getDebianVersion() {
+    def dpkgStdOut = new ByteArrayOutputStream()
+    exec {
+        commandLine "dpkg-parsechangelog", "-S", "Version"
+        standardOutput = dpkgStdOut
+    }
+    return dpkgStdOut.toString().trim().replaceFirst(/(-gradle)?([+]dfsg[.0-9]*)?-[^-]+$/, "")
+}
+
 final isRelease = Boolean.getBoolean("release")
-final gitVersion = gitVersion().replaceAll(".dirty", "")
-version = isRelease ? gitVersion : gitVersion + "-SNAPSHOT"
+final debianVersion = getDebianVersion()
+version = debianVersion
 
 logger.info("build for version:" + version)
 group = 'com.github.broadinstitute'
@@ -323,19 +310,3 @@ task copyJavadoc(dependsOn: 'javadoc', t
     from 'build/docs/javadoc'
     into "$htmlDir/javadoc"
 }
-
-task updateGhPages(dependsOn: ['copyJavadoc', 'documentAll']){
-  outputs.dir htmlDir
-}
-
-updateGhPages.finalizedBy publishGhPages
-
-githubPages {
-  repoUri = 'git@github.com:broadinstitute/picard.git'
-  targetBranch = 'gh-pages'
-  deleteExistingFiles = false
-  pages {
-    from htmlDir
-    into '.'
-  }
-}
--- /dev/null
+++ b/gradle.properties
@@ -0,0 +1 @@
+rootName=picard