build.gradle 565 B

123456789101112131415161718192021222324252627
  1. plugins {
  2. id 'java'
  3. }
  4. group 'com.ljsd'
  5. sourceCompatibility = 1.8
  6. repositories {
  7. mavenLocal()
  8. mavenCentral()
  9. }
  10. dependencies {
  11. testCompile group: 'junit', name: 'junit', version: '4.12'
  12. }
  13. jar {
  14. baseName = 'hotfix'
  15. manifest{
  16. attributes 'Manifest-Version':'1.0'
  17. attributes 'Premain-Class':'com.ljsd.jieling.hotfix.JavaAgent'
  18. attributes 'Agent-Class':'com.ljsd.jieling.hotfix.JavaAgent'
  19. attributes 'Can-Retransform-Classes':true
  20. attributes 'Can-Redefine-Classes':true
  21. }
  22. }