forked from hltj/kotlinx.coroutines-cn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
28 lines (24 loc) · 856 Bytes
/
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
/*
* Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
apply plugin: "com.github.johnrengelman.shadow"
dependencies {
compileOnly "junit:junit:$junit_version"
compile "net.bytebuddy:byte-buddy:$byte_buddy_version"
compile "net.bytebuddy:byte-buddy-agent:$byte_buddy_version"
}
jar {
manifest {
attributes "Premain-Class": "kotlinx.coroutines.debug.AgentPremain"
attributes "Can-Redefine-Classes": "true"
}
}
shadowJar {
classifier null
// Shadow only byte buddy, do not package kotlin stdlib
dependencies {
include(dependency("net.bytebuddy:byte-buddy:$byte_buddy_version"))
include(dependency("net.bytebuddy:byte-buddy-agent:$byte_buddy_version"))
}
relocate 'net.bytebuddy', 'kotlinx.coroutines.repackaged.net.bytebuddy'
}