Debian Codegraph @

debian/patches/build.patch

raw
1 Description: removing parts of build.gradle that are not useful for a Debian build
2 Author: Pierre Gruet <[email protected]>
3 Forwarded: not-needed
4 Last-Update: 2022-03-06
5
6 --- a/build.gradle
7 +++ b/build.gradle
8 @@ -1,14 +1,6 @@
9 -buildscript {
10 - repositories {
11 - jcenter()
12 - }
13 -}
14 -
15 plugins {
16 id 'java'
17 id 'maven'
18 - id 'signing'
19 - id 'com.palantir.git-version' version '0.5.1' //version helper
20 }
21
22 repositories {
23 @@ -19,8 +11,6 @@
24 testCompile 'org.testng:testng:6.9.6'
25 }
26
27 -final isRelease = Boolean.getBoolean("release")
28 -version = (isRelease ? gitVersion() : gitVersion() + "-SNAPSHOT").replaceAll(".dirty", "")
29 group = "org.broadinstitute"
30 String cpath = "src/main/c"
31 String libname = "libbwa"
32 @@ -45,8 +35,8 @@
33
34 processResources {
35 dependsOn buildBwaLib
36 - from cpath
37 - include "$libname*"
38 +// from cpath
39 +// include "$libname*"
40 }
41
42 test {
43 @@ -77,86 +67,3 @@
44 from sourceSets.main.allSource
45 classifier = 'sources'
46 }
47 -
48 -/**
49 - *This specifies what artifacts will be built and uploaded when performing a maven upload.
50 - */
51 -artifacts {
52 - archives jar
53 - archives javadocJar
54 - archives sourcesJar
55 -}
56 -
57 -/**
58 - * Sign non-snapshot releases with our secret key. This should never need to be invoked directly.
59 - */
60 -signing {
61 - required { isRelease && gradle.taskGraph.hasTask("uploadArchives") }
62 - sign configurations.archives
63 -}
64 -
65 -def assertLibExists(lib){
66 - if ( ! file(lib).exists()){
67 - throw new GradleException("Could not perform a maven release because $lib is missing. You must include both OSX and Linux binaries to release. " +
68 - "You can run scripts/build_both_dylib_and_so.sh to build both if you are on a Broad Institute connected mac.")
69 - }
70 -}
71 -
72 -/**
73 - * Upload a release to sonatype. You must be an authorized uploader and have your sonatype
74 - * username and password information in your gradle properties file. See the readme for more info.
75 - *
76 - * For releasing to your local maven repo, use gradle install
77 - */
78 -uploadArchives {
79 - doFirst {
80 - println "Attempting to upload version:$version"
81 - if (isRelease){
82 - assertLibExists("$cpath/${libname}.Linux.so")
83 - assertLibExists("$cpath/${libname}.Darwin.dylib")
84 - }
85 - }
86 - repositories {
87 - mavenDeployer {
88 - beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
89 -
90 - repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
91 - authentication(userName: project.findProperty("sonatypeUsername"), password: project.findProperty("sonatypePassword"))
92 - }
93 -
94 - snapshotRepository(url: "https://broadinstitute.jfrog.io/broadinstitute/libs-snapshot-local") {
95 - authentication(userName: System.env.ARTIFACTORY_USERNAME, password: System.env.ARTIFACTORY_PASSWORD)
96 - }
97 -
98 - pom.project {
99 - name 'gatk-bwamem-jni'
100 - packaging 'jar'
101 - description 'java bindings for the bwa-mem assembler'
102 - url 'http://github.com/broadinstitute/gatk-bwamem-jni'
103 -
104 - scm {
105 - url 'scm:[email protected]:broadinstitute/gatk-bwamem-jni.git'
106 - connection 'scm:[email protected]:broadinstitute/gatk-bwamem-jni.git'
107 - developerConnection 'scm:[email protected]:broadinstitute/gatk-bwamem-jni.git'
108 - }
109 -
110 - developers {
111 - developer {
112 - id = "gatkdev"
113 - name = "GATK Development Team"
114 - email = "[email protected]"
115 - }
116 - }
117 -
118 - licenses {
119 - license {
120 - name 'BSD 3-Clause'
121 - url 'https://github.com/broadinstitute/gatk-bwamem-jni/blob/master/LICENSE.TXT'
122 - distribution 'repo'
123 - }
124 - }
125 - }
126 - }
127 - }
128 -}
129 -