-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
50 lines (39 loc) · 856 Bytes
/
Copy pathbuild.gradle
File metadata and controls
50 lines (39 loc) · 856 Bytes
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
plugins {
id "java"
id "org.jetbrains.kotlin.jvm" version "1.4.10"
id "maven-publish"
}
group = "net.robinfriedli"
version = "1.4"
sourceCompatibility = "8"
targetCompatibility = "8"
compileJava.options.encoding = "UTF-8"
repositories {
mavenCentral()
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib"
testCompile "org.testng:testng:7.4.0"
}
test {
useTestNG()
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
jvmTarget = "1.8"
}
}
task sourceJar(type: Jar) {
classifier "sources"
from sourceSets.main.allJava
}
publishing {
publications {
maven(MavenPublication) {
groupId rootProject.group
artifactId "exec"
from(components.java)
artifact tasks.sourceJar
}
}
}