-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
73 lines (63 loc) · 1.42 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
allprojects {
repositories {
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
}
subprojects {
buildscript {
repositories {
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlin_version}"
classpath "gradle.plugin.io.gitlab.arturbosch.detekt:detekt-gradle-plugin:${detekt_version}"
}
}
}
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:5.2.0'
}
}
apply plugin: 'application'
apply plugin: 'com.github.johnrengelman.shadow'
mainClassName = "pirarucu.MainKt"
dependencies {
compile project('pirarucu-jvm')
}
jar {
manifest {
attributes("Implementation-Title": "Gradle",
"Implementation-Version": version,
"Main-Class": "pirarucu.MainKt"
)
}
}
startShadowScripts {
optsEnvironmentVar = 'PIRARUCU'
}
shadowDistZip {
baseName = project.name + '-jvm'
into(project.name + '-jvm-' + version) {
from '.'
include 'bin/*'
}
}
shadowDistTar {
baseName = project.name + '-jvm'
}
shadowJar {
mainClassName = "pirarucu.MainKt"
baseName = project.name
classifier = ''
archiveVersion = ''
}