You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

build.gradle 885B

123456789101112131415161718192021222324252627282930313233
  1. jar {
  2. baseName = 'WelcomePlugin'
  3. version = '0.1.0'
  4. manifest {
  5. attributes 'Plugin-Class': 'org.pf4j.demo.welcome.WelcomePlugin',
  6. 'Plugin-Id': 'WelcomePlugin',
  7. 'Plugin-Version': '1.0.0',
  8. 'Plugin-Provider': 'Decebal Suiu'
  9. }
  10. }
  11. task plugin(type: Jar) {
  12. baseName = 'WelcomePlugin'
  13. version = '0.1.0'
  14. into('classes') {
  15. with jar
  16. }
  17. into('lib') {
  18. from configurations.compile
  19. }
  20. extension('zip')
  21. }
  22. assemble.dependsOn plugin
  23. dependencies {
  24. compileOnly project(':api')
  25. // compileOnly important!!! We do not want to put the api into the zip file since the main program has it already!
  26. compile('org.pf4j:pf4j:1.4.0-SNAPSHOT') {
  27. exclude group: "org.slf4j"
  28. }
  29. compile 'org.apache.commons:commons-lang3:3.5'
  30. testCompile group: 'junit', name: 'junit', version: '4.+'
  31. }