2018-12-27 17:54:23 +08:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
|
|
|
}
|
|
|
|
|
|
|
|
group 'com.ljsd'
|
|
|
|
|
|
|
|
sourceCompatibility = 1.8
|
|
|
|
|
|
|
|
repositories {
|
2019-01-22 18:55:33 +08:00
|
|
|
mavenLocal()
|
2018-12-27 17:54:23 +08:00
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
testCompile group: 'junit', name: 'junit', version: '4.12'
|
|
|
|
}
|
|
|
|
|
|
|
|
jar {
|
2019-01-22 18:55:33 +08:00
|
|
|
baseName = 'hotfix'
|
2018-12-27 17:54:23 +08:00
|
|
|
manifest{
|
|
|
|
attributes 'Manifest-Version':'1.0'
|
|
|
|
attributes 'Premain-Class':'com.ljsd.jieling.hotfix.JavaAgent'
|
|
|
|
attributes 'Agent-Class':'com.ljsd.jieling.hotfix.JavaAgent'
|
|
|
|
attributes 'Can-Retransform-Classes':true
|
|
|
|
attributes 'Can-Redefine-Classes':true
|
|
|
|
}
|
|
|
|
}
|