Skip to content

Commit 197fa67

Browse files
committed
sources jar
1 parent dc3b8c2 commit 197fa67

File tree

2 files changed

+35
-5
lines changed

2 files changed

+35
-5
lines changed

build.gradle

+29-4
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,12 @@ buildscript {
1515
}
1616
}
1717

18-
plugins {
19-
id 'com.jfrog.bintray' version '1.6'
20-
}
21-
2218
repositories {
2319
jcenter()
2420
}
2521

2622
apply plugin: 'kotlin'
23+
apply plugin: 'com.github.johnrengelman.shadow'
2724

2825
sourceCompatibility = 1.8
2926
targetCompatibility = sourceCompatibility
@@ -73,6 +70,34 @@ test {
7370
include '**/*Test.class'
7471
}
7572

73+
task sourcesJar(type: Jar) {
74+
classifier = 'sources'
75+
from sourceSets.main.allSource
76+
}
77+
78+
artifacts {
79+
archives sourcesJar
80+
}
81+
82+
shadowJar {
83+
// File name: "$baseName-$version-$classifier.jar"
84+
baseName = 'span'
85+
version = "${version}.${project.buildCounter}"
86+
classifier = ''
87+
minimize {
88+
// Fix log4j:ERROR Could not instantiate class [org.apache.log4j.xml.DOMConfigurator]
89+
exclude(dependency('log4j:log4j:1.2.17'))
90+
}
91+
}
92+
93+
jar {
94+
manifest {
95+
attributes provider: 'gradle'
96+
attributes 'Application-Name': "SPAN $version"
97+
attributes 'Built-By': 'JetBrains Research TeamCity'
98+
}
99+
}
100+
76101
task wrapper(type: Wrapper) {
77102
gradleVersion = '4.10'
78103
}

gradle.properties

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
1-
groupId=org.jetbrains.bio
1+
org.gradle.configureondemand=true
2+
org.gradle.parallel=true
3+
kotlin.incremental=true
24
version=0.0.1
5+
# Project version, e.g. default for tools like SPAN peak analyzer and JBR genome browser
6+
# Can be overridden during build using `./gradlew -Pversion=1.0 my_task_name`
7+
buildCounter=build

0 commit comments

Comments
 (0)