build.gradle 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. plugins {
  2. id 'java'
  3. id 'java-gradle-plugin'
  4. id 'maven-publish'
  5. id 'com.jfrog.artifactory' version '5+'
  6. }
  7. group = 'io.nexilis'
  8. version = '1.0.20'
  9. compileJava {
  10. sourceCompatibility = '1.8'
  11. targetCompatibility = '1.8'
  12. }
  13. repositories {
  14. mavenCentral()
  15. }
  16. dependencies {
  17. implementation("org.ow2.asm:asm:9.7")
  18. implementation("org.ow2.asm:asm-commons:9.7")
  19. testImplementation platform('org.junit:junit-bom:5.10.3')
  20. testImplementation 'org.junit.jupiter:junit-jupiter'
  21. }
  22. test {
  23. useJUnitPlatform()
  24. }
  25. gradlePlugin {
  26. plugins {
  27. streamshield {
  28. id = "io.nexilis.streamshield"
  29. implementationClass = "io.nexilis.StreamShieldPlugin"
  30. }
  31. }
  32. }
  33. publishing {
  34. publications {
  35. mavenJava(MavenPublication) {
  36. from components.java
  37. // groupId project.getGroup()
  38. // version project.getVersion()
  39. // artifactId 'streamshield'
  40. }
  41. }
  42. }
  43. artifactory {
  44. contextUrl = 'http://192.168.1.38:8082/artifactory'
  45. publish {
  46. repository {
  47. repoKey = 'nexilis-plugin'
  48. username = "development"
  49. password = "AP6wH1jwMWCRwDBftXh4cLmtYq7"
  50. }
  51. defaults {
  52. publications(publishing.publications.names.toArray())
  53. publishArtifacts = true
  54. publishPom = true
  55. }
  56. }
  57. }