-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
42 lines (35 loc) · 1.06 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
wrapper {
gradleVersion = '4.6'
distributionType = org.gradle.api.tasks.wrapper.Wrapper.DistributionType.ALL
}
allprojects {
repositories {
jcenter()
}
apply plugin: 'java'
compileJava {
inputs.property("moduleName", 'eu.mhavlik.agent.jdk9liquibase')
doFirst {
options.compilerArgs = ['--module-path', classpath.asPath]
classpath = files()
}
}
jar.doFirst {
manifest {
def manifestCp = configurations.runtime.files.collect {
"${it.name}"
}.join(' ')
attributes(
"Created-By": "Michael Havlik",
"Premain-Class": "eu.mhavlik.agent.LiquibasePatcher",
"Boot-Module-Path": manifestCp,
"Can-Redefine-Classes": "true",
"Can-Retransform-Classes": "true",
"Implementation-Version": "1.0"
)
}
}
dependencies {
compile group: 'net.bytebuddy', name: 'byte-buddy', version: '1.7.6'
}
}