-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
77 lines (69 loc) · 2.38 KB
/
build.gradle.kts
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
import com.jfrog.bintray.gradle.BintrayExtension
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.gradle.kotlin.dsl.registering
import org.gradle.api.tasks.bundling.Jar
import org.gradle.api.publish.maven.MavenPublication
import org.gradle.kotlin.dsl.create
import org.gradle.kotlin.dsl.get
plugins {
kotlin("jvm") version "1.7.0"
id("application")
id("com.jfrog.bintray") version "1.8.1"
id("com.github.johnrengelman.shadow") version "8.1.1"
id("maven-publish")
java
}
group = "com.genomealmanac"
version = "2.2.3"
repositories {
mavenLocal()
jcenter()
maven {
url = uri("https://maven.pkg.github.com/weng-lab/krews")
credentials {
username = project.findProperty("gpr.user") as String? ?: System.getenv("USERNAME") ?: ""
password = project.findProperty("gpr.key") as String? ?: System.getenv("TOKEN") ?: ""
}
}
}
dependencies {
implementation(kotlin("stdlib-jdk8"))
implementation("io.krews", "krews", "0.14.1")
implementation("com.squareup.okhttp3", "okhttp", "3.12.1")
implementation("com.squareup.moshi", "moshi-kotlin", "1.8.0")
implementation("io.projectreactor", "reactor-core", "3.2.6.RELEASE")
implementation("io.github.microutils", "kotlin-logging", "1.6.10")
testImplementation("org.junit.jupiter", "junit-jupiter", "5.4.0")
testImplementation("org.assertj", "assertj-core", "3.11.1")
}
val combinedJar = tasks.register<Jar>("combinedJar") {
archiveClassifier.set("combined")
archiveBaseName.set("base")
destinationDirectory.set(file("build"))
from(sourceSets["main"].output)
from(sourceSets["main"].allSource)
}
publishing {
publications {
val publication = create<MavenPublication>("motif-workflow") {
from(components["java"])
}
}
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/weng-lab/motif-workflow")
credentials {
username = project.findProperty("gpr.user") as String? ?: System.getenv("USERNAME") ?: ""
password = project.findProperty("gpr.user") as String? ?: System.getenv("TOKEN") ?: ""
}
}
}
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
application {
mainClass.set("AppKt")
}