build.gradle 811 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. tasks.register('runInstallJarLibrary', 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
  32. compileJava.options.encoding = 'UTF-8'
  33. tasks.withType(JavaCompile).configureEach {
  34. options.compilerArgs << '-Xlint:unchecked'
  35. options.deprecation = true
  36. options.encoding = 'UTF-8'
  37. }