build.gradle 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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.2'
  9. repositories {
  10. mavenCentral()
  11. }
  12. dependencies {
  13. implementation("org.ow2.asm:asm:9.7")
  14. implementation("org.ow2.asm:asm-commons:9.7")
  15. testImplementation platform('org.junit:junit-bom:5.10.3')
  16. testImplementation 'org.junit.jupiter:junit-jupiter'
  17. }
  18. test {
  19. useJUnitPlatform()
  20. }
  21. gradlePlugin {
  22. plugins {
  23. streamshield {
  24. id = "io.nexilis.streamshield"
  25. implementationClass = "io.nexilis.StreamShieldPlugin"
  26. }
  27. }
  28. }
  29. publishing {
  30. publications {
  31. mavenJava(MavenPublication) {
  32. from components.java
  33. // groupId project.getGroup()
  34. // version project.getVersion()
  35. // artifactId 'streamshield'
  36. }
  37. }
  38. }
  39. artifactory {
  40. contextUrl = 'http://192.168.1.38:8082/artifactory'
  41. publish {
  42. repository {
  43. repoKey = 'nexilis-plugin'
  44. username = "development"
  45. password = "AP6wH1jwMWCRwDBftXh4cLmtYq7"
  46. }
  47. defaults {
  48. publications(publishing.publications.names.toArray())
  49. publishArtifacts = true
  50. publishPom = true
  51. }
  52. }
  53. }