build.gradle 608 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. plugins {
  2. id 'java'
  3. }
  4. group = 'com.its'
  5. version = '0.0.1'
  6. sourceCompatibility = '1.8'
  7. targetCompatibility = '1.8'
  8. compileJava.options.encoding = 'UTF-8'
  9. repositories {
  10. mavenCentral()
  11. }
  12. dependencies {
  13. }
  14. processResources {
  15. enabled = false
  16. }
  17. jar {
  18. enabled = true
  19. }
  20. test {
  21. useJUnitPlatform()
  22. }
  23. task runInstallJarLibrary(type:Exec) {
  24. doFirst {
  25. println "its-common library install mvn repository..."
  26. workingDir = file('.')
  27. commandLine = ['cmd', '/C', 'start', 'install.bat']
  28. // cmd /C start ./install.bat
  29. }
  30. }
  31. jar.finalizedBy runInstallJarLibrary