Description: removing parts of build.gradle that are not useful for a Debian build Adding the "-g" flag when building the C library, to get debug symbols. Also renaming the project to "gatk-fermilite". Author: Pierre Gruet Forwarded: not-needed Last-Update: 2022-03-24 --- a/build.gradle +++ b/build.gradle @@ -1,14 +1,6 @@ -buildscript { - repositories { - jcenter() - } -} - plugins { id 'java' id 'maven' - id 'signing' - id 'com.palantir.git-version' version '0.5.1' //version helper } @@ -20,8 +12,6 @@ testCompile 'org.testng:testng:6.9.6' } -final isRelease = Boolean.getBoolean("release") -version = (isRelease ? gitVersion() : gitVersion() + "-SNAPSHOT").replaceAll(".dirty", "") group = "org.broadinstitute" String cpath = "src/main/c" String libname = "libfml" @@ -49,8 +39,8 @@ processResources { dependsOn buildFermiLib - from cpath - include "$libname*" +// from cpath +// include "$libname*" } test { @@ -82,86 +72,3 @@ from sourceSets.main.allSource classifier = 'sources' } - -/** - *This specifies what artifacts will be built and uploaded when performing a maven upload. - */ -artifacts { - archives jar - archives javadocJar - archives sourcesJar -} - -/** - * Sign non-snapshot releases with our secret key. This should never need to be invoked directly. - */ -signing { - required { isRelease && gradle.taskGraph.hasTask("uploadArchives") } - sign configurations.archives -} - -def assertLibExists(lib){ - if ( ! file(lib).exists()){ - throw new GradleException("Could not perform a maven release because $lib is missing. You must include both OSX and Linux binaries to release. " + - "You can run scripts/build_both_dylib_and_so.sh to build both if you are on a Broad Institute connected mac.") - } -} - -/** - * Upload a release to sonatype. You must be an authorized uploader and have your sonatype - * username and password information in your gradle properties file. See the readme for more info. - * - * For releasing to your local maven repo, use gradle install - */ -uploadArchives { - doFirst { - println "Attempting to upload version:$version" - if (isRelease){ - assertLibExists("$cpath/${libname}.Linux.so") - assertLibExists("$cpath/${libname}.Darwin.dylib") - } - } - repositories { - mavenDeployer { - beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) } - - repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") { - authentication(userName: project.findProperty("sonatypeUsername"), password: project.findProperty("sonatypePassword")) - } - - snapshotRepository(url: "https://artifactory.broadinstitute.org/artifactory/libs-snapshot-local/") { - authentication(userName: System.env.ARTIFACTORY_USERNAME, password: System.env.ARTIFACTORY_PASSWORD) - } - - pom.project { - name 'gatk-fermilite-jni' - packaging 'jar' - description 'java Bindings for the fermi-lite assembler' - url 'http://github.com/broadinstitute/gatk-fermlite-jni' - - scm { - url 'scm:git@github.com:broadinstitute/gatk-fermlite-jni.git' - connection 'scm:git@github.com:broadinstitute/gatk-fermilite-jni.git' - developerConnection 'scm:git@github.com:broadinstitute/gatk-fermilite-jni.git' - } - - developers { - developer { - id = "gatkdev" - name = "GATK Development Team" - email = "gatk-dev-public@broadinstitute.org" - } - } - - licenses { - license { - name 'BSD 3-Clause' - url 'https://github.com/broadinstitute/gatk-fermilite-jni/blob/master/LICENSE.TXT' - distribution 'repo' - } - } - } - } - } -} - --- a/src/main/c/Makefile +++ b/src/main/c/Makefile @@ -3,7 +3,7 @@ endif JNI_INCLUDE_DIRS=$(addprefix -I,$(shell find $(JAVA_HOME)/include -type d)) -CFLAGS=-O2 -Wall -fPIC $(JNI_INCLUDE_DIRS) +CFLAGS=-g -O2 -Wall -fPIC $(JNI_INCLUDE_DIRS) CC=gcc #OS-dependent extension lookup --- a/settings.gradle +++ b/settings.gradle @@ -1 +1 @@ -rootProject.name = "gatk-fermilite-jni" +rootProject.name = "gatk-fermilite"