File tree 2 files changed +35
-5
lines changed
2 files changed +35
-5
lines changed Original file line number Diff line number Diff line change @@ -15,15 +15,12 @@ buildscript {
15
15
}
16
16
}
17
17
18
- plugins {
19
- id ' com.jfrog.bintray' version ' 1.6'
20
- }
21
-
22
18
repositories {
23
19
jcenter()
24
20
}
25
21
26
22
apply plugin : ' kotlin'
23
+ apply plugin : ' com.github.johnrengelman.shadow'
27
24
28
25
sourceCompatibility = 1.8
29
26
targetCompatibility = sourceCompatibility
@@ -73,6 +70,34 @@ test {
73
70
include ' **/*Test.class'
74
71
}
75
72
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
+
76
101
task wrapper (type : Wrapper ) {
77
102
gradleVersion = ' 4.10'
78
103
}
Original file line number Diff line number Diff line change 1
- groupId =org.jetbrains.bio
1
+ org.gradle.configureondemand =true
2
+ org.gradle.parallel =true
3
+ kotlin.incremental =true
2
4
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
You can’t perform that action at this time.
0 commit comments