-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
54 lines (44 loc) · 1.53 KB
/
build.gradle
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
plugins {
id "application"
id "org.jetbrains.kotlin.jvm" version "1.9.22"
id "com.github.johnrengelman.shadow" version "8.1.1"
}
repositories {
mavenCentral()
maven {
url "https://maven.scijava.org/content/groups/public"
}
}
def kotlinVersion = "1.9.22"
def DepVersionCommonsMath = "3.1.1"
def DepVersionJRuby = "1.7.0"
def VersionInfoFilename = "src/main/resources/edu/stanford/cfuller/imageanalysistools/resources/version_info.xml"
def bioFormatsVersion = "6.13.0"
def Version = "7.0.0"
task updateVersionInfo(type: Exec) {
commandLine "sh", "-c", (
"echo \"<library version=\\\"$Version\\\" commit=\\\"`git log -1 --pretty=format:%H`\\\">" +
"</library>\" > $VersionInfoFilename")
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion"
implementation "org.slf4j:slf4j-simple:1.7.21"
testImplementation "junit:junit:4.10"
testImplementation "io.kotlintest:kotlintest:1.3.7"
implementation "org.apache.commons:commons-math3:$DepVersionCommonsMath"
implementation "org.jruby:jruby:$DepVersionJRuby"
implementation "javax.xml.bind:jaxb-api:2.3.1"
implementation "net.imagej:ij:1.54h"
implementation "ome:formats-bsd:$bioFormatsVersion"
implementation "ome:formats-gpl:$bioFormatsVersion"
}
build.dependsOn updateVersionInfo
mainClassName = "edu.stanford.cfuller.analysistoolsinterface.Main"
jar {
manifest {
attributes "Main-Class": mainClassName
}
}
test {
environment "PROJECT_ROOT", "$projectDir"
}