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 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. buildscript {
  2. ext.kotlin_version = '1.1.2-2'
  3. repositories {
  4. mavenCentral()
  5. }
  6. dependencies {
  7. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  8. }
  9. }
  10. jar {
  11. baseName = 'KotlinPlugin'
  12. version = '0.1.0'
  13. manifest {
  14. attributes 'Plugin-Class': 'org.pf4j.demo.kotlin.KotlinPlugin',
  15. 'Plugin-Id': 'KotlinPlugin',
  16. 'Plugin-Version': '1.0.0',
  17. 'Plugin-Provider': 'Anindya Chatterjee'
  18. }
  19. }
  20. task plugin(type: Jar) {
  21. baseName = 'KotlinPlugin'
  22. version = '0.1.0'
  23. into('classes') {
  24. with jar
  25. }
  26. into('lib') {
  27. from configurations.compile
  28. }
  29. extension('zip')
  30. }
  31. assemble.dependsOn plugin
  32. apply plugin: 'kotlin'
  33. apply plugin: 'kotlin-kapt'
  34. repositories {
  35. mavenCentral()
  36. }
  37. dependencies {
  38. compileOnly project(':api')
  39. kapt('org.pf4j:pf4j:1.4.0-SNAPSHOT') {
  40. exclude group: "org.slf4j"
  41. }
  42. compile 'org.apache.commons:commons-lang3:3.5'
  43. testCompile group: 'junit', name: 'junit', version: '4.+'
  44. compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version"
  45. }